xsl-list
[Top] [All Lists]

RE: [xsl] Help parsing a node

2012-04-26 16:39:50
Pretty sure they're using 1.0 but I can check.

-----Original Message-----
From: Martin Honnen [mailto:Martin(_dot_)Honnen(_at_)gmx(_dot_)de] 
Sent: Thursday, April 26, 2012 1:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Help parsing a node

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


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