[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XLINK support in browsers
> > You need to declare some styles obviously. (Although you could make > > this > > work by adding <?xml-stylesheet?> right after the XML Declaration. > > > Indeed it is working. I have a couple of questions: > > 1. why do I need to add a style sheet ? I just want to have 2 XML > documents and to establish a link between them. That is all. > 2. what "magic" is done by your empty style sheet declaration ? I mean > you don't even define a type for your style-sheet - like "text/xsl"; I think this is probably why Anne lost patience with you. You can't decide whether you're a newbie or all-knowing on the topic. Maybe there are two of you? ;-) You don't need a stylesheet to *express* links. You need one to *display* links. You yourself brought up the stylesheet requirement by insisting on seeing the links in all their glory, rather than contenting yourself to believe that FF/Mozilla understands the link semantics with or without a stylesheet (they do). Never mind the fact that an "empty" stylesheet works. It's just a quirk. Mozilla has unfortunately a lot of Internet cruft to carry on its shoulders and thus the algorithms on how to display things, especially in the XML realm, can seem arbitrary if you don't follow the whole sordid history. BTW, I cover linking display in XML in part 2 of my XML/CSS tutorial: http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html I think I show some neat things you can do in browsers, and FF in particular. Interested readers should start with part 1 if they're not familiar with XML/CSS basics: http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html Writing and Reading XML with XIST - http://www.xml.com/pub/a/2005/03/16/py-xml.html Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/ Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286 State of the art in XML modeling - http://www.ibm.com/developerworks/xml/library/x-think30.html
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|