11-18-05 10:52 PM
Alexandre,
thanks for the response. what's the systanx if the number of parent/child is
unknown?
"Alexandre Roba" wrote:
[vbcol=seagreen]
> Hi Nikki,
>
> Don't know if that was what you requested.
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
> <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
> <xsl:template match="/root">
> <root>
> <xsl:attribute
> name="xsi:noNamespaceSchemaLocation">//pdm/Users/arobadol/MYDOCU~1/ALTOVA~
1/Root.xsd</xsl:attribute>
> <parent1>
> <xsl:for-each select="parent1">
> <xsl:for-each select="child">
> <child>
> <xsl:value-of select="."/>
> </child>
> </xsl:for-each>
> </xsl:for-each>
> </parent1>
> <parent2>
> <xsl:for-each select="parent2">
> <xsl:for-each select="child">
> <child>
> <xsl:value-of select="."/>
> </child>
> </xsl:for-each>
> </xsl:for-each>
> </parent2>
> </root>
> </xsl:template>
> </xsl:stylesheet>
>
> Regards,
>
> Alexandre Roba
>
>
> "Nikki" wrote:
>
[ Post a follow-up to this message ]
|