This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Inspecting node set retrieved by document(URI) function
- From: Jörg Heinicke <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sun, 17 Mar 2002 22:11:14 +0100
- Subject: Re: [xsl] Inspecting node set retrieved by document(URI) function
- References: <3C94F612.7040801@it-c.dk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> <xsl:apply-template select="document(@url)"/>
>
> I wish to inspect that node set, to see if the top
> level element has name "a". How can this be done?
<xsl:if test="document(@url)/a">
or test="name(document(@url)/*) = 'a'"
or test="document(@url)/*[self::a]"
Regards,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list