xsl-list
[Top] [All Lists]

Re: [xsl] XSLT1.0 distinct list of attributes across several nodes

2018-06-26 16:29:39
By distinct attributes, I did, in fact, mean the distinct values of the
number attribute. Apologies of that

That doesn't seem to match the requested result

the result should be 1,2,3,5 for the first post_press_version

in the first post_press_version there are two sequences of hopper elements

<hopper number="0" id="" is_insert="False"/>
<hopper number="1" id="23" is_insert="False">96854-6FL</hopper>
<hopper number="2" id="13" is_insert="False">96854-8FL003</hopper>
<hopper number="3" id="15" is_insert="False">96854-10FL004</hopper>
<hopper number="4" id="" is_insert="False"/>
<hopper number="5" id="" is_insert="False"/>
<hopper number="6" id="" is_insert="False"/>

<hopper number="0" id="" is_insert="False"/>
<hopper number="1" id="24" is_insert="False">96854-6FL10</hopper>
<hopper number="2" id="29" is_insert="False">96854-8FL</hopper>
<hopper number="3" id="" is_insert="False"/>
<hopper number="4" id="" is_insert="False"/>
<hopper number="5" id="31" is_insert="False"/>
<hopper number="6" id="" is_insert="False">96854-10FL</hopper>



So I think ? you want to just list the number attributes of hopper with
non-empty id?
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>