This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

selecting with text nodes


Hi,

I am having a problems trying to select elements based on the text contents
of child nodes. For example how would I convert

<recommendation>
	<section>major</section>
	<completed>no</completed>
	<para>content of rec 1</para>
</recommendation>
<recommendation>
	<section>major</section>
	<completed>yes</completed>
	<para>content of rec 2</para>
</recommendation>
<recommendation>
	<section>minor</section>
	<completed>no</completed>
	<para>content of rec 3</para>
</recommendation>

I want to select only the major recommendations that are not completed to
produce

<recommendation>
<section>major</section>
<para>content of rec 1</para>
</recommendation>

All the examples I can find are based on attributes. Look forward to your
help. Many thanks in advance.

Ian.




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]