This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Newbie: SECOND POST - Help!!
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 18 Feb 2002 09:56:31 +0100
- Subject: RE: [xsl] Newbie: SECOND POST - Help!!
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
>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"><</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">></SPAN>
</DIV>
<DIV style="display:none;">
<xsl:apply-templates/>
<DIV>
<SPAN class="b"/>
<SPAN class="m"></</SPAN>
<SPAN>
<xsl:attribute name="class"><xsl:if
match="xsl:*">x</xsl:if>t</xsl:attribute>
<xsl:node-name/>
</SPAN>
<SPAN class="m">></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