Subject: Re: [xsl] Problem with Sorting Elements When using "document()" to bring in multiple files From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 03 Dec 2003 10:25:44 -0500 |
i have this problem, when i try to sort elements which are comming from external files.
i have a masterfile.xml which contains multiple tags like the following:
<taxpayer file="A004.xml" id="A004"/>
the file reference links to an XML file which contains all the individuals data for example:
<taxpayer id="A004"> <name> <family>Random_1</family> <given>Made_Uo_Dude</given> </name> </taxpayer>
<xsl:template match="/"> <alpha-list> <xsl:apply-templates select="document( list/taxpayer/@file, . )/ taxpayer"> <xsl:sort select="name"/> </xsl:apply-templates/> </alpha-list> </xsl:template>
-- Next public European delivery: 3-day XSLT/2-day XSL-FO 2004-01-?? Instructor-led on-site corporate, government & user group training for XSLT and XSL-FO world-wide: please contact us for the details
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Problem with Sorting Elements, Dominic Lisi | Thread | [xsl] Problem sorting Elements when, Dominic Lisi |
Re: [xsl] Problem sorting Elements , David Carlisle | Date | Re: [xsl] Strange Sorting Problem, CBeach |
Month |