Re: [xsl] Help parsing a node

Subject: Re: [xsl] Help parsing a node
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 26 Apr 2012 19:47:54 +0200
Michele R Combs wrote:
Pretty sure they're using 1.0 but I can check.

Define a key


<xsl:name name="uniqueTypesKey"
match="ead/archdesc/dsc/descendant::*/container"
use="@type" />

and then the variable as

<xsl:variable name="uniqueTypes"
select="ead/archdesc/dsc/descendant::*/container[generate-id() = generate-id(key('uniqueTypesKey', @type)[1])]"/>





--


	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/

Current Thread