[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: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 19 Dec 2011 15:57:26 +0100
Re:  image placing question
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

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.