RE: [xsl] Re: dynamic XPath?

Subject: RE: [xsl] Re: dynamic XPath?
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Wed, 12 Mar 2003 16:15:55 -0500
[Dimitre Novatchev]
> "Passin, Tom" <tpassin@xxxxxxxxxxxx> wrote in message
> > Yes we can, depending on how complicated you want the path 
> expression to
> > be.
> 
> This is quite exaggerated. See below.
> 
> 
> This comparison will work in rare cases and will not work in 
> general if
> $tagPath evaluates to a single node having preceding siblings.
> 
> It will also "work" for more than one node (in case $tagPath 
> evaluates to a
> nodeset of two or more nodes) and most probably is not what 
> the author of
> the original message wanted.
> 

Well, we do not know just __what__ he really wants to do.  I did not
mean to give a general solution that would work for all cases, just to
indicate that it might be possible __depending__ on what he really wants
to do.  However, the expression I gave to produce a path to an element
(I forget where I found it, it may have just come with Cooktop) could be
extended.  If the original poster does get unwanted  behaviorwhen
multiple nodes match, then he will  have to work out modifications, or
maybe the method can not be made to work.

So, Yue Ma, here is your chance to explain more completely what you are
trying to accomplish.

Cheers,

tom P

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


Current Thread