← Prev in month ← Prev in thread
Next in thread → Next in month →

relax ng, reusing regexp patterns

From
Carlos Pita <>
To
Date
2005-08-13T16:45:44Z
ID
<>
Thread
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
← Prev in month ← Prev in thread
Next in thread → Next in month →