[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Vertical display

Subject: RE: Vertical display
From: Sundar Shanmugasundaram <SSHANMUGASUNDARAM@xxxxxxxxxxxxx>
Date: Mon, 28 Apr 2003 20:21:07 +0530
vertical screen problem
It works fine:

A small modification

  <xsl:variable name="first">
  <xsl:value-of select="count(*)"/>
  </xsl:variable>
  <xsl:variable name="second">
  <xsl:value-of select="count(*/*)"/>
  </xsl:variable>
<xsl:variable name="rowcounts">
  <xsl:value-of select="$second div $first"/>
</xsl:variable>

I have to replace the count(*/*) with $rowcounts.

Thanks Marcus,

sundar

-----Original Message-----
From: Marcus Andersson [mailto:marcan@xxxxxxx]
Sent: Monday, April 28, 2003 6:52 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Vertical display


Does it solve your problem if you replace the "com" template with the
following (it solves the problem you pointed out anyway...)? It assumes that
the number of number-elements is the same in each group of elements.

/Marcus

<xsl:template match="com">
  <table>
    <xsl:call-template name="verticalTable">
      <xsl:with-param name="rowIndex" select="1"/>
      <xsl:with-param name="endIndex" select="count(*/*)"/>
    </xsl:call-template>
  </table>
</xsl:template>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.