Well....

I see what you mean, though its odd that the error you get is EXACTLY what I 
get when I need node-set(). I think that the problem may be that you cannot 
say "document('/gcgi/left.cgi')/" because the result from document() is a 
result-tree-fragment. Honestly it seems like result-tree-fragments in libxml 
sometimes work and sometimes dont work like node-sets, and it seems like its 
varied from release to release. Don't take my word too much on that, but I've 
had weird things like you could execute XPath statements on a fragment as 
long as only one node resulted in certain places, or sometimes you could 
match a template against stuff in a fragment, but not iterate on it with 
xsl:for-each! Or sometimes just xsl:sort would create an error.

My suspicion is that the two data structures are internally to libxml the same 
thing and its only compliance with XSLT which demands a distinction. In some 
releases the developers weren't too clear on what the rules were, so some 
things were allowed that should not be allowed. Then you have some error 
handling booboo on top of that which ends up with the 'GLOB' exception 
surfacing at the XML::LibXSLT level.

In any case, try just making your variable select='document("/whatever")' and 
then do node-set($variable)/ where you use it. I'm about 99% sure that will 
work. 

On Saturday 20 September 2003 04:18 am, Vaclav Barta wrote:
> On Saturday 20 September 2003 12:10 am, Tod Harter wrote:
> > The problem is that you're trying to use a result-tree fragment as a
> > node-set. You need the exslt node-set() function. Luckily its supported
>
> Maybe, but why am I getting problems *before* trying to use the variable?
> Just adding
>   <xsl:variable name="leftcontent" select="document('/gcgi/left.cgi')"/>
> to my stylesheet - without ever referencing $leftcontent - makes it fail.
> OTOH a static XML file, i.e
>   <xsl:variable name="leftcontent" select="document('/german/index.xml')"/>
> works OK.
>
> I think the problem is that AxKit fails to parse /gcgi/left.cgi because it
> reads it as a file. Is there some configuration setting (I thought about
> AxStyleProvider but which provider should I use?) making AxKit to go
> through Apache when fetching URLs?
>
>       Bye
>               Vasek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Tod Harter
Giant Electronic Brain
http://www.giantelectronicbrain.com

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

Reply via email to