RE: [xsl] Help parsing a node

Subject: RE: [xsl] Help parsing a node
From: Michele R Combs <mrrothen@xxxxxxx>
Date: Thu, 26 Apr 2012 15:56:25 +0000
Sorry -- in this particular tag set, <ead> *is* the root element so I was
shorthanding...

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: Thursday, April 26, 2012 11:55 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Help parsing a node

Michele R Combs wrote:

> <xsl:variable name="uniqueTypes"
> select="ead/archdesc/dsc/descendant::*/container[not(@type=following::
> */container/@type)]/@type" />
>
> What exactly will this select?  And (since it starts with the root node)
will it select the exact same thing no matter where it's used?

The root node is selected with "/", as your path starts with "ead" I don't see
why you say it starts with the root node. Instead it selects relative to the
context node.


--

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

Current Thread