[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: Can mixed content be =?UTF-8?Q?constrained=3F?=
- From: w3c@drrw.info
- To: "Michael Glavassevich" <mrglavas@ca.ibm.com>
- Date: Wed, 07 Apr 2010 07:16:53 -0700
You can also do this very easily in OASIS CAM with XPath assertions too.
What different in CAM however is that you can specify action level - Error, Warning, Info - so downstream processing can decide what to do with the detected condition.
New CAM v1.8 shipped this week if you want to try this using CAMV validation engine.
DW
-------- Original Message --------
Subject: Re: Can mixed content be constrained?
From: Michael Glavassevich <mrglavas@ca.ibm.com>
Date: Tue, March 23, 2010 1:03 pm
To: xml-dev@lists.xml.org
I imagine that would only be possible with assertions in XML Schema 1.1. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrglavas@ca.ibm.com E-mail: mrglavas@a... "Costello, Roger L." <costello@m...> wrote on 03/23/2010 12:56:14 PM: > Hi Folks, > > Mixed content permits strings to be interspersed with elements. For > example, this <Body> element has mixed content: > > <Body> > Dear Sirs: > This is to inform you that we <emp>really</emp> > like your product. > </Body> > > It is declared in XML Schemas like this: > > <element name="Body"> > <complexType mixed="true"> > <element name="emp" minOccurs="0" maxOccurs="unbounded" type="..." /> > </complexType> > </element> > > Can the string portion (e.g., Dears Sirs: This is to ...) of the > mixed content be constrained? Suppose I want to constrain the string > portion within <Body> to be less than 200 characters, how would that be done? > > /Roger
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|