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
adequate.)
-W
On 19 December 2011 15:57, Martin Honnen
<Martin(_dot_)Honnen(_at_)gmx(_dot_)de> 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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--