[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] matching text with regexp in xpath
Title: matching text with regexp in xpath Hi, I was wondering if anybody knows of an extension function to XPath which allows me to match text and attribute values in XML documents against regular expressions. I'd like to be able to write something like: /a/b[re:match(@c, '{.}')] to match all elements where an attribute has a value matching the regexp {.} (AVT) or: /a/b/@c[re:match(., '{.}')] to match the attribute elements themselves. If there isn't such a thing yet I imagine it shouldn't be to hard to write. Can somebody give me some hints/directions on how to get started with this? Thanks, --
|
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
|