Re: [xsl] How to add styling to the HTML using XSL

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
Hi,

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

Le 25/05/2011 09:05, Sanjaya Liyanage a icrit :
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