I am trying to design a XSL for the following XMl
whose schema is defined in another file,
But it gives me the following error when I transform
the XML with my XSL
"msxml3.dll error '80004005'
Reference to undeclared namespace prefix: 'vw'. "
XML
========================================
<?xml version="1.0" encoding="UTF-8"?>
<vw:ExceptionView viewname="my exception view" version="1.0" xmlns:vw="x-schema:schema.xml" >
<vwriority op="in" values="High Medium"/>
</vw:ExceptionView>
========================================
XSL
=========================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" >
<xslutput method="xml" version="1.0" encoding="UTF-8" indent="no" />
<xsl:template match="/">
<table width="900" >
<tr >
<td width="25%" >Priority </td>
<td width="75%">
<xsl:apply-templates select="vwriority"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="vwriority">
<xsl:value-of select="@values"/>
</xsl:template>
</xsl:stylesheet>
=======================================
schema which saved in the file schema.xml
in the same diretory
=======================================
<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:d="urn:schemas-microsoft-com:datatypes">
<AttributeType name='version' d:type='string' required='yes'/>
<AttributeType name="viewname" d:type="string" required="yes"/>
<AttributeType name="values" d:type="nmtokens"/>
<AttributeType name="op" d:type="enumeration" d:values="in not_in like"/>
<ElementType name="ExceptionView" content="eltOnly" model="closed" order="seq">
<attribute type="viewname" required="yes"/>
<attribute type='version'/>
<element type='priority' minOccurs='1' maxOccurs='1'/>
</ElementType>
<ElementType name="priority" content="empty" model="closed" order="one">
<attribute type="op"/>
<attribute type="values"/>
</ElementType>
</Schema>
=======================================
"msxml3.dll error '80004005'
Reference to undeclared namespace prefix: 'vw'. "
Who knows this error and solutions
Thanks
David
whose schema is defined in another file,
But it gives me the following error when I transform
the XML with my XSL
"msxml3.dll error '80004005'
Reference to undeclared namespace prefix: 'vw'. "
XML
========================================
<?xml version="1.0" encoding="UTF-8"?>
<vw:ExceptionView viewname="my exception view" version="1.0" xmlns:vw="x-schema:schema.xml" >
<vwriority op="in" values="High Medium"/>
</vw:ExceptionView>
========================================
XSL
=========================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" >
<xslutput method="xml" version="1.0" encoding="UTF-8" indent="no" />
<xsl:template match="/">
<table width="900" >
<tr >
<td width="25%" >Priority </td>
<td width="75%">
<xsl:apply-templates select="vwriority"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="vwriority">
<xsl:value-of select="@values"/>
</xsl:template>
</xsl:stylesheet>
=======================================
schema which saved in the file schema.xml
in the same diretory
=======================================
<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:d="urn:schemas-microsoft-com:datatypes">
<AttributeType name='version' d:type='string' required='yes'/>
<AttributeType name="viewname" d:type="string" required="yes"/>
<AttributeType name="values" d:type="nmtokens"/>
<AttributeType name="op" d:type="enumeration" d:values="in not_in like"/>
<ElementType name="ExceptionView" content="eltOnly" model="closed" order="seq">
<attribute type="viewname" required="yes"/>
<attribute type='version'/>
<element type='priority' minOccurs='1' maxOccurs='1'/>
</ElementType>
<ElementType name="priority" content="empty" model="closed" order="one">
<attribute type="op"/>
<attribute type="values"/>
</ElementType>
</Schema>
=======================================
"msxml3.dll error '80004005'
Reference to undeclared namespace prefix: 'vw'. "
Who knows this error and solutions
Thanks
David