xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: Re: [xsl] 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

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor