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

From
Jirka Kosek <>
Date
2006-04-06T20:16:51+00:00
ID
Thread
Re: [docbook-apps] xml:base and stylesheets
Mauritz Jeanson wrote:

>> This test
>>
>>  <xsl:when test="starts-with(saxon:systemId(), 'file:')">
>>    <xsl:value-of select="substring-after(saxon:systemId(),'file:')"/>
>>  </xsl:when>
>>
>> returns a path with a leading slash, like this: 
>> '/c:/docbook/test.xml'.
> 
> 
> I used an old snapshot (four days, I think...). The  above code in
> stripns.xsl has been updated in the 06-Apr-2006 07:55 release (I haven't
> tested it, though). 

The patch from 06-Apr-2006 is workaround for Java extensions which got 
file names in a wrong format. I'm not sure whether this fix could 
improve xml:base problem. If I remember it correctly, the biggest 
problem is in Xerces which duplicates paths when resolving XIncludes.

-- 
------------------------------------------------------------------
   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
------------------------------------------------------------------