xsl-list
[Top] [All Lists]

atrtributes

2006-02-28 17:08:20
Can anyone explain how to access attributes in an xsl/xslt?  Where do I
start my research?  How would you display a list like this:

02      Baker
C1      Charlie
A1      Alpha
A2      Annie

From this data:


<TOSET>
   <HETROGENEOUS>true</HETROGENEOUS>
<TO CLASS="Sub Unit View">
      <A N="Echelon" V="BDE"/>
      <A N="Seq Num" V="1"/>
      <A N="Assoc Unit Id" V="02"/>
      <A N="Assoc Unit Name" V="Baker"/>
      <A N="Assoc Unit SK" V="02"/>
      <A N="Unit Id" V="C1"/>
      <A N="Unit Name" V="Charlie"/>
      <A N="Unit Num" V="06"/>
      <A N="Unit SK" V="88"/>
   </TO>
<TO CLASS="Sub Unit View">
      <A N="Echelon" V="RGT"/>
      <A N="Seq Num" V="1"/>
      <A N="Assoc Unit Id" V="C1"/>
      <A N="Assoc Unit Name" V="Charlie"/>
      <A N="Assoc Unit SK" V="88"/>
      <A N="Unit Id" V="A1"/>
      <A N="Unit Name" V="Alpha"/>
      <A N="Unit Num" V="01"/>
      <A N="Unit SK" V="84"/>
   </TO>
<TO CLASS="Sub Unit View">
      <A N="Echelon" V="BN"/>
      <A N="Seq Num" V="20"/>
      <A N="Assoc Unit Id" V="A1"/>
      <A N="Assoc Unit Name" V="Alpha"/>
      <A N="Assoc Unit SK" V="84"/>
      <A N="Unit Id" V="B1"/>
      <A N="Unit Name" V="Beta"/>
      <A N="Unit Num" V="01"/>
      <A N="Unit SK" V="8"/>
</TO>
<TO CLASS="Sub Unit View">
      <A N="Echelon" V="BN"/>
      <A N="Seq Num" V="21"/>
      <A N="Assoc Unit Id" V="A2"/>
      <A N="Assoc Unit Name" V="Annie"/>
      <A N="Assoc Unit SK" V="84"/>
      <A N="Unit Id" V="B2"/>
      <A N="Unit Name" V="Betty"/>
      <A N="Unit Num" V="11"/>
      <A N="Unit SK" V="81"/>
</TO>
</TOSET>  

-Jody


--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>