[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XPath (regex?) question about $& in an XSLT stylesheet
I have an element <Person>Benes (senior), Frances</Person>. I can remove the '(senior)' from the data using <xsl:value-of select="replace(., '\([a-zA-Z]+\)', ' ' )"/> which gives me <Person>Benes , Frances</Person> but I want just the opposite: <Person>(senior)</Person> I cannot figure out how to use the predefined variable $& to return the matched string, or the (or even if I can so so in XSLT),. What is the correct (or better) solution to this problem? Thanks, Mark
|
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
|