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

RE: collapsable / expandable tree in XSL

Subject: RE: collapsable / expandable tree in XSL
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 11 Mar 2003 14:17:07 -0500
css expandable div
[Mael Guillemot]

> I went through the archive mails on "disable-output-escaping" 
> and the majority of posts deal with how to insert html 
> abreviations like &lt;,  &apos; instead of < , '. So I tried 
> different ways:
>     =>  <xsl:text disable-output-escaping="yes"> <![CDATA[ 
> <div id="CollapseMenu0Block2"> ]]>  </xsl:text> )
>     =>  using <xsl:output method="text"/> or  <xsl:output 
> method="html"/> at the begining of the stylesheet
>     =>  <processing-instruction name="html"> <![CDATA[ <div 
> id="CollapseMenu0Block2"> ]]> </processing-instruction>
> 
> but the browser still prints the tag instead of generating an 
> node tree and processing it 

You would be better off to figure out how to get your output without
using d-o-e.  Undoubtedly it can be done.  The stylesheet has to be
organized so as to create well-formed fragments (that is, complete
elements).  

I have made collapsing trees using javascript and css, using xslt to
create the nested <div> elements, and I did not have to use d-o-e to do
it (my method requires the browser to have a decent DOM, though, so it
only works with recent versons of IE and Mozilla-based browsers).

It seems that you want to create the referenced results but not to use
the referenced javascript libraries.  There is therefore no reason to
rely on outdated html-specific (and probably invalid) notions such as
not closing div elements.

Cheers,

Tom P

 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.