Re: [xsl] Help parsing a node

Subject: Re: [xsl] Help parsing a node
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 26 Apr 2012 19:38:42 +0200
Michele R Combs wrote:

<did>
                     <unittitle>Files</unittitle>
                     <container id="cid172002" type="Box" label="Text">8</container>
                     <container id="cid172001" type="Box" label="Mixed materials">19</container>
</did>

And it's evaluating both of those type="Box" as unique even though they're not. If I understand correctly, this is because it's not looking at sibling containers but rather only at later non-sibling containers, yes? And since it's the end of the document there are no non-sibling containers below it in the tree, hence nothing to compare to, hence they all appear to be unique?

What's the best way to fix this?

Do you use XSLT 2.0 or 1.0?



--


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

Current Thread