svg4you: XML -> XML / Attribute erzeugen / Unbekanntes Namespace-Präfix!?

Beitrag lesen

Tach snowwhite,

Daher muss ich so etwas schreiben:
<xsl:attribute name="xmlns:xsi"> xsl:texthttp://www.w3.org/2001/XMLSchema-instance</xsl:text>
</xsl:attribute>
Aber hier gibt es, wie gesagt, Probleme mit den Doppelpunkten.

Probiere es so:

<xsl:element name="concept">  
  <xsl:attribute name="xmlns" namespace="http://www.w3.org/2001/XMLSchema-instance">  
    <xsl:text>http://www.w3.org/2001/XMLSchema-instance</xsl:text>  
  </xsl:attribute>  
  <xsl:attribute name="xml:lang">  
    <xsl:text>en-us</xsl:text>  
  </xsl:attribute>  
  <xsl:attribute name="xsi:noNamespaceSchemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">  
    <xsl:text>../catalog/concept.xsd</xsl:text>  
  </xsl:attribute>  
</xsl:element>

Ergebnis:

<concept xml:lang="en-us" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../catalog/concept.xsd"/>

Man liest sich,
svg4you