[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Is it possible to rewrite part of an attribute val

Subject: Re: Is it possible to rewrite part of an attribute value with XSL?
From: Jonas Voss <jonas.voss@xxxxxxxxx>
Date: Mon, 20 Jul 2009 10:09:34 +0000
Re:  Is it possible to rewrite part of an attribute val
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@xxxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.