[Yanel-dev] XML resource patch
Evaldas Taroza
etaroza at optaros.com
Thu Jan 17 14:21:31 CET 2008
Evaldas Taroza wrote:
> I made a small patch for the GenericXMLResource. I hope this does not
> brake much. What it allows to do is to refer to different documents
> inside the XSLT. For instance:
> <xsl:template match="/">
> <xsl:for-each
> select="document('yanelrepo:/en/sitetree.xml')/y:sitetree/y:node">
> <xsl:value-of select="y:name"/>
> </xsl:for-each>
> </xsl:template>
>
> However, document('yanelresource:/....') does not work, either there is
> an exception says that "Content is not allowed in prolog" or other
> problems...
Well Actually it works as well it's just that it drops the query part of
the URL. Do you think it is reasonable that I can not pass the URL like:
yanelrepo:/en/sitetree.xml?yanel.resource.viewid=myview
I find it quite useful.
Evaldas
--
+41 79 616 53 76
Optaros - www.optaros.com
More information about the Yanel-development
mailing list