Nokogiri (Ruby) and XPath
Posted
by JP
on Stack Overflow
See other posts from Stack Overflow
or by JP
Published on 2010-05-14T23:51:14Z
Indexed on
2010/05/14
23:54 UTC
Read the original article
Hit count: 191
Does Nokogiri only support XPath 1.0? I'm trying to do simple string replacement in a value-of cell, like so (where element
contains something like '* My string (useless text)')
<xsl:value-of select="replace(element,'^\*\ (.+)\ \(.*\)$','\\1')">
Is this poorly formed XSL? Or is there a limitation with Nokogiri?
© Stack Overflow or respective owner