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

RE : recursivity and param

Subject: RE : recursivity and param
From: "Xavier Boully" <xavier.boully@xxxxxxxxxxxxxxxx>
Date: Thu, 12 Aug 2004 14:27:03 +0200
xsl recursivity
I am sorry Joe.
My example was too simple to
give an idea of my exact need.
Decision about an element
doesn't depend only on the
condition of being in the 10
first, but is dealing with
several conditions, global
ones and local ones. Sometime
decision to take is not about
an element but about a string
in a text node.

So far I am not able to write
those conditions in the select
of an apply-templates and that
is why I was thinking of using
with-param to apply templates
on children.
But David just gave a strong
argument that give me small
chance to find a solution
based on that idea.


-----Message d'origine-----
De : Joe Fawcett
Envoyi : jeudi 12 ao{t 2004
@ :
Objet : RE:  recursivity
and param

>From: "Xavier Boully"
>Subject:  recursivity
and param
>Date: Thu, 12 Aug 2004
12:32:35 +0200
>I would like to use
recursivity through the source
document with XSLT
>1.0 and no extension.
>As far as I understood, when
I am at a node level, I have a
>that I can pass to children
level using with-param. But
what I would
>like to obtain is to catch
things from children treatment
to influence
>the context of the node
level: when I pass context to
a certain
>child I would like to take in
account things that happened
before while
>processing children I met
before (in order of source
document for example).
>Reading again that question
make me think that it is maybe
not clear
>Let's try an example.
>- Suppose that in source tree
we have some <to-copy-element
/> elements
>- Suppose that I just want my
XSLTransformation to copy to
the result tree
>the <to-copy-element /> from
the source tree.
>- Suppose that I add a
condition that I must not copy
more than 10
><to-copy-element />. In other
words I want to copy only the
first (in order
>of source document) 10
<to-copy-element /> elements
or all the
><to-copy-element /> elements
>I think (but this is maybe a
wrong hypothesis) that at a
given node
>have to pass to a child
information about the number
of copies done with
>children processed before.
>Any ideas ?

Is there any reason you can't
select using a position
predicate? xsl:apply-templates
ion() < 11]"...



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.