[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: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx>
Date: Tue, 27 Jul 2004 17:44:55 +0800
sarissa examples
Ok, I understand this now.

If I ever need to produce HTML fragments I will use Sarissa (I find how it
works very intersting). But the approach I am currently trying is to produce
whole HTML pages by XSLT transformation in the client's browser.

Can anyone explain to me why the below happens:

 http://202.156.224.29:18080/shatteredspace/login.do
  - work in IE only
  - unable to submit for in Mozilla

 http://202.156.224.29:18080/shatteredspace/login.do?transform=true
  - works in Mozilla - currently need to manually add the '?transform=true',
but I might automate this later)
  - nothing visible (except background graphic) in IE

I really need help. This is so confusing to me.


Regards,
Daniel


-----Original Message-----
From: Marcus Andersson [mailto:marcus@xxxxxxxxxx]
Sent: Tuesday, 27 July, 2004 4:05 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Any samples of client-side XSLT to generate webpages?


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.