Subject: RE: [xsl] Help parsing a node From: Michele R Combs <mrrothen@xxxxxxx> Date: Thu, 26 Apr 2012 18:15:27 +0000 |
Do I put this at the top, where it is now? I tried it there and it tells me Element: <xsl:name> must not appear directly within xsl:stylesheet (Sorry if this should be obvious...) -----Original Message----- From: Martin Honnen [mailto:Martin.Honnen@xxxxxx] Sent: Thursday, April 26, 2012 1:48 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Help parsing a node 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Help parsing a node, Martin Honnen | Thread | Re: [xsl] Help parsing a node, Wendell Piez |
Re: [xsl] Help parsing a node, Martin Honnen | Date | Re: [xsl] Help parsing a node, Wendell Piez |
Month |