I want to transform an XML document. The source XML looks like this:
<svc:ElementList>
<svc:Element>
<Year>2007</Year>
</svc:Element>
<svc:Element>
<Year>2006</Year>
</svc:Element>
<svc:Element>
<Year>2005</Year>
</svc:Element>
</svc:ElementList>
I want to turn that into:
<ElementList>
<NewTag2007/>
<NewTag2006/>
<NewTag2005/>
</ElementList>
The following line of code isn't working:
<xsl:element name="{concat('NewTag',Element/Year)}"/>
The output is a series of elements that look like this: < NewTag >. (Without the spaces...)
"//Element/Year", "./Element/Year", and "//svc:Element/Year" don't work either. One complication is that the "Element" tag is in the "svc" namespace while the "Year" tag is in the default namespace.
So anyway, am I facing a namespace issue or am I mis-using the "concat()" function?