[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ANN: XSet an XML property set
Jonathan Borden wrote, > ... > An issue for discussion is whether to use regexp expressions "as-is" or to > rewrite these in an XML equivalent. Since code exists for regexp matching, > my initial thoughts were to try to leave the regexps intact and attach them > as constraints via the attribute "regexp". In many ways, your proposal is > more logical from the pure XML perspective, on the other hand there are lots > of regexps in XML 1.0 and using this syntax will make the document > significantly larger. > I'd include the regexp. You might call the attribute "match". That would fit right in with the notion of 'productions'. Only problem is, escaping "<" and so on would make them harder to read. If the need to escape characters makes the regex's too unpleasant, follow the approaches taken in RELAX. After all, RELAX specifies grammars too. Tom Passin
|
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
|