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

RE: Newbie: SECOND POST - Help!!

Subject: RE: Newbie: SECOND POST - Help!!
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Mon, 18 Feb 2002 09:56:31 +0100
RE:  Newbie: SECOND POST - Help!!

>As I understand it, the default xsl template renders the dhtml treeview by
>default, but all the nodes
>are fully open (Not good for my uses).



>Does anyone have a solution to this?  I've tried altering the default
>template, but am getting nowhere fast.

the default template I have, at res://msxml.dll/DEFAULTSS.xsl is wd-xsl, so
sort of off-topic for this group, I don't know if it changes in explorer 6.
that said go to the last template the one that reads:

<xsl:template match="*[*]">

and play with that, for example:

<xsl:template match="*[*]">
		<DIV class="e">
			<DIV class="c" STYLE="margin-left:1em;text-indent:-2em">
				<A href="#" onclick="return false" onfocus="h()" class="b">-</A>
				<SPAN class="m">&lt;</SPAN>
				<SPAN>
					<xsl:attribute name="class"><xsl:if
match="xsl:*">x</xsl:if>t</xsl:attribute>
					<xsl:node-name/>
				</SPAN>
				<xsl:apply-templates select="@*"/>
				<SPAN class="m">&gt;</SPAN>
			</DIV>
			<DIV style="display:none;">
				<xsl:apply-templates/>
				<DIV>
					<SPAN class="b"/>
					<SPAN class="m">&lt;/</SPAN>
					<SPAN>
						<xsl:attribute name="class"><xsl:if
match="xsl:*">x</xsl:if>t</xsl:attribute>
						<xsl:node-name/>
					</SPAN>
					<SPAN class="m">&gt;</SPAN>
				</DIV>
			</DIV>
		</DIV>
	</xsl:template>

will get nearer to what you want.(I changed second child:DIV of
DIV[@class='e'] to have a style="display:none;" attribute.) the rest of the
playing around I suppose is up in the <SCRIPT> tag in the head of the
document.

hope this is helpful.


 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.