Just to show what it looks like, this is a post I received for dec 9.
Not very easy to read.
JJ
Date: Fri, 8 Dec 2006 16:11:50 -0800 (PST)
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Brant Schroeder <brantschr(_at_)yahoo(_dot_)com>
Subject: Re: [xsl] Need Help
Message-ID:
<20061209001150(_dot_)45903(_dot_)qmail(_at_)web55204(_dot_)mail(_dot_)re4(_dot_)yahoo(_dot_)com>
Sorry, I am new to this and just happened to come across the site. I will =
do a little reading. I thought you could pass parameters into the xslt and=
use it within conditional statments. I guess I was wrong. Thanks for the=
help I will just keep tring to put something together that meets my needs.=
If anyone else has any other ideas about this your help would be apprecia=
ted. =0A=0ACharles Knell seemed to think that it was possible but I am not=
as wise as him so I don't know if it is.=0A=0ABrant=0A=0A----- Original Me=
ssage ----=0AFrom: David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>=0ATo:
xsl-list(_at_)lists(_dot_)m=
ulberrytech.com=0ASent: Friday, December 8, 2006 3:55:40 PM=0ASubject: Re: =
[xsl] Need Help=0A=0A=0A(please see the list posting guidelines about choos=
ing subject lines=0Athat help the archives later)=0A=0A=0A> I want to trans=
form it to this=0A> ..=0A> Is this possible? =0A=0Anot exactly as your req=
uested format isn't well formed (<a> elements not=0Aclosed) but essentiall=
y I suspect you want something like=0A=0A<xsl:stylesheet version=3D"1.0"=0A=
xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform";>=0A<xsl:output indent=
=3D"yes"/>=0A<xsl:template match=3D"menu">=0A <ul>=0A <xsl:apply-templa=
tes/>=0A </ul>=0A</xsl:template>=0A<xsl:template match=3D"item">=0A <li>=
=0A <a href=3D"{(_at_)url}"><xsl:value-of select=3D"@title"/></a>=0A
<xsl:=
if test=3D"item">=0A <ul>=0A <xsl:apply-templates/>=0A </ul>=
=0A </xsl:if>=0A </li>=0A</xsl:template>=0A=0A=0A</xsl:stylesheet>=0A=
=0Awhich produces=0A=0A<ul>=0A <li>=0A <a href=3D"#">Home</a>=0A <=
/li>=0A <li>=0A <a href=3D"#">My Stuff</a>=0A <ul>=0A <=
li>=0A <a href=3D"#">Backgr
i>=0A =
<li>=0A <a href=3D"#">Flyers</a>=0A </li>=0A <li=
=0A <a href=3D"#">Posters</a>=0A </li>=0A </ul>=0A=
</li>=0A <li>=0A <a href=3D"#">Portfolio</a>=0A <ul>=0A =
<li>=0A <a href=3D"#">Backgrounds</a>=0A </li>=0A =
<li>=0A <a href=3D"#">Flyers</a>=0A </li>=0A =
<li>=0A <a href=3D"#">Posters</a>=0A </li>=0A =
<li>=0A <a href=3D"#">More Information</a>=0A <ul>=
=0A <li>=0A <a href=3D"#">Resume</a>=0A =
</li>=0A <li>=0A <a href=3D"#">Con=
tact Me</a>=0A </li>=0A </ul>=0A </li>=0A =
</ul>=0A </li>=0A</ul>=0A=0A=0A> Also I would like to apply CSS Clas=
ses to certain nodes depending if=0A> they are selected or not.=0A=0Aselect=
ed by what, where?=0A=0A=0A> And can I hide child nodes if the p=3Darent =
node is not selected?=0A=0Axslt doesn't interact with the browser at all (e=
ven if you are using a=0Aclient side xslt that's in the browser) it just ge=
nerates an html page=0Athat is then rendered, so if you know what css and/o=
r javascript you=0Aneed to get whatever dynamic effect that you want, then =
you can generate=0Athat code in xslt, but xslt doesn't "know" anyting about=
css or=0Ajavascript (or html) it's just generating an element tree, and th=
e=0Ajavascript is just text as fas as xslt is concerned.=0A=0ADavid=0A=0A--=
~------------------------------------------------------------------=0AXSL-L=
ist info and archive: http://www.mulberrytech.com/xsl/xsl-list=0ATo unsubs=
cribe, go to: http://lists.mulberrytech.com/xsl-list/=0Aor e-mail: <mailto:=
xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>=0A--~--=0A=0A=0A
=0A__________=
Send instant messages to your online friends http://uk.messenger.yahoo.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--