[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: relax ng, reusing regexp patterns
- From: Carlos Pita <carlosjosepita@yahoo.com.ar>
- Date: Sat, 13 Aug 2005 13:45:44 -0300
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.ar; h=Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=r70w/ohn+8EPchgUaK/iRKY75H1j4kLihJne+T2FOxl/bMPE6YpABPcu/6QjGvQjlZ6rrmhRa/8eHFRywGR6ccJkGtUHLqToPTmMfXPCHmU2o5g5ToZYwjukE72aulhI8D83H8jRuMRfrZ8vvfdDMrDpAhsbKYR/nd4KOWydriA= ;
- User-agent: KMail/1.7.2
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
|