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] image placing question


Subject: Re: [xsl] image placing question
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 19 Dec 2011 15:57:26 +0100

Roelof Wobben wrote:

I have this xml :

<tekst><p>FLOAT : img_5874.jpg</p>

<xsl:template match="text//p[starts-with(., 'FLOAT : ')]" priority="1">
     <img class="float-left" src="{$workspace}/{image}/{substring-after(., 'FLOAT: ')}" />
</xsl:template>

But the FLOAT did not convert to the img tag and all the<p> are gone.

Any expert who can tell me why this is not working.

Well in the XML you have an element named "tekst", in your XSLT you try to match on elements named "text". You will have to use the same spelling both document.



--


	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/


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