xsl-list
[Top] [All Lists]

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

2011-05-25 13:52:19
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 écrit :
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

--~------------------------------------------------------------------
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>
--~--




--
Matthieu Ricaud
IGS-CP
Service Livre numérique


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>