J
Jacques
I'm not sure how to address nodes with prefixes when doing a select.
----------------------------------------------------------
<System xmlns="" name="SAP_R3_Financials_DEV200">
<Attributes xmlns="">
<pcd:Attribute name="ApplicationServer" value="secacsap"/>
<pcd:Attribute name="ServerPort" value="3200"/>
</Attributes>
</System>
----------------------------------------------------------
the xsl looks like this:
----------------------------------------------------------
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnscd="www.sapportals.com/portal/" version="1.0">
<xslutput method="text"/>
<xsl:template match="text()">
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
<xsl:template match="System">
<xsl:value-of select="normalize-space(@name)"/>,<xsl:apply-templates
select="Attributes/pcd:Attribute"/>,
</xsl:template>
<xsl:template match="Attribute">
<xsl:value-of select="@name"/>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------
Although no errors are reported, I dont see any of the "Attribute" output.
Is the "<xsl:apply-templates select="Attributes/pcd:Attribute"/>" the
correct way of addressing it? I've trieb Attributes/Attributes also and it
doesn't work either.
Regards
----------------------------------------------------------
<System xmlns="" name="SAP_R3_Financials_DEV200">
<Attributes xmlns="">
<pcd:Attribute name="ApplicationServer" value="secacsap"/>
<pcd:Attribute name="ServerPort" value="3200"/>
</Attributes>
</System>
----------------------------------------------------------
the xsl looks like this:
----------------------------------------------------------
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnscd="www.sapportals.com/portal/" version="1.0">
<xslutput method="text"/>
<xsl:template match="text()">
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
<xsl:template match="System">
<xsl:value-of select="normalize-space(@name)"/>,<xsl:apply-templates
select="Attributes/pcd:Attribute"/>,
</xsl:template>
<xsl:template match="Attribute">
<xsl:value-of select="@name"/>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------
Although no errors are reported, I dont see any of the "Attribute" output.
Is the "<xsl:apply-templates select="Attributes/pcd:Attribute"/>" the
correct way of addressing it? I've trieb Attributes/Attributes also and it
doesn't work either.
Regards