show all values in xsl query

Get new comments by email
You can cancel email alerts at anytime.
Comments (1)

chandan in Toronto, Ontario

122 months ago

What would be the xsl syntax for:
If I pass a value(link select), then it will show only the specific values but, when I don’t pass any value then it will show all values.
<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:param name="linkselected" ></xsl:param>
<xsl:template match="/">
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<xsl:for-each select="catalog/cd">
<xsl:if test="country=$linkselected" >
<xsl:value-of select="title"/>
<xsl:value-of select="artist"/>
</xsl:if >
<xsl:variable name ="bb" > </xsl:variable>


- Was this comment helpful?
/ No
Reply - Report abuse

» Sign in or create an account to comment on this topic.