This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inspecting node set retrieved by document(URI) function


>    <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]