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

Re: context (was Re: ANN: SAX Filters for Namespace Processing)

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: xml-dev@l...
  • Date: Wed, 01 Aug 2001 12:50:20 -0400

Re: context (was Re: ANN: SAX Filters for Namespace Processing)
At 9:19 AM -0400 8/1/01, Simon St.Laurent wrote:


>RELAX and RELAX NG provides some very cool context-sensitive document
>modeling tools which let you say things like "paragraphs inside of lists
>have a different content model than paragraphs in the main body of the
>document."  (I believe that TREX, Schematron, and Examplotron are
>similarly capable, and have no problems with things like substitution
>groups muddying context.)
>

W3C Schemas can do this too. It isn't a specific advantage of the other languages. See http://www.ibiblio.org/xml/books/xmljava/chapters/ch02s05.html#N5583 for one example of something like this. 

What I haven't yet figured out how to do with W3C schemas, and am beginning to think may be impossible, is to say that the first paragraph inside a list has a different content model than the second paragraph inside a list. 
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+

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.