November 6th, 2006, 09:35 AM
|
#1
|
|
New Member
Join Date: Nov 2006
Location: spore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
XSL - urgent
Hi,
I have the below xml document
<mainele>
<element1> test1 </element1>
<element2> test2 </element2>
<element3> test3 </element3>
</mainele>
<mainele>
<element1> test1 </element1>
<element2> test2 </element2>
<element3> test3 </element3>
</mainele>
<mainele>
<element1> test1 </element1>
<element2> test2 </element2>
<element3> test3 </element3>
<fields>
<fld1> data1</fld1>
<fld2>data2 </fld2>
</fields>
</mainele>
I am trying to group elements with similar data to an html output.
Ie. In above example since all elements in both <mainele> have similar data they should be displayed only as a single row on html.
Presently, my data is showing up as 2 different rows on html page.
Some of the <mainele> may contain <fields> tag. These do not have to be included in the grouping.
How can I do this using XSL? I am using msxsl.exe to convert xml to html output. I am not sure if we are using XSLT2.0 so dont know if I can use group function.
- Can someone tell how I can find the version if I am using msxsl.exe?
- For either version, can you explain in detail how I can achieve the grouping.
Thanks in advance
|
|
|