|
Subject: Re: [xsl] [XSL]Display Different Results Based on Count of Node Sets From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sun, 23 Sep 2007 17:10:06 +0200 |
Hi,
Below are two templates I am using to display some titles of the book. I am wondering if anybody knows whether or not I can use the count function here so that for books with multiple books by one author,
the titles would be broken off with the <p> tag, but those with only one, would not display the <p> tag. Anyone know if I should use <xsl:if> or the count function here?
<!-- first title --> <xsl:template match="title[1]"> <p><xsl:apply-templates /></p> </xsl:template> <!-- throw away --> <xsl:template match="title" />
Cheers, -- Abel Braaksma
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] [XSL]Display Different Result, Alice Ju-Hsuan Wei | Thread | RE: [xsl] [XSL]Display Different Re, Michael Kay |
| [xsl] [XSL]Display Different Result, Alice Ju-Hsuan Wei | Date | RE: [xsl] [XSL]Display Different Re, Michael Kay |
| Month |