[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: Roelof Wobben <rwobben@xxxxxxxxxxx>
Date: Mon, 19 Dec 2011 14:52:30 +0000
RE:  image placing question
I found and thougt this idea would work.

I have this xml :


    <section id="6" handle="sections">Sections</section>

    <entry id="12">

    <title handle="even-voorstellen">Even Voorstellen</title>

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

     <p>Naam : Tamara Wobben<br />

        Geboorte gewicht : 2000 gram<br />

        Geboorte lengte : 44 cm.<br />

        Geboortedatum : 1 september 2005  </p>



And I found this xml :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"

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

<xsl:template match="text//*">
    <xsl:element name="{name()}">
        <xsl:apply-templates select="* | @* | text()"/>

<xsl:template match="text//@*">
    <xsl:attribute name="{name(.)}">
        <xsl:value-of select="."/>


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.


---------------------------------------- > From: rwobben@xxxxxxxxxxx > To:
xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Date: Mon, 19 Dec 2011 10:32:37 +0000 >
Subject: RE:  image placing question > > > is er heel snel en we gaan
samen naar huis, een voordeel als je in het zelfde gebouw > > > werkt. > > > >
> > > Just a simple thought, is there some kind of rule, which you can
introduce. If just one > place image before the > > . If more than one, place
image after the first > > . > > Otherwise mode can be an option. But than
there must be some kind of difference between the input for page 1 and 2, so
it is possible to choose the mode for the right desired output. > > > > > So
as you can see the pictures don't have a fixed place but all share the same
xml. > > >

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.