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

methods of inserting html into output?

Subject: methods of inserting html into output?
From: "Steve Renshaw" <renshaw_steve@xxxxxxxxxxx>
Date: Wed, 24 Oct 2001 22:33:42 +0000
insert html into xsl
This inquiry is more inline with constructing a FAQ, but I am sitting
here wondering about the various techniques one can use to insert
html in the output. So let me ask, "What are the various ways of
inserting html/css/javascript into the output? When would you use
each technique?" I seem to just write what I need an innovate when
it doesn't work. Now I would like a more thorough understanding.
This is what I come up with on first thought:

1) In-line literal elements into template body:
<xsl:template ...>
  <tag> ... </tag>
</xsl:template>

USE WHEN SIMPLICITY IS NEEDED

2) Wrap in CDATA section

<!--CDATA[
 <tag> ... </tag>
]]>

USE WHEN NEED TO PRESERVE INDENTATION IN OUTPUT?

3) <xsl:element> and <xsl:attribute>
  <xsl:element name="tag">
   <xsl:attribute name="attr" value="value"/>
  </xsl:element>

USE WHEN ?

4) <xsl:text>

USE WHEN?

5) <xsl:comment>

USE WHEN?

6), 7) ,8) ???

Can other add their advice?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.