Subject: Re: [xsl] Sorting a variable that contains a nodeset From: "rafael vazquez" <rc_vazquez@xxxxxxxxxxx> Date: Thu, 10 Jan 2002 17:58:08 +0100 |
From: "cutlass" <cutlass@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Re: [xsl] Sorting a variable that contains a nodeset Date: Thu, 10 Jan 2002 16:11:35 -0000
Hello Rafeal,
----- Original Message ----- From: "rafael vazquez" <rc_vazquez@xxxxxxxxxxx> > Hi All! > I have a variable containing a nodeset as > <xsl:variable name="var" select="//ARTICULO"/> > and I want to order this nodeset by the node 'NOMBRE_FAMILIA'. How can I > perform it? Exists any function that sorts the variable?
depends on how you generate the variable, and if u want to use an extension function to continue manipulating it ( node-set() function that is).
but since u didnt give me a snippet of xml that is representative, i cant really give u an explicit example...
we would like to help,
cheers, jim fuller
My XML file is: <ALMACEN> <ARTICULO> <DESCRIPCION_CORTA>chuletas cerdo</DESCRIPCION_CORTA> <DESCRIPCION_LARGA>chuletas cerdo extra</DESCRIPCION_LARGA> <NOMBRE_FAMILIA>alimentacion</NOMBRE_FAMILIA> <NOMBRE_SUBFAMILIA>carnes</NOMBRE_SUBFAMILIA> </ARTICULO> <ARTICULO> <DESCRIPCION_CORTA>chuletas marrano</DESCRIPCION_CORTA> <DESCRIPCION_LARGA>chuletas marrano extra</DESCRIPCION_LARGA> <NOMBRE_FAMILIA>alimentacion</NOMBRE_FAMILIA> <NOMBRE_SUBFAMILIA>verduras</NOMBRE_SUBFAMILIA> </ARTICULO> <ALMACEN>
The variable is formed as: <xsl:variable name="nodos" select="//ARTICULO"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Sorting a variable that c, Jeni Tennison | Thread | Re: [xsl] Sorting a variable that c, cutlass |
RE: [xsl] xpath, Michael Kay | Date | Re: [xsl] Problem in xsl:for-each, Jeni Tennison |
Month |