Subject: Re: [xsl] Muenchian grouping on external XML files From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 19 Jan 2004 15:30:40 -0500 |
Is there any way I can use keys when calling on external XML files using the document function?
I am trying to use the Muenchian grouping technique to list unique content values for an element, but the values exist in a document that is external to the one I'm processing.
More detail below (apologies for long post):
-----------------XSLT FILE-------------- <xsl:key name="myKeyName" match="document('master_primary.xml')//rs" use="normalize-space(.)" />
<xsl:template match="divGen"> <xsl:if test="@id='personIndex'"> <xsl:for-each select="document('../../xml/02_master/master_object.xml')//rs[generate-i d(.)=generate-id(key('myKeyName', normalize-space(.))[1])][@type='person']">
I can think of other methods, using intermediate XML output, but would prefer to avoid them if possible.
-- North America (Washington, DC): 3-day XSLT/2-day XSL-FO 2004-03-15 - (San Francisco, CA): 3-day XSLT/2-day XSL-FO 2004-03-22 Asia (Hong Kong, China): 3-day XSLT/2-day XSL-FO 2004-05-17 Europe (Bremen, Germany): 3-day XSLT/2-day XSL-FO 2004-05-24 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) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Muenchian grouping on externa, Paul Spence | Thread | [xsl] Request hints for creating TO, Thomas V. Nielsen |
Re: [xsl] ID Refs v2, G. Ken Holman | Date | [xsl] Request hints for creating TO, Thomas V. Nielsen |
Month |