|
Subject: Re: [xsl] XSL Queries From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Sun, 12 Feb 2006 09:09:28 +0000 |
:-) except
<xsl:choose>
<xsl:when test="($basics >= 'understood')">
<xsl:message terminate = "yes">Feel free to ask</xsl:message>
</xsl:when>
</xsl:choose>
<xsl:if test="($basics >= 'understood')">
<xsl:message terminate = "yes">Feel free to ask</xsl:message>
</xsl:if ><xsl:with-param name="effort">basics</xsl:with-param> is better with <xsl:with-param name="effort" select = "'basics'"/>
// Setting the showprice div with the price value
showprice.innerHTML = priceVal.innerText;
}
</script>
<table border="1">
<tr>
<th>catagory</th>
<th>price</th>
</tr>
<tr>
<td >
<xsl:for-each select="category">
<div id = "{@type}">
<a onclick="myfunction({price})" href = "#">
<xsl:value-of select="@type"/>
</a>
</div>
<hr/>
<div id = "{price}" style="display:none">
<xsl:value-of select="price"/>
</div>
</xsl:for-each>
</td>
<td>
<div id = "showprice"></div>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>HTH Vasu
From: Andrew Franz <afranz0@xxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] XSL Queries Date: Sat, 11 Feb 2006 16:52:05 +1100
Easy.
This should solve your problem:
<xsl:template match="bookstore">
<xsl:apply-templates select="book[(@author='Kay') or (@author='Tennyson')]" />
<xsl:call-template name="diy" />
<xsl:choose>
<xsl:when test="($basics >= 'understood')">
<xsl:message terminate = "yes">Feel free to ask</xsl:message>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="book"> <xsl:call-template name="read"> <xsl:with-param name="effort">basics</xsl:with-param> </xsl:call-template> </xsl:template>
manoj kumar wrote:
Hi everyone,
I have an xml file with details <orders> <category type='shirt'> <price>100</price> </category> <category type='Tshirt'> <price>150</price> </category> <category type='Jeans'> <price>500</price> </category> <category type='Pant'> <price>750</price> </category> </orders>
In an xsl file i have to list type of categories in left side on clicking=
particular tag the price details should be displayed on right. Give me a =
sample of this, so that i can develop it further [
EX: click link pant should display 750 on right hand side
Please send to this email-ID :b_manoj@xxxxxxxxx
Thanks in Advance, Manoj
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL Queries, Andrew Franz | Thread | Re: [xsl] XSL Queries, Andrew Franz |
| Re: [xsl] Output-version attribute , Colin Paul Adams | Date | [xsl] Selecting child elements bar , Sebastian Tennant |
| Month |