W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

RE: BinaryBase64 Schema Validation Problem

From: Zafar Abbas <zafara@microsoft.com>
Date: Mon, 16 Aug 2004 09:33:47 -0700
Message-ID: <563BD3496D37BB4B9F4E8F896A58F2B30238BC6E@RED-MSG-50.redmond.corp.microsoft.com>
To: "Francis Lang" <francislang@redlinesoftware.co.uk>, <xmlschema-dev@w3.org>

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:extension base="xsd:base64Binary">
                                    <xsd:attribute ref="dt:dt" />

I now get the error:

Reference to undeclared namespace prefix: 'dt'

Any ideas?
Received on Monday, 16 August 2004 16:35:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:23 UTC