xsl-list
[Top] [All Lists]

Re: [xsl] sort question

2006-09-08 00:41:02
Hi Markus,

move the select statement one level up.
Apply templates gets one "lang"-node. No Use to sort.

<xsl:for-each select="//node()[(_at_)xml:lang]">
<xsl:sort select="@xml:lang" order="ascending"/>
<xsl:apply-templates select="node() | @*">
</xsl:apply-templates>
</xsl:for-each>

I think you dont want the // in front of node(). You want a relative path like node() or * only.

Cheers,

Juergen

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>