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

Re: Unclear Part of XML 1.1 Specification


xml 1.1 restrictedchar
Hi,

Thanks for the explanation of charData.

The document production has a '-' though:
document ::=

prolog element Misc*
-
Char* RestrictedChar Char*

From your explanation, though, I believe this means (please let me know if 
I'm wrong) "any string of the concatenation of prolog, element, and misc*, 
except those strings with a restrictedChar in them".

 Thanks Bob,
Dan

----- Original Message ----- 
From: "Bob Foster" <bob@o...>
To: "Daniel Zingaro" <daniel_zingaro@c...>
Cc: <xml-dev@l...>
Sent: Tuesday, October 19, 2004 3:09 PM
Subject: Re:  Unclear Part of XML 1.1 Specification


> Daniel Zingaro wrote:
> > Hi all,
> >  From section 6 of the XML spec, I have learned that:
> > * binds tighter than |
> >  + binds tighter than |
> > but there is no mention of the precedence of the '-' (set difference)
> > operator. At least for me, this makes reading the spec pretty tricky
> > (since I don't
> > know much XML yet). Could someone explain where '-' fits in, perhaps by
> > using the document ::= production, using () to clearly show how '-'
> works?
>
> In the uses of - precedence doesn't matter. The - doesn't occur in the 
> document production. Since you know what set difference is, consider the 
> production
>
> [14]   CharData    ::=   [^<&]* - ([^<&]* ']]>' [^<&]*)
>
> CharData describes the set of all strings that contain any sequence of 
> zero or more characters that do not include the '<' or '&' characters, 
> excluding the set of such strings that contain the substring ']]>'. IOW, 
> CharData ends before the next occurrence of '<' or '&' and cannot contain 
> ']]>'.
>
> Bob Foster
> http://xmlbuddy.com
>
> > Thanks!!
> > Dan
>
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 


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.