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

Re: data translation => descendants appear side by sid

Subject: Re: data translation => descendants appear side by side inHTML-table
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sat, 04 May 2002 15:25:18 +0200
Re:  data translation => descendants appear side by sid
I searched for a different and more general approach (not limited to 2 base elements). The stylesheet is quite short:

<xsl:template match="root">
<table border="1">
<xsl:apply-templates select="base[not(count(following-sibling::base//description) > count(.//description))]//description"/>

<xsl:template match="description">
  <xsl:variable name="pos" select="position()"/>
    <xsl:for-each select="/root/base">
        <xsl:value-of select="(.//description)[$pos]"/>

But I found a bug in Xalan: When using <xsl:value-of select=".//description[$pos]"/>, I already get the wanted result.

But when I read in the spec

"For example
matches a node if and only if all of the following are true:
* ...
* evaluating the PredicateExpr position()=1 with the node as context node and the *siblings* of the node that are item elements as the context node list yields true
* ..."

I suspect this behaviour is wrong, isn't it?



should be transformed into:


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

Current Thread


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.
First Name
Last Name
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.