RE: BinaryBase64 Schema Validation Problem

In my example, DATATYPES_SCHEMA_LOCATION was just a place holder. You should provide a file Uri where your datatypes XSD schema is located.

-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On Behalf Of Francis Lang
Sent: Monday, August 16, 2004 1:06 AM
To: xmlschema-dev@w3.org
Subject: RE: BinaryBase64 Schema Validation Problem

Thanks for your help so far.

I've declared the schema:

<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:datatypes" elementFormDefault="qualified">
<xsd:import namespace=" urn:schemas-microsoft-com:datatypes" schemaLocation="DATATYPES_SCHEMA_LOCATION" />

And my PDFFILE Tag is now:

<xsd:element name="PDFFILE" minOccurs="0" maxOccurs="1" type="tyBinBase64" />

Complex type tyBinBase64 is:

<xsd:complexType name="tyBinBase64">
            <xsd:simpleContent>
                        <xsd:extension base="xsd:base64Binary">
                                    <xsd:attribute ref="dt:dt" />
                        </xsd:extension>           
            </xsd:simpleContent>
</xsd:complexType>

I now get the error:

Reference to undeclared namespace prefix: 'dt'

Any ideas?

Received on Monday, 16 August 2004 16:35:01 UTC