W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > April 2013

RE: [Action-484] Create an ABNF based on http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Apr/0047.html

From: Pablo Nieto Caride <pablo.nieto@linguaserve.com>
Date: Wed, 17 Apr 2013 10:40:18 +0200
To: "'Jirka Kosek'" <jirka@kosek.cz>
Cc: <public-multilingualweb-lt@w3.org>
Message-ID: <069101ce3b47$30f5b950$92e12bf0$@linguaserve.com>
Hi Jirka, all,

------------------------------------------------------------------
-----Mensaje original-----
De: Jirka Kosek [mailto:jirka@kosek.cz] 
Enviado el: miƩrcoles, 17 de abril de 2013 9:05
Para: Pablo Nieto Caride
CC: public-multilingualweb-lt@w3.org
Asunto: Re: [Action-484] Create an ABNF based on http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Apr/0047.html

On 16.4.2013 18:29, Pablo Nieto Caride wrote:

> The rules of the ABNF are:
> 
> [14] charClassSub ::= ( posCharGroup | negCharGroup ) '-' 
> charClassExpr

I think that we don't want charClassSub at all. Argument was that many RE engines doesn't support subtraction of classes.

[PNC]: Yes you are right, I said it myself, I don't like it and besides it's not commonly used, sorry it slipped my mind. Here is the ABNF with charClassExpr removed:

[1] charClass ::= charClassEsc | charClassExpr | WildcardEsc

[2] charClassEsc ::= SingleCharEsc | MultiCharEsc

[3] SingleCharEsc ::= '\' [nrt\|.?*+(){}#x2D#x5B#x5D#x5E]

[4] MultiCharEsc ::= '\' [dD]

[5] charClassExpr ::= '[' charGroup ']'

[6] charGroup ::= posCharGroup | negCharGroup

[7] posCharGroup ::= ( charRange | charClassEsc )+

[8] charRange ::= seRange | XmlCharIncDash

[9] seRange ::= charOrEsc '-' charOrEsc

[10] charOrEsc ::= XmlChar | SingleCharEsc

[11] XmlChar ::= [^\#x2D#x5B#x5D]

[12] XmlCharIncDash ::= [^\#x5B#x5D]

[13] negCharGroup ::= '^' posCharGroup

[14] WildcardEsc ::= '.'

> Now if memory serves we need a RELAX NG schema to validate the grammar, don't we? Or are we going to use the regex finally?

No, we just need this for specification. For schema we can rewrite this into regex if there is strong demand for this.
[PNC]: Ah ok, I thought I read it somewhere.


				Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Cheers,
Pablo.
Received on Wednesday, 17 April 2013 08:40:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:07 UTC