xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samson, Lyndon [IT]" <lyndon.sam...@ssmb.com>
Subject RE: chaining following-sibling
Date Wed, 02 May 2001 14:55:35 GMT
I'm just guessing but isn't XSLT a 'functional' language. Ie you can't rely
on the order of operations.

So this;

<xsl:param name="sibling" select="$myNode/following-sibling::node()"/>
<xsl:param name="next" select="$sibling/following-sibling::node()"/

Might be better as this;

<xsl:param name="sibling" select="$myNode/following-sibling::node()"/>
<xsl:param name="next"
select="$myNode/following-sibling::node()/following-sibling::node()"/

This of course is highly likely to be BS :-)



-----Original Message-----
From: LotusXSL_Team/CAM/Lotus%LOTUS@lotus.com
[mailto:LotusXSL_Team/CAM/Lotus%LOTUS@lotus.com]
Sent: Wednesday, May 02, 2001 3:08 PM
To: general@xml.apache.org
Subject: Re: chaining following-sibling



Doug,

Can you provide the full stylesheet and source so we can
take a look at this.  Off the top of my head you should check
that the variables you're using contain nodesets.

Paul



 

                    "Ferguson, Doug"

                    <dferguson@coreme        To:
"'general@xml.apache.org'" <general@xml.apache.org>               
                    trics.com>               cc:     (bcc: Lotusxsl_Team)

                                             Subject:     chaining
following-sibling                                   
                    05/02/2001 01:36

                    AM

                    Please respond to

                    general

 

 





Hi

I am using xalan for xslt.
I have 2 params that should return 2 siblings but instead, return the same
node.

<xsl:param name="sibling" select="$myNode/following-sibling::node()"/>
<xsl:param name="next" select="$sibling/following-sibling::node()"/

any ideas?

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org






---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message