Subject:XSL to ''normalise" an xml structure Author:richard potts Date:07 Oct 2004 06:41 AM
I'm hoping someone can help me with XSL to transform from a 'non-normalised' xml structure to a 'normalised' xml structure.
E.g. for the element <PIDHex> 2A23 <PIDHex> there are two 'records' in the non normalised xml (but there maybe more than two in other cases).
And I want to extract the common elements to form a single 'record' for <PIDHex> 2A23 <PIDHex> and add any non unique information in a new 'sub tag' called <Bytes>
I include example data files for you to understand.
I'd like to implement this purely in XSL if possible. (I'm using msxml 4)
If it helps the structure could possibly be changed to <PID id ="2A23"service="IO" type="BitMapped" use="Production"> so you only need to look at attributes instead of 'sub-tag values.
Any clues/or suggestions would be much appreciated, as I'm new to xsl
Thanks in advance
<ExtractDate>06 Oct 2004 14:59:31</ExtractDate>