xsl-list
[Top] [All Lists]

Re: [xsl] xpath question

2007-01-24 09:09:43

The reason for me to figure out if <scene> is located under <list1> or
 <list2> is because I would like to filter out data based on certain
conditions on the <scene> tag.

that doesn't imply that you need to select them all in one xpath it's
far more common just to use templates to process iteratively.
You haven't really given enough descriptuon of your input, or any
description of your output so it's hard to offer concrete advice, but
something like

<xsl:template match="list1|list2">
  <xsl:if test="./text/para/scene[set1=$set1 and set2=$set2]">
    <xsl:apply-templates/>
</xsl:template>

which seems to do what you say you want (without answering the xpath
question in your first post in this thread).
If the list1 scene doesn't match teh condition, everything is skipped,
if it does meet the condition, eveything is processed, and teh scene for
list2 will be checked once that is processed.

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>
--~--

<Prev in Thread] Current Thread [Next in Thread>