Subject: Re: [xsl] xsl:key and document() loading external files. From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 15 May 2007 08:51:53 +0200 |
is there something I am not putting into my stylesheet that enables keys and the document() function to co-exist in my stylesheet?
At work i have been successful in implementing keys and using the document() function in the same stylesheet. But that is on a windows box.
I am working on a dreamhost system, php 5.2.1. I am either using the sablotron processor or libxslt, but am not 100% sure. I know that sounds a little silly, but I don't knew which proecessor i am using to transform my stylesheets. if anyone knows which i am using, please feel free to enlighten me.
<xsl:value-of select="system-property('xsl:version')" /> <xsl:value-of select="system-property('xsl:vendor')" />
You state that it does work on a windows box and that it does not work on a linux box. The most likely reason is a path problem. Are your paths equal on both systems? Can you try a small test with the following, silly, obfuscated way of outputting the stylesheet content itself? It uses both a key function and the document function. If you get an error with it about the path, then I think there's a bug with your processor. If you don't get an error about the path, then you should check the paths of your current XML:
why would I be getting that error and not have my xml documents load up into my page?
<xsl:key name="t" match="xsl:variable" use="@name" /> <xsl:variable name="test" />
<xsl:template match="/"> <xsl:copy-of select="document(string(key('t', 'test')/@nothing))"/> </xsl:template>
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:key and document() loadin, Dale Tan | Thread | [xsl] sort elements in external doc, Vaduvoiu Tiberiu |
[xsl] xsl:key and document() loadin, Dale Tan | Date | [xsl] sort elements in external doc, Vaduvoiu Tiberiu |
Month |