Results 1 to 3 of 3

Thread: This is probably a lot easier than I think it is...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263

    This is probably a lot easier than I think it is...

    Hi all,

    I am trying to (within my XSL) determine the number of occurences of an element in the referencing XML file. The XML file is created dynamically.

    What I want to be able to do is use this count and control the rowspan on a <td> with it.

    Pseudocode:

    <td rowspan = "# of employee tags in the XML document">

    I hope someone has the answer.

    Thanks in advance!

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    XSLT count() will give you the number of nodes in a nodeset

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263

    True, but...

    ...I can't say <td rowspan="count()">

    The count() function has to be used in conjunction with an xsl:value-of select

    Thanks anyway, I was able to figure out a work-around.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width