Ulrich Mayring wrote:
Sorry for asking here, but maybe someone can point me to a better place?
hey, no prob!
I've searched Google and the Apache site, but nowhere seems to be a stylebook project, where I could go.yep. A common approach has always been to use ant filters (http://ant.apache.org/manual/CoreTypes/filterset.html) replacing @@SOMETHING@@ with your parameter.
I'd like to pass parameters from the command-line to a stylesheet in an ant script like this:
<java classname="${stylebook}" fork="yes">
<classpath refid="classpath"/>
<arg line="targetDirectory=foo book.xml skins/myskin param=myparam"/>
</java>
I'd like to retrieve the value of myparam in one of the stylesheets that Stylebook uses to generate the docs. Can this be done?
Or do I have to write a separate skin for every little variation in layout?http://ant.apache.org/manual/OptionalTasks/stylebook.html
how does
<stylebook targetdirectory="build/docs"
book="src/xdocs/book.xml"
skindirectory="src/skins/myskin"/>
look to you? :D
stylebook lives @ http://cvs.apache.org/viewcvs.cgi/xml-stylebook/. My guess is you can find maintainers on general@xml. But for questions like this, ant-users might be the best place.
Of course, my personal opinion is that you should use either forrest or anakia or maven :D
cheers,
- Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
