[Home] [By Thread] [By Date] [Recent Entries]


At 6:35 PM +0200 7/9/02, Sebastian Schnitzenbaumer wrote:

>And the other thing: My blog has real hyperlinks. Since the
>RSS XML file defines links with the <link> element, which
>of course browsers won't understand as links, I've simply
>used HTML linking inside my RSS file thru namespaces and
>it just works:
>
><item>
>   <title>...</title>
>   <description>...</description>
>   <link>http://...</link>
>   <html:a href="http://...">...</html:a>
>   <dc:date>2002-07-09T10:19:17-01:00</dc:date>
></item>
>
>So you can throw any arbitrary XML at IE6, style it
>with CSS *and* import anything you like from XHTML
>thru namespaces. That's exactly the Modularization idea
>implemented right there. Mozilla is just not there yet but very close.
>I do think we are getting there...
>

Actually Mozilla would let you do this using XLinks rather than HTML 
links. In fact, you could make your html:a element an XLink too so it 
works in both IE6 and Mozilla. Something like:

<item xmlns:xlink="http://www.w3.org/1999/xlink">
   <title>...</title>
   <description>...</description>
   <link>http://...</link>
   <html:a href="http://..." xlink:href="http://...">...</html:a>
   <dc:date>2002-07-09T10:19:17-01:00</dc:date>
</item>

Of  course you could also use XSLT in both Mozilla and IE.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member