amiro 01/06/18 12:19:03
Added: test/tests/conf/sort sort39.xml sort39.xsl
Log:
test ATV in order attribute and param in select expression
Revision Changes Path
1.1 xml-xalan/test/tests/conf/sort/sort39.xml
Index: sort39.xml
===================================================================
<?xml version="1.0"?>
<xml>
<data>
<row><COLUMN1>ABC</COLUMN1><COLUMN2>ABC2</COLUMN2></row>
<row><COLUMN1>GHI</COLUMN1><COLUMN2>GHI2</COLUMN2></row>
<row><COLUMN1>DEF</COLUMN1><COLUMN2>DEF2</COLUMN2></row>
<columntype>
<COLUMN1>string</COLUMN1>
<COLUMN2>string</COLUMN2>
</columntype>
<truncated>no</truncated>
<truncationsize>1000</truncationsize>
</data>
</xml>
1.1 xml-xalan/test/tests/conf/sort/sort39.xsl
Index: sort39.xsl
===================================================================
<?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:param name="sortcolumn" select="'COLUMN1'"/>
<xsl:param name="sortorder" select="'ascending'"/>
<xsl:template match="xml">
<xml>
<data>
<xsl:apply-templates/>
</data>
</xml>
</xsl:template>
<xsl:template match="data">
<xsl:for-each select="row">
<xsl:sort
order="{$sortorder}"
data-type="text"
select="$sortcolumn"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]