Le mardi 18 octobre 2005 à 15:18 +0200, Robin Berjon a écrit :
> On Oct 18, 2005, at 15:03, Eric van der Vlist wrote:
> > RNG is just borrowing straight from W3C XML Schema facets and WXS  
> > hasn't
> > included the possibility to add regexp options (other options such  
> > as /i
> > would be handy)...
> 
> I posted a while back asking for /i (can't find the pointer though)  
> and the answer I got was that it was difficult to specify in an I18N- 
> clean manner (case doesn't fold/unfold the same depending on the  
> language). It's true though I would have thought that the I18N WG  
> would know how to address that. 

Sure, but a lot of users would be happy to get even a buggy support for
that feature which could be modeled after what Perl does :-) ...

But I also understand that what can be good enough for a programming
language might not be good enough for a standard...

> Also, adding /x would certainly help  
> a lot for complex regexen and it doesn't have the same problems as / 
> i. In the meantime I've been handling this by having the readable  
> pattern in a comment, and each time I edit it I copy it to the  
> pattern and remove the space.

Taking the risk to be called pedant and old fashioned, I'd confess that
I am often using XML entities for this purpose.

I have mentioned that in my book:

http://books.xmlschemata.org/relaxng/relax-CHP-10-SECT-4.html#relax-CHP-10-SECT-4.2

And (in the context of XSLT and complex XPath expressions but the
principle is still the same) in this blog enty:

http://eric.van-der-vlist.com/blog/1311_Good_old_entities.item

Of course, the big downside with RNG is that this doesn't survive a XML
to compact syntax conversion.

Eric
-- 
Weblog:
                 http://eric.van-der-vlist.com/blog?t=category&a=English
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rng-users/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to