[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Ant XSLT task error
Ok, but be aware that a limitation of the java task is that if you pass in an argument, then you have to pass in a value. For example, with the xslt task, you can do: <xslt processor="trax" classpath="${saxon_class_path}" in="${in}" out="${out}" style="${stylesheet_path}" force="${xslt-force-regeneration}"> <xmlcatalog refid="main-catalog"/> <param name="generate.toc" expression="${generate.toc}" if="generate.toc"/> Where if="generate.toc" says, "only pass in this param if the generate.toc property is set." With java task, if you pass in a param, then it will always be passed in (it can be null, but it will be passed in). There will be times when you want to have the flexiblity of using the default from the xslts if you choose not to set that property in your build file. So you might find your self doing more than one pass anyway. One to resolve the xincludes and another to call the docbook xslts from with an xslt task. But I suppose you could always run an xslt to generate another ant file with the java task and any args only if their value is not null, then run that ant script :-) David > -----Original Message----- > From: Eric Johnson [mailto:eric.johnson@iona.com] > Sent: Thursday, November 29, 2007 2:45 PM > To: David Cramer > Cc: Jirka Kosek; docbook-apps@lists.oasis-open.org > Subject: RE: [docbook-apps] Ant XSLT task error > > Cool. I'll give that a try. I may also just resort to using > the java task to invoke saxon. > > On Thu, 2007-11-29 at 14:33 -0600, David Cramer wrote: > > I've never actually tried that. I wanted to user xpointer, > so I did a > > first pass with xmllint (called it with an <exec>). > > > > Btw., I was googling to see if this was already explained somewhere > > easy to find and ran across this: > > http://sourceforge.net/projects/xcluder > > (found via this post: > > http://www.stylusstudio.com/xsllist/200407/post90490.html ) Sounds > > cool, but I don't see any docs or even the source. > > > > David > > > > > -----Original Message----- > > > From: Eric Johnson [mailto:eric.johnson@iona.com] > > > Sent: Thursday, November 29, 2007 1:38 PM > > > To: David Cramer > > > Cc: Jirka Kosek; docbook-apps@lists.oasis-open.org > > > Subject: RE: [docbook-apps] Ant XSLT task error > > > > > > David, > > > That did the trick. Now I need to get xincludes working... > > > how did you get Saxon to use the Xerces processor supporting > > > xincludes? > > > Thanks, > > > Eric > > > > > > On Thu, 2007-11-29 at 09:24 -0600, David Cramer wrote: > > > > Try adding classpath="path_to/saxon.jar" to your <xslt/> > > > task. I also > > > > have processor="trax" but I don't know if that matters. > > > > > > > > David >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]