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

RE: using entities

From: Andreas Peter <info@minimag.de>
Date: Wed, 27 Feb 2008 20:58:48 +0100
Message-ID: <20080227205848.425s0fyf400gooo0@ssl.lunabox.de>
To: xmlschema-dev@w3.org
RE: using entities

Hello Michael,

thanks for the reply. This is what I thought. So I have to define  
elements with facets for each special character. Lot of work for me :-(

Thanks so far,
Andreas

Quoting Michael Kay <mike@saxonica.com>:

>> I have come to realize that it is always you who answers my
>> silly questions :-) Okay, I understand. So I have to explain
>> a liite more: I am writing a schema for Word 2007 templates
>> which should be validated against a schema. My structure is
>> clear so far. But the author should only be allowed to use
>> some special charcters. And those special characters, e.g.
>> greek characters, should be defined inside the schema, if
>> this is possible?
>
> You can use the xs:pattern facet to control which characters can legally
> appear in the value of an element or attribute. But you can't control the
> different ways of writing such characters - directly, via entity references,
> or via character references. If they're allowed at all, then they can be
> written in any way that XML permits.
>
> Michael Kay
> http://www.saxonica.com/
>
>
>
Received on Wednesday, 27 February 2008 19:59:14 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.