|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problems sorting data
David Carlisle wrote:
without any nested xsl:templates? A template within a template <template> <template> </template> </template> But I considered what you said about having a template within another template was not a good thing and twisted my mind around that. So now I've got this XSLT (also added the string to the sorting, courtesy of David): <xsl:template match="report">
<xsl:apply-templates match="contents"/>
</xsl:template><xsl:template match="contents"> <xsl:apply-templates> <xsl:sort select="member[@name='idstring']/string"/> </xsl:apply-templates> </xsl:template> <xsl:template match="object[@type='standard']">
<xsl:value-of select="member[@name='idstring']"/>
<xsl:value-of select="member[@name='id']"/>
<xsl:value-of select="member[@name='title']"/>
</xsl:template>This workes just the way I want it, so unless you guys can see something wrong with this I can happily get out of the office :) GTH
|
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








