Pavlin,
I just
tried your suggestion and got the following error:
javax.xml.transform.TransformerException: xsl:attribute
is not allowed in this p
osition in the stylesheet! ANY
OTHER SUGGESTIONS WOULD BE GREATLY APPECIATED.
My new
stylesheet reads as follows:
Rechell Schwartz
<?xml
version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/> <xsl:template
match="xml">
<xml> <data> <xsl:apply-templates/> </data> </xml> </xsl:template> <xsl:template
match="data">
<xsl:param name="sortcolumn" select="'NESV_CLLI'"/> <xsl:param name="sortorder" select="'ascending'"/> <xsl:apply-templates select="row"> <xsl:sort data-type="text" select="*[name()=$sortcolumn]"> <xsl:attribute name="order"><xsl:value-of select="$sortorder"/></xsl:attribute> </xsl:sort> </xsl:apply-templates> </xsl:template> <xsl:template
match="row">
<xsl:copy-of select="."/> </xsl:template> <xsl:template
match="columntype">
<xsl:copy-of select="."/> </xsl:template> <xsl:template
match="truncated">
<xsl:copy-of select="."/> </xsl:template> <xsl:template
match="truncationsize">
<xsl:copy-of select="."/> </xsl:template> </xsl:stylesheet>
|
- Parameter Sorting Problem With Xalan Schwartz, Rechell R, NLCIO
- Re: Parameter Sorting Problem With Xalan Pavlin Djokov
- Re: Parameter Sorting Problem With Xalan Gary L Peskin
- RE: Parameter Sorting Problem With Xalan Schwartz, Rechell R, NLCIO
- RE: Parameter Sorting Problem With Xalan Schwartz, Rechell R, NLCIO
- Re: Parameter Sorting Problem With Xal... Tom Amiro
- Re: Parameter Sorting Problem With... Gary L Peskin
- Re: Parameter Sorting Problem ... Tom Amiro
- RE: Parameter Sorting Problem With Xalan Schwartz, Rechell R, NLCIO
- Re: Parameter Sorting Problem With Xal... Pavlin Djokov