OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


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/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC