Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - Re: [xsl] Is it possible to rewrite part of an attribute value with [Thread Next] Re: [xsl] Is it possible to rewrite part of an attribute value withTo: xsl-list@-----.------------.--- Date: 7/3/2009 5:19:00 PM Hermann Stamm-Wilbrandt wrote: > And with XSLT 1.0 processor supporting > xmlns:regexp="http://exslt.org/regular-expressions" > > you can do: > <xsl:attribute name="style" select="regexp:replace(@style, > 'fill:none;stroke:black;', 'g', '')"/> Not quite I think as there is no select attribute for xsl:attribute in XSLT 1.0. But you can of course do <xsl:attribute name="style"> <xsl:value-of select="regexp:replace(@style, 'fill:none;stroke:black;', 'g', '')"/> </xsl:attribute> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/ --~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@l...> --~-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
