This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Antwort: Xalan and namespace
- From: manfred dot weigel at rzb dot at
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 26 Sep 2002 15:27:33 +0200
- Subject: Antwort: [xsl] Xalan and namespace
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi!
<xsl:apply-templates (strikethrough: xsl:)select="xsd:element"/>
You canīt use a namespace prefix on defined attributes.
Try this one:
<xsl:apply-templates select="xsd:element"/>
cheers
manfred
sarchiopone@inwind.it@lists.mulberrytech.com am 26.09.2002 14:51:48
Bitte antworten an xsl-list@lists.mulberrytech.com@inet
Gesendet von: owner-xsl-list@lists.mulberrytech.com
An: XSL-List@lists.mulberrytech.com
Kopie:
Thema: [xsl] Xalan and namespace
I have a xsd and a .xsl
xsd source is :
<xsd:element name="ente">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="name"/>
<xsd:element ref="interface"/>
<xsd:element ref="ufficio"/>
<xsd:element ref="email" minOccurs="0"/>
<xsd:element ref="address" minOccurs="0"/>
<xsd:element ref="telefono" minOccurs="0" maxOccurs
="unbounded"/>
<xsd:element ref="fax" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="web" minOccurs="0"/>
<xsd:element ref="ISTAT" minOccurs="0"/>
<xsd:element ref="riferimento" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
xsl source is:
<xsl:param name="nodo" select="ente"/>
<xsl:template match="/">
<xsl:apply-templates xsl:select="xsd:element"/>
</xsl:template>
<xsl:template match="xsd:element">
<pipe><xsl:value-of select="@name"/></pipe>
</xsl:template>
When I apply xsl to xsd, "<xsl:apply-templates xsl:select="xsd:element"/>"
isn't matched by "<xsl:template match="xsd:element">"
Whats the matter ?
Thanks very much.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list