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

RE: XML Schema to relaxNG xslt

  • To: "John Cowan" <jcowan@r...>
  • Subject: RE: XML Schema to relaxNG xslt
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Fri, 21 Jun 2002 14:33:51 -0700
  • Cc: "Rick Taylor" <taylor@p...>,<xml-dev@l...>
  • Thread-index: AcIZXXMYen9Xi+3DSomNAMSncZtzHwAAEcSg
  • Thread-topic: XML Schema to relaxNG xslt

RE:  XML Schema to relaxNG xslt
> -----Original Message-----
> From: John Cowan [mailto:jcowan@r...] 
> Sent: Friday, June 21, 2002 12:54 PM
> To: Dare Obasanjo
> Cc: John Cowan; Rick Taylor; xml-dev@l...
> Subject: Re:  XML Schema to relaxNG xslt
 
<snip mimicing W3C XML Schem extension> 

> Does that replicate the functionality sufficiently?  Of 
> course the definitions can be in separate schema files.

Type derivation in XSD comes in two flavors; extension and restriction.
Extension is easy to mimic even with DTDs. However how does RELAX NG
mimic restrictions (especially the nested ones) that involve facets like
xs:minInclusive, xs:maxInclusive? 

 
> > A lot of functionality falls under extensible types including 
> > polymorphism via substitution groups and xsi:type which I 
> do not see 

<snip choice> 

> Wherever h is referenced, an h1 or h2 or ... element may 
> appear.  There is no constraint that they have compatible 
> content models, though.

Without the constraint that they have compatible content models then it
is just an xs:choice 
 


> > Is there anything akin to xs:redefine in RELAX NG? I 
> couldn't find it in
> > a cursory reading of the tutorial or the spec.   
> 
> Yes.  If you say:
> 
> include "subspec" {
> 	foo = ...
> 	bar = ...
> 	baz = ...
> 	}

Interesting. Could you point me at the part of the spec or tutorial that
discusses this functionality. 

Thanks.  



-- 
PITHY WORDS OF WISDOM 
Any philosophy that can be put into a nutshell belongs there.

This posting is provided "AS IS" with no warranties, and confers no
rights. 



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.