Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to fix the

Status
Not open for further replies.

DSUN

Technical User
Oct 17, 2002
1
TH
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=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<vw:ExceptionView viewname=&quot;my exception view&quot; version=&quot;1.0&quot; xmlns:vw=&quot;x-schema:schema.xml&quot; >
<vw:priority op=&quot;in&quot; values=&quot;High Medium&quot;/>
</vw:ExceptionView>
========================================

XSL
=========================================
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot; >

<xsl:eek:utput method=&quot;xml&quot; version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; indent=&quot;no&quot; />

<xsl:template match=&quot;/&quot;>
<table width=&quot;900&quot; >

<tr >
<td width=&quot;25%&quot; >Priority </td>
<td width=&quot;75%&quot;>
<xsl:apply-templates select=&quot;vw:priority&quot;/>
</td>
</tr>
</table>

</xsl:template>

<xsl:template match=&quot;vw:priority&quot;>
<xsl:value-of select=&quot;@values&quot;/>
</xsl:template>

</xsl:stylesheet>
=======================================

schema which saved in the file schema.xml
in the same diretory
=======================================
<Schema xmlns=&quot;urn:schemas-microsoft-com:xml-data&quot; xmlns:d=&quot;urn:schemas-microsoft-com:datatypes&quot;>
<AttributeType name='version' d:type='string' required='yes'/>
<AttributeType name=&quot;viewname&quot; d:type=&quot;string&quot; required=&quot;yes&quot;/>
<AttributeType name=&quot;values&quot; d:type=&quot;nmtokens&quot;/>
<AttributeType name=&quot;op&quot; d:type=&quot;enumeration&quot; d:values=&quot;in not_in like&quot;/>


<ElementType name=&quot;ExceptionView&quot; content=&quot;eltOnly&quot; model=&quot;closed&quot; order=&quot;seq&quot;>
<attribute type=&quot;viewname&quot; required=&quot;yes&quot;/>
<attribute type='version'/>
<element type='priority' minOccurs='1' maxOccurs='1'/>
</ElementType>

<ElementType name=&quot;priority&quot; content=&quot;empty&quot; model=&quot;closed&quot; order=&quot;one&quot;>
<attribute type=&quot;op&quot;/>
<attribute type=&quot;values&quot;/>
</ElementType>
</Schema>

=======================================

&quot;msxml3.dll error '80004005'

Reference to undeclared namespace prefix: 'vw'. &quot;

Who knows this error and solutions
Thanks
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top