On 18/10/05, David Tolpin <[EMAIL PROTECTED]> wrote: > I did it with a custom datatype library a year and a half ago, I > think. Here is how it looks:
Thanks David. ( I won't say that we could do with /x to make this simpler :-) How to use please? Is this a part of the RNV validator you wrote David, or could it be integrated with Jing? If it is a part of rnv, is it a part of it, or an extension library that you have? I never cease to be amazed at what regex can do. regards DaveP > > 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 Links > > > > > > > > -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk ------------------------ 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/
