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

Re: Any samples of client-side XSLT to generate webpag

Subject: Re: Any samples of client-side XSLT to generate webpages?
From: Marcus Andersson <marcus@xxxxxxxxxx>
Date: Tue, 27 Jul 2004 10:04:40 +0200
importnode example
Daniel Joshua wrote:


document.getElementById("appendChild") .appendChild(document.importNode(resultDoc.documentElement, true));

it lookes like you are add a whole document into a the "appendChild"
element, is that legal or am I mistaken?

It's perfectly legal the way it's done (from a node perspective). But it doesn't enforce that the usage is correct (ie you can create a complete html document with html-head-body etc with your transform and it would be incorrect (from a DTD point of view) if you added that to a div in your document, but if you produce a document that has for example a div as it's root element then it's perfectly legal). You mostly use Sarissa (and approaches similar to Sarissa) to produce HTML fragments and not complete HTML documents (unless you want to overwrite a complete document with the result, this is done for example if you opens a window or iframe on the client and want to populate it from scratch). At least I do.

/Marcus

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.