xsl-list
[Top] [All Lists]

Re: how to match the absence of a particular attribute

2005-05-30 02:00:26


Hi,
   Try this:

<xsl:if test="@id">
   <!--   do something if attribute id exists -->
</xsl:if>


Cheers,
prakash



                                                                                
                                   
                    <talosso(_at_)gmai                                          
                                        
                    l.com>               To:     XSL List 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>                        
                                         cc:     (bcc: omprakash.v/Polaris)     
                                   
                    05/30/2005           Subject:     [xsl] how to match the 
absence of a particular attribute     
                    02:28 PM                                                    
                                   
                    Please                                                      
                                   
                    respond to                                                  
                                   
                    xsl-list                                                    
                                   
                                                                                
                                   
                                                                                
                                   




Hi guys,

how can I test the presence of a particular attribute of a node in an
"if" or "choose" tag?
I need to drive the behavior of the translation in two different ways,
if an attribute exists or not. I suppose the key point is the
capability to match the absence of an attribute, but I have found no
way to do this.

Thank you very much for any help.

Livio

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






This e-Mail may contain proprietary and confidential information and is sent 
for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to 
you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its 
attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--