Re: [docbook-apps] Re: xml:base and stylesheets

From
Jirka Kosek <>
Date
2006-04-21T19:35:09+00:00
ID
Thread
Re: [docbook-apps] Re: xml:base and stylesheets
Mauritz Jeanson wrote:

> I found a problem with the latest stripns.xsl, I'm afraid.
> 
> On Windows, saxon:systemId() returns this (as an example):
> 
>  file:/c:/doctypes/docbook/imgtest-ng.xml
> 
> This results in the following xml:base attribute on the root element of the
> stripped document: 
> 
>  /c:/doctypes/docbook/
> 
> The leading slash is clearly not right. 
> And if the leading slash wasn't there, would it really be a valid URI (since
> there is no 'file:///' prefix)? 

Please try attached strpins.xsl. It should fix Windoze problem.

				Jirka

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbližší termíny školení:
      ** XSLT 13.-16.3.2006 ** XML schémata 24.-26.4.2006 **
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
------------------------------------------------------------------
   http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------