10-28-05 10:03 PM
you can use a functoid script and write a custom Inline XSLT Call Template
like this:
<xsl:template name="MyXsltConcatTemplate">
<xsl:for-each select="/child::node()/child::*">
<xsl:element name="code">
<xsl:value-of select="local-name(.)" />
</xsl:element>
<xsl:element name="value">
<xsl:value-of select="./text()" />
</xsl:element>
</xsl:for-each>
</xsl:template>
"Testdummy" wrote:
> EXAMPLE
>
> SCHEMA (IN)
> <header>
> <PO>12</PO>
> <CardNum>3245</CardNum>
> <POLine>44</POLine>
> <Box>1213</Box>
> </header>
>
>
> SCHEMA (OUT)
> <root>
> <code>
> <Value>
> </root>
>
>
>
>
> Data will should look like this:
>
> <root>
> <code>401</code> -- Constant Value I will need to add (401)meaning PO
> <Value>12</Value>
>
> <code>402</code> -- Constant Value I will need to add (402)meaning
> CARDNUM
> <Value>3245</Value>
>
> <code>403</code> -- Constant Value I will need to add (403)meaning
> POLINE
> <Value>44</Value>
>
> <code>404</code> -- Constant Value I will need to add (404)meaning BOX
> <Value>1213</Value>
> </root>
>
>
[ Post a follow-up to this message ]
|