Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xsl:sort and lang attribute

Status
Not open for further replies.

MrTom

Programmer
Joined
Mar 13, 2001
Messages
383
Location
GB
i'm using sablotron (0.52) but have run in to problems sorting things.

i get the error:



--

Warning [code:464] [URI:file:/home/me/work/nguk.ng/sort.xsl] [line:22] [node:element '<xsl:for-each>']

unsupported language 'en'

--



which only happens since i put in the sort tag. the xsl file has the layout
--
<xsl:for-each select=&quot;$cars&quot;>

<xsl:sort select=&quot;make/model&quot; />
<xsl:copy-of select=&quot;somenodes&quot;/>
</xsl:for-each>
--
i don't see how the language 'en' isn't supported or does it have a proper name since i guess it gets 'en' from the system env? where is the list of supported languages, every reference seems to avoid this.
if it looks correct then i guess it's sablotron :( i'm using a variable &quot;$cars&quot; which is a collection of cars i already made - i'm assuming xsl can sort in this scenario.
or am i just putting the xsl:sort in the wrong place? if was writing xsl spec then i'd have the xsl:for-each inside an xsl:sort tag but it just seems to be a single tag (a &quot;/>&quot;). i would like:
<xsl:sort blahblah>
<xsl:for-each blahhaha>
blahblah
</xsl:for-each>
</xsl:sort>

but i've ditched the theory of xsl being sensible a long time ago :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top