<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />
<xsl:strip-space elements="*" />
<xsl:param name="widget" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$widget='blue'">
... your code here ...
</xsl:when>
<xsl:when test="$widget='red'">
... your code here ...
</xsl:when>
<xsl:when test="$widget='green'">
... your code here ...
</xsl:when>
<xsl:otherwise>
... your code here ...
</xsl:otherwise>
<xsl:choose>
</xsl:template>
</xsl:stylesheet>
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Brant Schroeder <brantschr(_at_)yahoo(_dot_)com>
Sent: Fri, 8 Dec 2006 16:49:49 -0800 (PST)
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Need Help
So, if it can be done I am clueless as to how to make it work. The XSLT
structure you sent me worked perfectly. I can us ASPX to get a parameter of
what page they are on or the URL which will match the url contained in the XML.
I don't know how to setup the XSLT so it will accept the parameter I have for
it or how to hide nodes that don't need to be shown.
Also does anyone have any recomendations as to a good book on XSLT. I am
interested in learning it and want to buy one that will give me a good
foundation and have some advanced topics.
Thanks
Brant
----- Original Message ----
From: David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Sent: Friday, December 8, 2006 4:22:47 PM
Subject: Re: [xsl] Need Help
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.
yes you can do that. What I was stressing is that any user interaction on
the page (if that's what you mean by selecting) is interacting with the
_result_ of running xslt, after the xslt process has finished.
David
--~------------------------------------------------------------------
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>
--~--
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--