Hi,
ich möchte die statische Ausgabe des Root-Elements
durch eine Deklaration mit einem Attribute-Set ersetzen
Alle Namespaces sind im XSLT ordentlich definiert, sie sind also im Rahmen des XSLT bekannt, und dennoch erhalte ich bei der Transformation beim ersten Attribut den Fehler "Unknown namespace prefix".
Woran könnte das liegen?
ich möchte die statische Ausgabe des Root-Elements
Code:
<the-abc:Root xmlns:the-abc="https://www.abc.org/THE-ABC" xmlns:the-gen="https://www.abc.org/THE-GEN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.abc.org/THE-GEN the-gen-1.2.4.xsd https://www.abc.org/THE-ABC the-abc-10.11.12.xsd">
Code:
<xsl:element name="{$Root}" use-attribute-sets="root"> <xsl:attribute-set name="root"> <xsl:attribute name="xmlns:the-abc">https://www.abc.org/THE-ABC</xsl:attribute> <xsl:attribute name="xmlns:the-gen">https://www.abc.org/THE-GEN</xsl:attribute> <xsl:attribute name="xmlns:xsi">http://www.w3.org/2001/XMLSchema-instance</xsl:attribute> <xsl:attribute name="xsi:schemaLocation">https://www.abc.org/THE-GEN the-gen-2.4.xsd https://www.abc.org/THE-ABC the-abc-10.1.xsd</xsl:attribute> </xsl:attribute-set>
Woran könnte das liegen?
Comment