[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML + default CSS

  • From: Ravi Kumar <rkumar@i...>
  • To: xml-dev@l...
  • Date: Fri, 03 Nov 2000 08:55:14 -0800

default css
Jeff, etall,

Sure, it can be done through a servlet.

But the scenario I am trying to solve is:
1. Create a simple XML file with no styling:
<?xml version="1.0"?>
<BookList>
  <Book language="german">
     <Title>foo1</Title>
     <Author>bar1</Author>
  </Book>
  <Book language="eng">
     <Title>foo2</Title>
     <Author>bar2</Author>
  </Book>
</BookList>
2. Opening this file with a CSS only browser (aka Netscape6)
    the output is
    "foo1bar1foo2bar2"
    all in one single line.

In pure HTML and CSS speak, this is the RIGHT way - strip all tags you are
not
aware off. But ain't useful or usable.

Using XSLT, one could create a HTML page off line and then present a view
very
much like what IE5 has builtin (the XML tree view). But that needs to be
explicitly done for each XML file - not really an option. Note that there
is no
webserver in play, it's just opening a local file.

Rgds
Ravi



Ian Graham wrote:

> On Thu, 2 Nov 2000, Lisa Rein wrote:
>
> >
> .....
>  I was sure surprised that Netscape 6 didn't provide its own
> > browser-specific default view of an XML document.  Seems like it would
> > give that nifty Gecko rendering engine something useful to do :-)
>
> Well, they do, sort of -- its (as CSS)
>
> * {display: inline; }
>
> Ian


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.