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

Re: XML Schema - Associate Element Name and Attribute withkeys

  • From: George Cristian Bina <george@o...>
  • To: Andy Street <t3h1337n00b@g...>
  • Date: Mon, 23 Apr 2007 11:38:56 +0300

Re:  XML Schema - Associate Element Name and Attribute withkeys
Hi Andy,

You can do that with Schematron for instance, eventually you can just 
embed a rule inside your XML Schema file. Or you can do that with Relax NG.

Note that if you stay with XML Schema you do not need two validations. 
Allow both modulemessage and servermessage after your global element and 
the validation action will validate them, no matter what element you 
have. Then at application level just check that the element matches what 
the message-type attribute specifies.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Andy Street wrote:
> Thanks for the reply.  I assume I don't have any alternatives except 
> validating that portion after the parser runs its schema validation?
> On 4/22/07, *Michael Kay * <mike@s... 
> <mailto:mike@s...>> wrote:
>      >       Is it possible to associate an element name with an
>     attribute using
>     a key/keyref pair?
>     No, it isn't.
>     Michael Kay
>     http://www.saxonica.com/

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.