[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: testing 1st child

Subject: AW: testing 1st child
From: <christof.hoeke@xxxxxxx>
Date: Fri, 6 Aug 2004 15:03:10 +0200
xsl test children
hi,

try
<xsl:when test="*[1]">...

which takes any child that is on position 1 (child::* is a bit verbose but is
the same). or did i misunderstand your problem?

chris

> -----Urspr|ngliche Nachricht-----
> Von: Norma Yeazell [mailto:Nyeazell@xxxxxxxxx]
> Gesendet: Freitag, 6. August 2004 14:55
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff:  testing 1st child
>
>
> Any suggestions would be appreciated
>
> I have some numbered steps that may have several children in any order
> but I only want to test the first child of the step
>
> If it is a figure, warning, caution, or note do one thing if it is a
> title or a para do something else
>
> I tried the following with mixed results
>
> <xsl:when
> test="child::figure|child::table|child::warning|child::caution
> |child::no
> te">
>
> Sample xml :
>
> <step1>
> <note>
> <para>blah blah</para>
> </note>
> <para>xxxxx</para>
> </step1>
>
> <step1>
> <warning><para>xjsdkfjsjfs;jfa</para></warning>
> <para>xxxxx</para>
> </step1>
>
> <step1>
> <para>xxxxx</para>
> <figure><graphic/></figure>
> </step1>
>
> <step1>
> <figure><graphic/></figure>
> <note>
> <para>blah blah</para>
> </note>
> <para>xxxxx</para>
> </step1>
>
>
>
> Confidentiality Notice
> The information contained in this e-mail is confidential and
> intended for use only by the person(s) or organization listed
> in the address. If you have received this communication in
> error, please contact the sender at O'Neil & Associates,
> Inc., immediately. Any copying, dissemination, or
> distribution of this communication, other than by the
> intended recipient, is strictly prohibited.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.