[Yanel-dev] XML resource patch
Josias Thöny
josias.thoeny at wyona.com
Thu Jan 17 17:40:31 CET 2008
Evaldas Taroza wrote:
>
> 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
The yanelrepo: protocol currently does not understand URL parameters,
because the parameters don't have any meaning for the repository.
It should work however with the yanelresource protocol.
We are using xinclude with parameters, e.g.:
<xi:include
href="yanelresource:/navigation/translations.xml?path={$yanel.path}&language={$content-language}"/>
If this doesn't work with document() it's a bug, but I have no idea what
could cause this problem...
josias
>
> I find it quite useful.
>
> Evaldas
>
--
Josias Thöny
Wyona - Open Source Content Management
http://www.wyona.com
More information about the Yanel-development
mailing list