xsl-list
[Top] [All Lists]

Re: [xsl] testing for position of an element and displaying it accordingly

2007-01-25 12:18:38
Hi David:

That is the problem I am facinf, the
<xsl:apply-templates> matches the <a> in the beginning
of <steps> template, and again at the end of steps, if
I say <xsl:apply-templates>, it matches it there. 

So it is really not going in order in the style sheet,
and repeats the <a> content two ties 0once before the
<r1> and once aftr <r1>.

Please tell me how this can be resolved.
--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:



as has been stated before

<xsl:if test="a">
<xsl:apply-templates select="a"/>
</xsl:if>


is ___exactly__ the same thing as


<xsl:apply-templates select="a"/>


and this causes all a elements to be processed at
this point, out of
their natural order. If you didn't do this your
problem would go away.

David



--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--