This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

matching elements only once


I am trying to create a kind of shema-information of a xml-file via XSL.
For this reason, i want to put out the information of a specific node
only
if it is different from the information of the nodes i already parsed
through.

For example this xml.document

<node>
	<type name="t1"/>
	...
</node>

<node>
	<type name="t2"/>
	...
</node>

<node>
	<type name="t1"/>
	...
</node>

<node>
	<type name="t3"/>
	...
</node>

<node>
	<type name="t3"/>
	...
</node>

should be translated to this:

	3 Types:
	t1
	t2
	t3

As you can see, the type of the 3rd and the 5th node wasn't matched
since types with the name t1 and t3 where already matched.
In adittion, the stylesheet im am searching for counts all <type>s with
a different name-attribute.
Is there a way to achieve this kind of output?


Thanks in advance

Oliver
-- 
------------------------------------------------------------------------
EMail: oheinen@uni-koblenz.de
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]