xsl-list
[Top] [All Lists]

Re: [xsl] Help parsing a node

2012-04-26 16:48:02
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>