home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML in Action / Dynamicke-HTML-v-akci-covermount.bin / XML / XSL / DOWNLOADS / SAMPLES.ZIP / sample.xsl < prev   
Encoding:
Text File  |  1997-12-19  |  1.1 KB  |  55 lines

  1. <xsl>
  2.  
  3.     <rule>
  4.         <root/>
  5.         <HTML>
  6.             <BODY font-family="Arial, helvetica, sans-serif" font-size="12pt"
  7.                     background-color="#EEEEEE">
  8.                 <children/>
  9.             </BODY>
  10.         </HTML>
  11.     </rule>
  12.  
  13.  
  14.     <rule>
  15.         <target-element type="food"/>
  16.         <DIV background-color="teal" color="white" padding="4px">
  17.             <select-elements>
  18.                 <target-element type="name"/>
  19.             </select-elements>
  20.             -
  21.             <select-elements>
  22.                 <target-element type="price"/>
  23.             </select-elements>
  24.         </DIV>
  25.         <DIV margin-left="20px" margin-bottom="1em" font-size="10pt">
  26.             <select-elements>
  27.                 <target-element type="description"/>
  28.             </select-elements>
  29.             <select-elements>
  30.                 <target-element type="calories"/>
  31.             </select-elements>
  32.         </DIV>
  33.     </rule>
  34.  
  35.     <rule>
  36.         <target-element type="name"/>
  37.         <SPAN font-weight="bold" color="white">
  38.             <children/>
  39.         </SPAN>
  40.     </rule>
  41.  
  42.     <rule>
  43.         <target-element type="price"/>
  44.         <target-element type="description"/>
  45.         <children/>
  46.     </rule>
  47.  
  48.     <rule>
  49.         <target-element type="calories"/>
  50.         <SPAN font-style="italic">
  51.             (<children/> calories per serving)
  52.         </SPAN>
  53.     </rule>
  54.  
  55. </xsl>