Subject: Re: [xsl] How to add styling to the HTML using XSL From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx> Date: Wed, 25 May 2011 20:51:59 +0200 |
What about something like : <xsl:template match="textBox"> <div class="textBox" style="top:{@top}px;left:{@left}px;"> <xsl:apply-templates/> </div> </xsl:template>
Regards, Matthieu
Hi,
I want to position an element in the HTML as specified in the XML using XSLT.
myXML.xml <ui> <textBox top="20" left="30"/>
</ui>
I want to position the text box in the HTML as 20px from top and 30px from left.Using CSS this can be done.But Is there any way that XSL can help to figure this out?Any idea would be great.
Thank you Sanjaya
-- Matthieu Ricaud IGS-CP Service Livre numirique
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to add styling to the, jeroen | Thread | [xsl] Re: evaluate rendered text le, Giuseppe Briotti |
[xsl] [ANN] Balisage 2011 Pre-confe, Tommie Usdin | Date | Re: [xsl] need xsl template for thi, Matthieu Ricaud-Duss |
Month |