[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl question (Checking for the existance of a tag)

Subject: Re: xsl question (Checking for the existance of a tag)
From: "Alankar Chowdhury" <alankar@xxxxxxxxxxxxxxxxx>
Date: Tue, 04 Apr 2000 16:35:37 +0800
xsl test if tag present
U are right is serves my need .  but I have another 300 attributes like "
Password "


 <xsl:if test="Password">
  <td align="center"><xsl:value-of select="Password"/></td>
 </xsl:if>
I don't want to write this piece of code 300 times .....so is there any
other solution ?

I was wondering if I could use a recursive loop or something ....maybe that
might help.

Dan Morrison wrote:

> Alankar Chowdhury wrote:
> >
> > Can
> > someone suggest me, how to check if a tag is present in the document.
>
> I don't know why
>
>  <xsl:if test="Password">
>   <td align="center"><xsl:value-of select="Password"/></td>
>  </xsl:if>
>
> Won't suit your need.
>
> > please consider that there is more data in the document, so I can not
> > have a <xsl:if> statement to check if each tag is persent or not ..
>
> How would this be a problem?
>
> Adding & removing columns arbitrarily might mess with your layout, so
> you may need to adjust a colspan on a nearby element using the same
> test.
>
> .dan.
>
> --
> :=====================:====================:
> : Dan Morrison        : The Web Limited    :
> :  http://here.is/dan :  http://web.co.nz  :
> :  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
> :  04 384 1472        :  04 495 8250       :
> :  021 115 7339       :                    :
> :.....................:....................:
> : If ignorance is bliss, why aren't more people happy?
> :.........................................:
>
>  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.