Hi,

I've just started using AxKit and I think I found a bug with the
resolution of relative URIs when XSLT stylesheets import other XSLT
stylesheets. I'm using AxKit 1.5 (and perl 5.6.0, mod_perl 1.26, libxml2
2.4.12, libxslt 1.0.9, XML::XPath 1.11, XML::SAX 0.03, XML::LibXML 1.31,
XML::LibXSLT 1.31 and XML::Parser 2.30 -- phew!)

Basically, I have the following structure in my DocumentRoot:

/coding/index.xml
/style/default.xsl
/style/markup.xsl

/coding/index.xml specifies /style/default.xsl via 

  <?xml-stylesheet href="../style/default.xsl" type="text/xsl"?>

and /style/default.xsl imports /style/markup.xsl via

  <xsl:import href="markup.xsl"/>

This is correct according to the XSLT spec[1], but AxKit doesn't like it:

[Sat Feb  2 02:44:53 2002] [error] [client 192.168.10.1] [AxKit] [UnCaught] File 
'/home/www/inauspicious/xml/coding/markup.xsl' does not exist or is not readable
[Sat Feb  2 02:44:53 2002] [error] ErrorStylesheet: No module mapping found for type ''

I'd try and fix it but it's nearly 3am and my eyes feel like they are 
starting to bleed ;)

Cheers,
Gary

[ [EMAIL PROTECTED] ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]


[1] http://www.w3.org/TR/xslt (section 2.6.2): "The xsl:import element has
an href attribute whose value is a URI reference identifying the
stylesheet to be imported. A relative URI is resolved relative to the base
URI of the xsl:import element."


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to