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

Re: Outputting "entire nodes" 2

Subject: Re: Outputting "entire nodes" 2
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Fri, 23 Jun 2000 13:23:16 -0400
Re: Outputting "entire nodes" 2
Ragnar Schierholz wrote:
> 
> If you want to allow the author of the document to enter some text to
> appear in the generated HTML and also allow him/her to include
> HTML-formatting such as tables, images, links, etc. this seems to me to
> be an appropriate way. Could you do this with XHMTL???

So you are including HTML output from document authors in your XSL?
This seems an odd way to do things. The idea is usually to separate
your input document from your stylesheet.

Either way, your author should mark up their document in XHTML which
is essentially just well-formed HTML. If you then use

<xsl:output method="html">

in your XSL, a conformant processor will transform this to regular
HTML 4.0 by doing things like converting <img /> to <img> and condensing
some attributes like <dl compact="compact"> to <dl compact>.

This moves your documents towards valid HTML, by forcing authors to
enter well-formed code (your stylesheet or input document won't load
unless this is the case). You also future-proof yourself a bit by
having documents in XML, which you'll be able to send out directly
as soon as browsers catch up,  and be able to perform other
transformations on that data to get out other formats (for instance
I had a stylesheet that converted an (X)HTML table into semi-colon
separated text which I could load into Excel).

-- 
Warren Hedley


 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.