|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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"><</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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








