W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

Re: Introducing child elements in appinfo

From: Eddie Robertsson <eddie@allette.com.au>
Date: Tue, 27 Nov 2001 09:33:56 +1100
Message-ID: <3C02C354.93380AA6@allette.com.au>
To: Manos Batsis <m.batsis@bsnet.gr>
CC: xmlschema-dev@w3.org
> I attempted to introduce a custom element/namespace for my own needs
> (the ns is declared in the schema root):
>
> <xsd:annotation>
>  <xsd:appinfo>
>   <bs:defaultFix>/@Alignment</bs:defaultFix>
>  </xsd:appinfo>
> </xsd:annotation>
>
> MSXML4 gives me "Element bs:defaultFix not defined in DTD/Schema".
> What am I missing?

What version of MSXML4 are you using?
The following schema validates fine for me using MSXML 4.0 RTM:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:bs="www.bs.com">
 <xs:element name="Test" type="xs:string">
  <xs:annotation>
   <xs:appinfo>
    <bs:defaultFix>/@Alignment</bs:defaultFix>
   </xs:appinfo>
  </xs:annotation>
 </xs:element>
</xs:schema>

Cheers,
/Eddie
Received on Monday, 26 November 2001 17:26:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:19 GMT