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