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

Attribute name and value

Subject: Attribute name and value
From: "David CODISH"<dcodish@xxxxxxxxx>
Date: Mon, 25 May 1998 08:12:10 +0300
christmas modif
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


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.