xsl-list
[Top] [All Lists]

Re: [xsl] Using a sequence of years to select documents to display in a table row

2007-11-23 15:37:17
Thanks you both ! Worked well and that is much cleaner.

On Nov 23, 2007 5:02 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:

   <xsl:variable name="docs" select="documents/document"/>
   <xsl:for-each select="1842 to 1862">
      <tr><td><xsl:value-of select="."/></td>
      <td>
         <xsl:apply-templates select="$docs[year = . and
contains(title, 'Selectmen')"/>

I suspect this should be

  <xsl:apply-templates select="$docs[year = current() and contains(title,
'Selectmen')"/>

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>