Subject: Re: [xsl] Help parsing a node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 26 Apr 2012 15:39:07 -0400 |
<xsl:variable name="uniqueTypes" select="ead/archdesc/dsc/descendant::*/container[not(@type=following:: */container/@type)]/@type" />
Cheers, Wendell
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])]"/>
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Help parsing a node, Michele R Combs | Thread | RE: [xsl] Help parsing a node, Michele R Combs |
RE: [xsl] Help parsing a node, Michele R Combs | Date | RE: [xsl] Help parsing a node, Michele R Combs |
Month |