[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

relax ng, reusing regexp patterns

  • To: xml-dev@l...
  • Subject: relax ng, reusing regexp patterns
  • From: Carlos Pita <carlosjosepita@y...>
  • 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

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

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.