Re: [xsl] contains any child nodes attribute value

Subject: Re: [xsl] contains any child nodes attribute value
From: florian <csshsh@xxxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2003 18:57:03 +0200



you are right =)



if i have this input doc:


<foo name="a basket with a orange">
  <bar name="orange" />
  <bar name="apple" />
  <bar name="pear" />
</foo>

output: true

(because the name attribute of the first bar appear in the
foo name attribute)

another input

<foo name="a basket with some fruits">
  <bar name="orange" />
  <bar name="apple" />
  <bar name="pear" />
</foo>

output: false
(because none of the bars name attribute appears in
the foo name attribute)


thanks alot!


ciao!
florian



On Mittwoch, Juni 11, 2003, at 06:18 Uhr, David Carlisle wrote:


but how can i define in xpath all the foo attributes of the child
nodes? (replacing oranges in that case)

sorry your description was very unclear as to where the respective strings were supposed to be (which is why I answered in that form), as always it's best to give a small sample input doc and expected result.

David

_______________________________________________________________________ _
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
_______________________________________________________________________ _





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


Current Thread