This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsltproc and xsl:include


Many thanks. I took your first suggestion (I'm a reluctant Windows user, I
use Linux at home).
I agree that it does look kind of odd in the bat file though, something
that people will trip over again and again.
Of course I blame Bill Gates for having the vision to make Windows
compatible with CP/M rather than Unix :)


Daniel Veillard <veillard@redhat.com> on 08/22/2001 12:25:02 PM

Please respond to veillard@redhat.com

To:   Vince Thomas/Minneapolis/IBM@IBMUS
cc:   docbook-apps@lists.oasis-open.org
Subject:  Re: DOCBOOK-APPS: xsltproc and xsl:include



On Wed, Aug 22, 2001 at 11:03:02AM -0400, Vince Thomas wrote:
> I can get xsltproc to work (and it's so much faster than xalan and java)
> but the includes don't work unless I run in the xsl directory.
> This is on Windows, I have a bat file
>
>     set PATH=c:\libxml2\lib\rel\libxml2_so;c:
> \libxslt\lib\rel\libexslt_so;c:\libxslt\lib\rel\libxslt_so;%PATH%
>     c:\libxslt\util\xsltproc  -o %1.html c:\docbook-xsl\html\chunk.xsl
> %1.xml
>
> Running in another directory I get
>
> C:\home\sf\imd\doc>c:\libxslt\util\xsltproc --xinclude -o imd_model.html
c:
[...]
> docbook-xsl is version 1.44

  Seems to be a classic problem of using Windows path for URI-References
Libxml won't do the conversion from:
   c:\docbook-xsl\html\chunk.xsl
   to
   file:///c:/docbook-xsl/html/chunk.xsl

 which then could be used to apply the algorith from RFC 2396 to build
the URI to the included or imported file.

 There is 2 ways to get this fixed:
   - check that you use valid URIs to point to things
   - provide bug reports on the libxslt (or libxml) lists and
     see if this can get fixed in a more general fashion [*]

Daniel

[*] someone had the same trouble for libxml validation I think 2 days ago
    and fixing his paths solved the problem, but trying to change the
    mind of Windows users may get tiring at the end and a complete fix
    should probably be incorporated in libxml when compiled on Windows..

--
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]