[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: checking if an attribute exists
Thank you. It is working now. > This i very simple question: > > <element attribute="...">Value</element> > > How can I check if the "attribute" attribute is defined? I was fighting test="@color" for one hour, but I was in a wrong node ;-> If, on the other hand, by "defined" you mean that you want to check whether color was declared as an attribute for the car element, you can't, because attribute list declarations happen in the DTD, and an XSLT processor has no way of knowing what's in the DTD. -- Kamera wideo Sony, 5000 zl wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ] XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|