This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: math get maximum and subtract 1


Hi Sascha,

> The client told me (i do not have a real example) that the input IS
> sorted actually but not the way it used to be.

Yes; it looks like they're sorting it by row first now, rather than by
column. That's great, since it still means that the last
DESCRIPTION_ITEM in the DESCRIPTION_TABLE has the maximum row/col, so
you can still use:

<xsl:variable name="nrow"
  select="/DESCRIPTION_TABLE/DESCRIPTION_ITEM[last()]/@row" />

<xsl:variable name="ncol"
  select="/DESCRIPTION_TABLE/DESCRIPTION_ITEM[last()]/@col" />

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]