0

My source data is setup like this

<Fields>
<Field Name="CustomerPORef" Type="co-customerporef">508823</Field>
</fields>

MY XSL is setup like this

<tr>
<td><xsl:value-of select="@Name"/></td>
<td><xsl:value-of select="."/></td>
</tr>

To output this

<tr>
<td>CustomerPORef</td>
<td>508823</td>
</tr>

I want to change the XSL to use the value as the element name so it looks like this

<CustomerPORef>508823</CustomerPORef>
SkuzeeII
  • 1
  • 1
  • What's your source XML? What does your current XSL look like? – Matt Hogan-Jones Dec 01 '15 at 17:01
  • 2
    Possible duplicate of [xsl:value-of used as xsl:element name](http://stackoverflow.com/questions/4708551/xslvalue-of-used-as-xslelement-name) – Matt Hogan-Jones Dec 01 '15 at 17:05
  • I agree with @MattJones, this is a duplicate question. The only difference between your question and the duplicate question is that you will need to use the `Name` attribute instead of the `name` element. Like: `` – Daniel Haley Dec 01 '15 at 17:12

0 Answers0