OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Unclear Part of XML 1.1 Specification

[ Lists Home | Date Index | Thread Index ]

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@objfac.com>
To: "Daniel Zingaro" <daniel_zingaro@cogeco.ca>
Cc: <xml-dev@lists.xml.org>
Sent: Tuesday, October 19, 2004 3:09 PM
Subject: Re: [xml-dev] 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>
> 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS