|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML + 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! 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
|
|||||||||

Cart








