|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sort with using document()
Hi all,
I'd like to sort result by an element which is in an included xml with using document(). I did it this way...
<xsl:for-each select="tech[tech]">
<xsl:variable name="current-tech" select="@descr"/>
<xsl:value-of select="$current-tech" />
<xsl:apply-templates select="document('css_report.xml')//item[metadata/technology=$current-tech]" mode="report" />
</xsl:for-each>
<xsl:template match="item" mode="report">
<xsl:sort select="content/company"/>
<xsl:value-of select="content/company"/><br/>
</xsl:template>
Does anyone know how to sort with using document()? Your help is appreciated.
thanks,
Fei
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








