xsl-list
[Top] [All Lists]

attributes in and out

2003-09-29 04:15:56
i have a problem with getting the right outcome (for each) of these instance
elements. they look like this:


<INSTANCE class="Audio" name="God Shave the queen">
<ATTRIBUTE name="Position" type="STRING">NODE x:5.00cm y:9.00cm w:1.77cm
h:2.25cm index:4
</ATTRIBUTE>
</INSTANCE>

i need to get the following construction:

<item identifier="NODE x:5.00cm y:9.00cm w:1.77cm h:2.25cm index:4">
<title>"God Shave the queen"</title>
</item>

so far i used a double for-each loop but could only extract one identifier
for each of the different instances. another thing is, that i only want to
use it for the <INSTANCE class="audio", and ="picture"

it shouldn't be too difficult but i just can't get it right. thanks for
helping me

clemens


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



<Prev in Thread] Current Thread [Next in Thread>