Subject: [xsl] XML schema general convert with XSLT (namespaces..) From: ronald heller <ronald@xxxxxxxxxxx> Date: Fri, 21 Sep 2001 09:32:47 +0200 |
Suppose I want to write a general convertor for XML schema, example: <xs:element name="Access-code" type="xs:string"/>
sample code: <xsl:choose> <xsl:when test="@type='xsd:string'"> <xsl:text>Text</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>UNKNOWN TYPE </xsl:text> <xsl:value-of select="@type"/> </xsl:otherwise> </xsl:choose>
So in the above the output is: <P>UNKNOWN TYPE xs:string</P>
When I change the namespace prefix into xs: <P>Text</P>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] get parameter from xalan , Crowers, Steve | Thread | RE: [xsl] XML schema general conver, Michael Kay |
RE: [xsl] xpath expression needed, Michael Kay | Date | RE: [xsl] Question regarding XSL an, Michael Kay |
Month |