This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: recursion questions


Date: Wed, 31 Jan 2001 16:55:59 +0000
From: cutlass <cutlass@secure0.com>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14-5.0smp i686; en-US; 
m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] recursion questions
References: <a0500191fb69dece85b7e@[192.168.254.9]>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

try the simple xsl and xml from the link of the front page of
http://www.ejim.co.uk

i did this quite a long time ago, but i think it still works, worked
with sablot

,jim fuller

by way of B. Tommie Usdin wrote:

>  Date: Tue, 30 Jan 2001 16:50:26 -0800
>  From: Robert Koberg <rob@koberg.com>
>  Subject: Re: [xsl] recursion questions
>  To: xsl-list@lists.mulberrytech.com
>  Message-id: <089a01c08b1f$cdc3c460$7818c93f@chubby>
>  MIME-version: 1.0
>  X-Mailer: Microsoft Outlook Express 5.50.4133.2400
>  Content-type: text/plain; charset="iso-8859-1"
>  Content-transfer-encoding: 7bit
>  X-MSMail-Priority: Normal
>  X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>  References: <a05001917b69d0825838f@[192.168.254.9]>
>  X-Priority: 3
>
>  Thanks Frank,
>
>  But that uses the MSXML. I am using Xalan (company standard) to do the
>  transformation. Also, the one I modified (see link below) is a
>  cross-platform/cross-browser dhtml/js solution that does not require
>  frames.
>
>  The DHTML/JS code is available at:
>  http://developer.netscape.com/docs/examples/index.html?content=javascript.ht
>
>  ml
>  click on JavaScript Collapsible Lists
>
>  But, I got it working. My brain was not working when I tried my first
>  template (which I spent about 2hrs on...).  I left it alone for a few
>  hours
>  and got back to it, started fresh, and finished in about 10 minutes.
>
>  -RK
>
>
>>   From: "Frank Neugebauer" <neuggs@hotmail.com>
>>   To: xsl-list@lists.mulberrytech.com
>>   Subject: Re: [xsl] recursion questions
>>   Date: Tue, 30 Jan 2001 22:26:05
>>   Mime-Version: 1.0
>>   Content-Type: text/plain; format=flowed
>>   Message-ID: <LAW2-F154x33E1ioWwr00000100@hotmail.com>
>>   X-OriginalArrivalTime: 30 Jan 2001 22:26:06.0253 (UTC)
>>   FILETIME=[A308ADD0:01C08B0B]
>>
>>   Robert,
>>
>>   Didn't get a chance to answer some of your specific questions. However,
>
>  the
>
>>   one possibility for the exp/coll "tree" list is XTree mentioned here
>>  a few
>>   days ago.
>>
>>   I'm working with it now and although the XSL and XML seem to be tightly
>>   coupled, I think there's potential to decouple them.
>>
>>   http://www.duemetri.it/xtree
>>
>>   Hope this helps somewhat.
>>
>>   Regards,
>>   Frank Neugebauer
>>
>>
>>   >From: Robert Koberg <rob@koberg.com>
>>   >Reply-To: xsl-list@lists.mulberrytech.com
>>   >To: xsl-list@lists.mulberrytech.com
>>   >Subject: [xsl] recursion questions
>>   >Date: Tue, 30 Jan 2001 07:31:24 -0800
>>   >
>>   >I am having a problem understanding how to build some JavaScript
>>  for an
>>   >exandable/collapsible list similar to a directory tree.  If anybody
>>  can
>>   >help
>>   >it would be greatly appreciated.  I could include what I have been
>>  trying
>>   >XSL-wise but it would probably be more distractive to the end goal.  I
>>   >cannot figure out how to build a recursive template to handle the
>
>  following
>
>>   >XML (the desired output follows):
>>   >
>>   ><section role="level1" folder="root" label="Test">
>>   >      <page id="1"/>
>>   >     <section role="level2" folder="XSLXML" label="XSL/XML">
>>   >          <page id="2"/>
>>   >          <section role="level3" folder="XML" label="XML">
>>   >              <page id="3"/>
>>   >              <page id="4"/>
>>   >         </section>
>>   >         <section role="level3" folder="XSL" label="XSL">
>>   >              <page id="5"/>
>>   >               <page id="6"/
>>   >         </section>
>>   >     </section>
>>   >     <section role="level2" folder="JSDHTMLCSS" label="JS/DHTML/CSS">
>>   >        <section role="level3" folder="JS" label="JS">
>>   >         </section>
>>   >        <section role="level3" folder="DHTML" label="DHTML">
>>   >        </section>
>>   >        <section role="level3" folder="CSS" label="CSS">
>>   >        </section>
>>   >     </section>
>>   ></section>
>>   >
>>   >
>>   >
>>   >
>>   >============================================================
>>   >DESIRED OUTPUT
>>   >-------------------------------------
>>   >    root = new List(true, width, height, bgColor);
>>   >    root.setFont("<FONT FACE='Arial,Helvetica'
>
>  SIZE=-1'><B>","</B></FONT>");
>
>>   >      root.addItem("page id=1");
>>   >      XSLXML = new List(true, width, height, "#EEEEEE");
>>   >      XSLXML.onexpand = colorize;
>>   >      XSLXML.setFont("<FONT FACE='Arial,Helvetica'
>>  SIZE=-1'>","</FONT>");
>>   >        XSLXML.addItem("page id=2");
>>   >
>>   >        XML = new List(false, width, height, bgColor);
>>   >        XML.onexpand = colorize;
>>   >        XML.setFont("<FONT FACE='Arial,Helvetica'
>>  SIZE=-1'>","</FONT>");
>>   >        XML.addItem("page id=3");
>>   >        XML.addItem("page id=4");
>>   >
>>   >      XSLXML.addList(XML, "XML");
>>   >
>>   >        XSL = new List(false, width, height, bgColor);
>>   >        XSL.onexpand = colorize;
>>   >        XSL.setFont("<FONT FACE='Arial,Helvetica'
>>  SIZE=-1'>","</FONT>");
>>   >        XSL.addItem("page id=5");
>>   >        XSL.addItem("page id=6");
>>   >XSLXML.addList(XSL, "XSL");
>>   >
>>   >    root.addList(XSLXML, "XML/XSL");
>>   >
>>   >      JSDHTMLCSS = new List(true, width, height, "#EEEEEE");
>>   >      JSDHTMLCSS.onexpand = colorize;
>>   >      JSDHTMLCSS.setFont("<FONT FACE='Arial,Helvetica'
>>   >SIZE=-1'>","</FONT>");
>>   >
>>   >        JS = new List(false, width, height, bgColor);
>>   >        JS.onexpand = colorize;
>>   >        JS.setFont("<FONT FACE='Arial,Helvetica'
>>  SIZE=-1'>","</FONT>");
>>   >        JS.addItem("Some JS stuff");
>>   >        JS.addItem("Some more JS stuff");
>>   >
>>   >      JSDHTMLCSS.addList(JS, "JS");
>>   >
>>   >        DHTML = new List(false, width, height, bgColor);
>>   >        DHTML.onexpand = colorize;
>>   >        DHTML.setFont("<FONT FACE='Arial,Helvetica'
>
>  SIZE=-1'>","</FONT>");
>
>>   >        DHTML.addItem("Some DHTML stuff");
>>   >        DHTML.addItem("Some more DHTML stuff");
>>   >
>>   >      JSDHTMLCSS.addList(DHTML, "DHTML");
>>   >
>>   >        CSS = new List(false, width, height, bgColor);
>>   >        CSS.onexpand = colorize;
>>   >        CSS.setFont("<FONT FACE='Arial,Helvetica'
>>  SIZE=-1'>","</FONT>");
>>   >        CSS.addItem("Some CSS stuff");
>>   >        CSS.addItem("Some more CSS stuff");
>>   >
>>   >      JSDHTMLCSS.addList(CSS, "CSS");
>>   >
>>   >    root.addList(JSDHTMLCSS, "JS/DHTML/CSS");
>>   >
>>   >    root.build(width/8,40);
>>   >
>>   >
>>   >   XSL-List info and archive:
>>  http://www.mulberrytech.com/xsl/xsl-list
>>   >
>>
>>   _________________________________________________________________
>>   Get your FREE download of MSN Explorer at http://explorer.msn.com
>>
>>    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]