Jason Pettys wrote:

Does anyone know how to use the style task with docbook xsl files? I got my stylesheets from http://docbook.sourceforge.net. My details follow, but is anyone using Nant to transform docbook documents? Is there an easier way than the way I'm going here?

Thanks for your time,
Jason

The reson your build is failing is because of XSLT processor incompatibilities. The style task uses the xslt processor that ships with the .Net framework. I haven't looked into the details but I think the docbook stylesheets use a number of extensions that may not be supported on all platforms. I don't know what xsltproc is but I'm assuming it isn't using the .Net framework's xslt processor.

Ian


Here is my Nant task:

<style style = "${doc.dir}\stylesheets\docbook\xhtml\docbook.xsl"
in = "${doc.dir}\projacct\DeveloperIntro.xml"
out = "${web.dir}\DeveloperIntro.htm" />

The output for this task is

BUILD FAILED
C:\nant\try\xpede.build(30,4): Could not perform XSLT transformation.
(20,2) :
Try 'nant -help' for more information
Process nant.EXE exited with code 1

However, I am able to do the transform with xsltproc, with the following cygwin command:

$ xsltproc /c/nant/try/doc/stylesheets/docbook/xhtml/docbook.xsl /c/nant/try/doc/projacct/DeveloperIntro.xml > /c/inetpub/wwwroot/DeveloperIntro.htm

which outputs the following warning message, but successfully builds Developer.htm

/c/nant/try/doc/projacct/DeveloperIntro.xml:2: warning: failed to load external entity "file:///c%3A/docbook/docbkx412/docbookx.dtd"
DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd




-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Reply via email to