You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by bokluk <bo...@gmx.net> on 2006/01/30 23:08:09 UTC
collection() error
(How) is collection function implemented in cocoon?
I tried following code:
<xsl:for-each select="for $x in
collection('../test/xdocs?select=*.xml;recurse=yes;on-error=warn') return
$x//defnition">
<xsl:sort select="@title"/>
TITLE=<xsl:value-of select="@title"/><br/>
</xsl:for-each>
And it gave me following error:
Extra illegal tokens: '$', 'x', 'in', 'collection', '(',
''../prosa/xdocs?select=*.xml;recurse=yes;on-error=warn'', ')', 'return',
'$', 'x', '/', '/', 'defnition'
What am I missing?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: collection() error
Posted by bokluk <bo...@gmx.net>.
To get all definition elements from all xml files in certain directory and
order them according to their @title (the definitions) (at the end should
become a kind of glossary)
Any ideas how to do this?
If this helps I have xml with all the filenames in this folder.
----Original Message-----
From: Martynas Jusevicius [mailto:martynas.jusevicius@gmail.com]
Sent: Monday, January 30, 2006 11:17 PM
To: users@cocoon.apache.org
Subject: Re: collection() error
This is a function from XPath 2.0, which is only used with XSLT 2.0
(not 1.0) and thus unsupported by Cocoon, I'm affraid.
And why do you need both "for" in XSLT and XPath?
Martynas
On 1/30/06, bokluk <bo...@gmx.net> wrote:
> (How) is collection function implemented in cocoon?
> I tried following code:
>
> <xsl:for-each select="for $x in
> collection('../test/xdocs?select=*.xml;recurse=yes;on-error=warn') return
> $x//defnition">
>
> <xsl:sort select="@title"/>
>
> TITLE=<xsl:value-of select="@title"/><br/>
>
> </xsl:for-each>
>
> And it gave me following error:
>
> Extra illegal tokens: '$', 'x', 'in', 'collection', '(',
> ''../prosa/xdocs?select=*.xml;recurse=yes;on-error=warn'', ')', 'return',
> '$', 'x', '/', '/', 'defnition'
>
> What am I missing?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: collection() error
Posted by Martynas Jusevicius <ma...@gmail.com>.
This is a function from XPath 2.0, which is only used with XSLT 2.0
(not 1.0) and thus unsupported by Cocoon, I'm affraid.
And why do you need both "for" in XSLT and XPath?
Martynas
On 1/30/06, bokluk <bo...@gmx.net> wrote:
> (How) is collection function implemented in cocoon?
> I tried following code:
>
> <xsl:for-each select="for $x in
> collection('../test/xdocs?select=*.xml;recurse=yes;on-error=warn') return
> $x//defnition">
>
> <xsl:sort select="@title"/>
>
> TITLE=<xsl:value-of select="@title"/><br/>
>
> </xsl:for-each>
>
> And it gave me following error:
>
> Extra illegal tokens: '$', 'x', 'in', 'collection', '(',
> ''../prosa/xdocs?select=*.xml;recurse=yes;on-error=warn'', ')', 'return',
> '$', 'x', '/', '/', 'defnition'
>
> What am I missing?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org