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

Re: Defining non-WXS datatypes


Re:  Defining non-WXS datatypes
> / Jeni Tennison <jeni@j...> was heard to say:
> | on the context in which it's going to be used. Perhaps a new datatype
> | library can define QNames in a different way, one that includes a
> | normalized version that's a legal representation (e.g. {uri}name).
>
> The problem with a lexical form for QNames is that you want them to be
> recognized in content, which means you need to start them with a
> markup character, which is a can of worms no matter how you look at
> it.

I think Jeni is talking about a datatype library that defines an internal,
canonical representation of QNames used for validation. Forming the
representation requires document context.

Bob Foster

>
> Defining the markup character on a per-vocabulary basis could be done.
> Just as XSLT says that curly braces mean something special in (many)
> attribute values, a language could say that "{" always introduces a
> QName and therefore "{uri}name" is always equivalent to "x:name" where
> x is bound to uri. Unfortunately, as soon as you start mixing
> namespaces, you'd have to have rules for when its a markup character
> and when it isn't. And you'd have to have some escaping mechanism
> (&#x7b; won't cut it) for a literal "{". And it would all be very
> confusing.
>
> Defining the markup character on a global could be done...in YML. :-)
>
>                                         Be seeing you,
>                                           norm


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.