Subject: RE: Re: Need Help
From: cknell@xxxxxxxxxx
Date: Fri, 08 Dec 2006 20:07:16 -0500
|
<?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@xxxxxxxxxx - email
-----Original Message-----
From: Brant Schroeder <brantschr@xxxxxxxxx>
Sent: Fri, 8 Dec 2006 16:49:49 -0800 (PST)
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: 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@xxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent: Friday, December 8, 2006 4:22:47 PM
Subject: Re: 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
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
|