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

Re: Naive question about binary encodings

  • To: "Marty Burns" <burnsmarty@c...>
  • Subject: Re: Naive question about binary encodings
  • From: ht@c... (Henry S. Thompson)
  • Date: 26 Mar 2003 13:22:59 +0000
  • Cc: xml-dev@l...
  • In-reply-to: <OFEOICFLLBNNFJEENHNNKENCCIAA.burnsmarty@c...>
  • References: <OFEOICFLLBNNFJEENHNNKENCCIAA.burnsmarty@c...>
  • Sender: ht@i...
  • User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code)

type base64binary
"Marty Burns" <burnsmarty@c...> writes:

> Henry,
> This is a beginners type question. Can your formulation
> xsi:type="xs:base64Binary" be used as an override of any element contents,


> or must it be provided for in the validating schema?

Also 'no' :-).  That is, if there _is_ no validating schema, this will
work, since in the absence of appropriate components schema processors
may, and most do, traverse the document looking for things to do.

> If it needs to be
> accomodated in the schema, how would you do this to override all the nested
> contents in foo?

It would be odd to have an element which you wanted to allow to have
either encoded-binary _or_ proper XML content, wouldn't it?

But if you did, you'd have to define the element's type as mixed and
emptiable, that is, all element content optional.  Best bet -- use an
abstract element of type anyType in your content model, then declare
two elements which name that as substitutionGroup head, one of type
base64Binary and the other of your preferred element content.  Then
use the appropriate one for the appropriate content in your instances.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@c...
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.