Hello group,

newbie question:
How can you test whether a Element contain information or not? I mean something 
like the DB command "is not Null" // "is null".

case 1) <department>Elektro</department> 
case 2) <department /> 

I want to have the word Department in front of the value as soon as the 
<department>is not empty</department>.
I figured out that the string-length(./department/text()) is 19 as soon 
<department />. If  <department>is not empty</department> is > 19.
So I have written the following xsl (knowing that is a work around but not a 
<xsl:variable name="xtest">
<xsl:value-of select="string-length(./department/text())"/>
<xsl:when test="$xtest>19">Abteilung: <xsl:value-of 
<xsl:when test="$xtest&lt;20">
<xsl:value-of select="./department/text()"/>

Is there a better way to do it?

> Mit freundlichem Gruss,
> Thorsten Scherler
> Marketing / Telefonmarketing
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> http://www.weidmueller.de

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to