Subject: RE: [xsl] Newbie: SECOND POST - Help!! From: "Bryan Rasmussen" <bry@xxxxxxxxxx> Date: Mon, 18 Feb 2002 09:56:31 +0100 |
>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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Newbie: SECOND POST - Help!!, Rob Collyer | Thread | Re: [xsl] Newbie: SECOND POST - Hel, Agnes kielen |
Re: [xsl] XML to FrameMaker MIF via, Bertrand Delacretaz | Date | [xsl] Evaluation of a string contai, Carsten Klein |
Month |