- From: Zafar Abbas <zafara@microsoft.com>
- Date: Fri, 13 Aug 2004 09:39:16 -0700
- To: "Francis Lang" <francislang@redlinesoftware.co.uk>, <xmlschema-dev@w3.org>
You need to use the xs:import statement in your parent schema:
<xsd:import namespace=" urn:schemas-microsoft-com:datatypes"
schemaLocation="DATATYPES_SCHEMA_LOCATION" />
Note that you have to provide a location of the datatypes XSD schema in
the place of DATATYPES_SCHEMA_LOCATION.
Add an attribute ref on the PDFFILE element:
<xsd:element name="PDFFILE" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension
base="xsd:base64Binary">
<xsd:attribute
ref="dt:dt" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
On Behalf Of Francis Lang
Sent: Friday, August 13, 2004 3:12 AM
To: xmlschema-dev@w3.org
Subject: RE: BinaryBase64 Schema Validation Problem
Do you mean like this?
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dt="urn:schemas-microsoft-com:datatypes"
elementFormDefault="qualified">
<xsd:element name="PDFFILE" minOccurs="0" maxOccurs="1"
dt:dt="bin.base64" />
Francis
Received on Friday, 13 August 2004 16:42:17 UTC