Hello all,
I am trying to pick up an attribute value and using that as an element name in my output, but I fail to see which kind of function I can use for that. The XML in my input document looks like this (only showing the interesting stuff):
Code:
<p>
<pPr>
<pStyle val="Heading1"/>
</pPr>
<r>
<t>How to install the module</t>
</r>
</p>
<p>
<pPr>
<pStyle val="Heading2"/>
</pPr>
<r>
<t>Preparations</t>
</r>
</p>
What I would need as output is:
Code:
<Heading1>How to install the module</Heading1>
<Heading2>Preparations</Heading2>
Maybe I am asking for the obvious - being an XSLT newbie - but I do not have the time to read through the 3 books on XSLT I have. If someone can point me to the type of functionality I should be looking for in Michael Kay's book that would be wonderful, too.
Thanks
Jang