[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 10:47:00 +0100
defaultss.xsl download 6.0
Agnes wrote:

>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.
actually I was answering someone else's post but I didn't use proper
response etiquette so you misunderstood. The prior question was on how to
edit the default view in Explorer, explorer 5.x has an xsl in the old wd-xsl
namespace which you can access by going to your browser window and typing
in:  res://msxml.dll/DEFAULTSS.xsl I wasn't sure if in explorer 6 this old
wd-xsl had been changed to xslt. I have explorer 6 on a computer here, I
suppose I should check. :)
the other poster wanted to edit this xsl to give slightly different
functionality in some application they're making(I suppose) if you go to
http://www.itnisk.com/xml/dawelcome.xml using explorer, you'll see an
example of a simple edit I did about 1 year and a half ago.

the following was a partial solution to what he wanted, it loads the xml
with nodes closed instead of expanded, however I didn't play with the script
so it loads with the - instead of the + in front of nodes one wants to
toggle, which means one has to double click the first time to get it back in
it's proper state.
> <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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 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.