Hi Dave,

Le mardi 18 octobre 2005 à 13:41 +0100, Dave Pawson a écrit :
> On 17/10/05, Dave Pawson <[EMAIL PROTECTED]> wrote:
> > At http://www.w3.org/TR/xmlschema-2/#regexs
> >
> > I can find no mention of the /x option to enable a clearer regex layout.
> >
> > Is this valid for regex's used in <param name="pattern"> please?
> 
> 
> No answer, let me try again.
> 
> In java I can do
> 
>       String ems="[a-zA-Z0-9!\\#$%&'*+\\-/=?\\^_`{|}~]+
>         (\\.[a-zA-Z0-9!\\#$%&'*+\\-/=?\\^_`{|}~]+)[EMAIL PROTECTED]";
> 
>       Pattern emp=Pattern.compile (ems,Pattern.COMMENTS);
> 
> 
> which allow the regex to be laid out more clearly for comprehension
> (by the reader).
> Is there any way this can be used in relax-ng XML syntax please?

No, not as far as I know!

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)...

Eric

> 
> regards
> 
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
-- 
Carnet web :
           http://eric.van-der-vlist.com/blog?t=category&a=Fran%C3%A7ais
------------------------------------------------------------------------
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 --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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