Re: [TFUI] OT? "if" in XSLT (Re: XML -> XSLT -> XHTML Nirvana)

Cory Foy <Cory.Foy-3E03uoa5e7nqlBn2x/[email protected]> Mon, 14 Mar 2005 10:30:45 -0500
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
Phlip wrote:
> Cory Foy wrote:
> 
> 
>>I would much rather see out of our code:
>>
>><title><highlight color="hotpink">The title</highlight></title>
> 
> 
> WAITaMINUTE!
> 
> Cory, the <title> tag goes in the caption of the browser's title bar!
> You can't turn it hot-pink!!
> 

Ok, so maybe I should have clarified that that is what I think the XML 
should look like *before* the XSL transformation. I was thinking of a 
book information node like:

<book isbn="ISBNNUMBER">
   <title hightlight="hotpink">The title</title>
   <price>$39.95</price>
   <quantity_in_stock>5</quantity_in_stock>
</book>

Which your XSL would output to:

<table>
  <tr>
   <td colspan="2">
     <span style="background-color:hotpink">The title</span>
   </td>
  </tr>
  <tr>
    <td>Price: $39.95</td><td>In Stock: Yes(5)</td>
  </tr>
</table>

Cory





To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/