This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Newbie: SECOND POST - Help!!
- From: "Agnes kielen" <a dot kielen at home dot nl>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 18 Feb 2002 10:25:25 +0100
- Subject: Re: [xsl] Newbie: SECOND POST - Help!!
- References: <DCEPIHHFOCEMDBGBKIOPMEAJCEAA.bry@itnisk.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Brian,
The only way to change the default view of an XML is by transforming it with
a stylesheet CSS or XSLT. I don't think I fully understand your question but
I can tell you that it is possible to use the official XSLT language with
Explorer 6.0. For more information see the official MSXML FAQ
http://www.netcrucible.com/ . Or go to the sniffer:
http://www.bayes.co.uk/xml/index.xml?/xml/utils/msxml_sniffer.htm .
Cheers,
Agnes
(also newby and somtimes grumpy)
----- Original Message -----
From: "Bryan Rasmussen" <bry@itnisk.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Monday, February 18, 2002 9:56 AM
Subject: RE: [xsl] 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list