Thanks for the response -- I suspect you're right.  I was able to do the transform by 
using the exec task with the xsltproc.exe program.  That program is the executable for 
the XSLT C library for the Gnome project.  There are Windows binaries at 
http://www.fh-frankfurt.de/~igor/projects/libxml/index.html, and it's also available 
via Cygwin.

Thanks!
Jason

-----Original Message-----
From: Ian MacLean [mailto:ianm@;ActiveState.com]
Sent: Tuesday, October 22, 2002 8:32 PM
To: Jason Pettys
Cc: [EMAIL PROTECTED]
Subject: Re: [Nant-users] Nant style with docbook


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 email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en

_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to