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

Re: image placing question

Subject: Re: image placing question
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Mon, 19 Dec 2011 16:03:46 +0100
Re:  image placing question
To say nothing about the subtle differences with spaces in the string
preceding the image file name.

(Having to picking things out of element paragraph (!) text could be
an indication that the data model for the input XML isn't quite


On 19 December 2011 15:57, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> 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


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.
First Name
Last Name
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.