[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to add styling to the HTML using XSL

Subject: Re: How to add styling to the HTML using XSL
From: jeroen@xxxxxxxx
Date: Wed, 25 May 2011 10:04:45 +0200
Re:  How to add styling to the HTML using XSL
Basically, there are two ways to include CSS in HTML documents.

My preference is to have one big section in the header that collects all the elements (you could generate a separate CSS output document instead). This can be achieved by using a special mode ("cssmode") to generate CSS rules within that section. Generate a unique Id for the element, and use CSS id matching to link the generate CSS with the generated element. This method I use (with some optimizations to avoid generating multiple identical CSS rules) in my tei2html scripts (on Google code).

Easier is just to use the style attribute of HTML, but this is frowned upon by some CSS/HTML purists.

Jeroen.


Quoting Sanjaya Liyanage <sanjayacl@xxxxxxxxx>:


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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.