Re: unknown element selection (parent is known)

Subject: Re: unknown element selection (parent is known)
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Mon, 23 Oct 2000 11:46:59 -0700
Rob van der Zeijden wrote:
> 
> How do I select a record without knowing the
> name of it. What I know is the name of the parent,
> 
> <PARENT>
>     <???>Donald Ball</???>
>     <???>23</???>
> </PARENT>

match="PARENT/*" or select="PARENT/*" (asterisk is wildcard character
meaning "an element of any name")

> Another thing i do not know is the number of elements. So I will
> proberly have to use for-each.

Or apply-templates, depending on the circumstances.

-- 
================================================================
John E. Simpson          | "When I'm not in my right mind, my 
http://www.flixml.org    | left mind gets pretty crowded." 
XML Q&A: www.xml.com     | (Steven Wright)


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


Current Thread