RE: [xsl] Some simple questions...

Subject: RE: [xsl] Some simple questions...
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sat, 24 Nov 2001 10:57:53 -0000
> Q1: How do I test if an element is empty without using string-length?

You can test if an element has no children with test="not(node())". You can
test if its string-value is zero length with test=".=''". They aren't the
same thing, for example <td><i></i></td> passes one test but not the other.

Mike Kay
>
>     In this situation:
>      ...
>       <aluno>
>           <nome></nome>
>           <curso></curso>
>       </aluno>
>       ...
>       I want to filter the whole subtree since every element
> inside it has
> null content
>
> Q2: Is there a nice XSLFO processor binary that I can easily
> install on a
> Windows or Linux system?
>
> TIA
> jcr
> --------------------------------------------------------------
> --------------
> --------------------------------------------------------------
> --------------
> ---
> José Carlos Ramalho                                   orienteer
> Dep. Informática - U.Minho                          windsurfer
> http://www.di.uminho.pt/~jcr                         engineer
> +351 253 604479
> --------------------------------------------------------------
> --------------
> -----
>
>
>  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