[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] test for child element
Hi all: I am having issues with testing for the first child element in an xml. My xml looks like this: <root> <level1> <note><para>First note</para></note> <note><para>Second note</para></note> <note><para>third note</para></note> <text>Some text</text> </level1> Under <level1> template I am checking to see if the first child element is a "note" and then displaying it. How do I check to see if the following elements are also "note" elements? If they are then I want them to be displayed int he following format: First note Second note Third note 1 Some text But when i use <xsl:if test"child::*[1][self::note]"> it checks only for the first note. How do I make it check if there are any more notes after the first note? Thanks in advance for your help. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|