[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl]:How to check if a child excists


Subject: Re: [xsl]:How to check if a child excists
From: Adriaan Woerléé <ade@xxxxxxx>
Date: Fri, 1 Aug 2003 03:15:48 -0400 (EDT)


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



Current Thread
Keywords
xml