[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] relax ng, reusing regexp patterns
Hi all! I'm writing a relax ng compact syntax schema which uses the same regex constraint (xsd:pattern) to a xsd:string in a lot of places. Suppose I need to constraint some attributes to "char\[[0-9]+\]" and others to "unichar\[[0-9]+\]" (for example char[15], unichar[5]). I would like to reuse the regex pattern "\[[0-9]+\]". With rng I could do this by using an entity reference. But I'm not sure if it's possible with rnc. For the example above it really doesn't matter if I need to copy the pattern twice. But for my real world schema it does clutter the schema. Thank you in advance. Regards, Carlos ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|