[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Attribute name and value
Hello list, I have a problem with attributes. I have the following XML file: <DTITLE> <Name type="1">America Online</Name> <Duration>59</Duration> <Modif>1998-2-2 19:34:19</Modif> </DTITLE> <DTITLE> <Name type="4">Athlete's Foot</Name> <Duration>58</Duration> <Modif>1998-2-2 19:34:28</Modif> </DTITLE> And the corresponding XSL rule are: <rule> <target-element type="Name"> <atttribute name="type" value="1"/> </target-element> <td><img src="/dalet/images/sndol.gif"/><children/></td> </rule> <rule> <target-element type="Name"> <atttribute name="type" value="4"/> </target-element> <td><img src="/dalet/images/story.gif"/><children/></td> </rule> When using MSXML, both type="1" and type="4" get the same image. MSXML always uses the second rule (actually it probably overrides the first rule). Is there something wrong with my syntax? tnx. David Codish 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
|