|
Subject: [xsl] sort with using document() From: "Fei Zheng" <Fei.Zheng@xxxxxxx> Date: Mon, 7 Jul 2003 14:28:51 -0400 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] interesting? problem, G. Ken Holman | Thread | Re: [xsl] sort with using document(, G. Ken Holman |
| [xsl] interesting? problem, 林 子芯 | Date | RE: Is XML a Language? (was RE: [xs, Didier PH Martin |
| Month |