|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] <br> in with-param
hello, it is jian again with stupid questions. please, help. i have xml like this: <item> <start>20011019T140000</start> <summary>summary</summary> </item> <item> <start>20011019T140001</start> <summary>summary2</summary> </item> <item> <start>20011020T140002</start> <summary>summary3</summary> </item> <item> <start>20011020T140003</start> <summary>summary4</summary> </item> and i tried to make _____________________
|summary1<br>
day 19 |summary2<br>
___________|___________
|summary3<br>
day 20 |summary4<br>
___________|___________but what i get is _____________________
|summary1 summary2
day 19 |
___________|___________
|summary3 summary4
day 20 |
___________|___________
jian PS.if you have time you can check my xsl bellow for more details on what i've been trying to do: <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" version="4.01" encoding="UTF-8" /> <xsl:param name="para" select="17"/> <xsl:template match="/">
<html>
<body>
<table border="1">
<xsl:apply-templates select="AirCal"/>
</table>
</body>
</html>
</xsl:template><xsl:template match="AirCal">
<xsl:call-template name="day">
<xsl:with-param name="day" select="$para"/>
<xsl:with-param name="summary">
<xsl:apply-templates select="//start" mode="a"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template><xsl:template name="day"> <xsl:param name="day"/> <xsl:param name="summary"/> <tr> <td> <xsl:value-of select="$day"/> </td> <td> <xsl:value-of select="$summary"/><br/> </td> </tr> <xsl:if test="$day<$para+6"> <xsl:call-template name="day"> <xsl:with-param name="day" select="$day+1"/> <xsl:with-param name="summary">
<xsl:apply-templates select="//start">
<xsl:with-param name="dday" select="$day"/>
</xsl:apply-templates>
</xsl:with-param></xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="//start" mode="a">
<xsl:if test="substring(.,7,2)=$para">
<xsl:value-of select="following-sibling::summary"/><br/>
</xsl:if>
</xsl:template><xsl:template match="//start">
<xsl:param name="dday"/>
<xsl:if test="substring(.,7,2)=$dday+1">
<xsl:value-of select="following-sibling::summary"/><br/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








