>> No answer, let me try again.
>>
> 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 did it with a custom datatype library a year and a half ago, I  
think. Here is how it looks:

datatypes dsl = "http://davidashen.net/relaxng/scheme-datatypes";

start=element addr-spec {
   dsl:token {
     s-pattern="""
       comment = "\(([^\(\)\\]|\\.)*\)"
       atom = "[a-zA-Z0-9!#$%&'*+\-/=?\^_`{|}~]+"
       atoms = atom "(\." atom ")*"
       person = "\"([^\"\\]|\\.)*\""
       location = "\[([^\[\]\\]|\\.)*\]"
       local-part = "(" atom "|" person ")"
       domain = "(" atoms "|" location ")"
       start = "(" comment " )?" local-part "@" domain "( " comment ")?"
     """
   }
}




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