xsl-list
[Top] [All Lists]

RE: [xsl] Help parsing a node

2012-04-26 10:56:39
Sorry -- in this particular tag set, <ead> *is* the root element so I was 
shorthanding...

-----Original Message-----
From: Martin Honnen [mailto:Martin(_dot_)Honnen(_at_)gmx(_dot_)de] 
Sent: Thursday, April 26, 2012 11:55 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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/

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>