xsl-list
[Top] [All Lists]

Re: [xsl] Help parsing a node

2012-04-26 16:38:50
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/

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