Hi
<xsl:for-each select="//head|//c01|//c02">
</xsl:for-each>
...should give you the nodes you're looking for. The double slash
indicates that 0 or more elements can occur between them, in this case
meaning that the specified tag can occur anywhere in the whole document.
Obviously you need to do something inside the for-each tags to display
something from the selected node (e.g. <xsl:apply-templates/> ).
Hope this helps
John
On Mon, 2006-01-23 at 15:49 -0500, Lynn Lobash wrote:
> <xsl:for-each select='* [head] | * [c01] | * [c02]'>
>
> I am expecting this statement to select each element with <head> + all c01s
> + all c02s.
>
> The loop selects all the elements with <head> but only selects the first
> c01 and the first c02 following each c01 in the document.
>
> Anyone see what I am doing wrong here?
>
> Thanks for the help.
> Lynn
--
John Harrison
Special Collections and Archives
University of Liverpool Library
Chatham Street, PO Box 123, Liverpool, L693DA
e: [log in to unmask]
w: sca.lib.liv.ac.uk
t: 0151 7943142
f: 0151 7942681
|