xsl-list
[Top] [All Lists]

Re: :How to check if a child excists

2003-08-01 00:15:48


<xsl:for-each select="child::katern">

or

<xsl:for-each select="child::*[local-name()='katern']">

On Fri, 1 Aug 2003, Armand Datema wrote:

Hi

I have the following:

<xsl:for each select="katern">

This can have one or more <article>


Now sometimes the xml is generated without an aricle in it how can I
check this

<xsl:if test="article">


Armand

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




****************************************************************
Jarkko Moilanen          "The box said that is needs
Researcher                Windows 95 or better... So I
jm60697(_at_)uta(_dot_)fi            installed Linux."
www.uta.fi/~jm60697
GSM: +358 50 3766 927
****************************************************************
* ITCM | Information Technology and Crisis Management
* http://www.itcm.org
****************************************************************






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





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



<Prev in Thread] Current Thread [Next in Thread>