[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xs appinfo
> 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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.