xsl-list
[Top] [All Lists]

Re: [xsl] Is it possible to rewrite part of an attribute value with XSL?

2009-07-20 06:10:24
Hi,

Sorry for the late reply.

Thank you very much for your replies, they helped me a lot!

On Fri, Jul 3, 2009 at 17:36, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

in xslt 1 you haven't got regex but if you know yur input is in a
certain format something like

 <xsl:attribute name="style">
   <xsl:text>stroke-width</xsl:text>
   <xsl:value-of select="substring-after(@style,'stroke-width')"/>
 </xsl:attribute>


I ended up using the suggestion above by David Carlisle, which worked, and
have solved the issue I had.

And thanks to Michael Kay, I will describe my question better next time I
ask, which I no doubt will.

Thanks again, very much.

Jonas

--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--