xsl-list
[Top] [All Lists]

sort with using document()

2003-07-07 11:28:51
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



<Prev in Thread] Current Thread [Next in Thread>