[oXygen-user] Attribute name dt:dt
Martijn Van der Graaff
Tue May 25 04:01:20 CDT 2010
Hi,
I need to create an array of elements with several attributes:
<a name="aa" dt:dt="string">aValue</a>
dt is a namespace " "htttp://www.dt.com"
By using xslt:
<custom-attributes>
<xsl:for-each select="$custom-attributes">
<xsl:variable name="markCode" select="string(lower-case(./@MarkCode))"/>
<xsl:variable name="dtType">string</xsl:variable>
<xsl:variable name="markCodeValue" select="./@MarkValue"/>
<xsl:element name="custom-attribute" inherit-namespaces="no">
<xsl:attribute name="name" select="$markCode"/>
<xsl:attribute name="dt" select="$dtType/text()"/>
<xsl:value-of select="$markCodeValue/text()"/>
</xsl:element>
</xsl:for-each>
</custom-attributes>
I get in the result
<custom-attribute xmlns:dt="http://www.intershop.com/xml/ns/enfinity/6.1/core/impex-dt" name="brand" dt:dt="string">TITANFLX</custom-attribute>
I need to get the xmlns:dt="http://www.intershop.com/xml/ns/enfinity/6.1/core/impex-dt" out of the attribute,
The result should be: <custom-attribute name="brand" dt:dt="string">TITANFLX</custom-attribute>
Yours, Martijn
More information about the oXygen-user
mailing list