[thelist] The Future of Browser-Bound XML?

Hassan Schroeder hassan at webtuitive.com
Wed Jul 3 18:32:01 CDT 2002


Michael Mell wrote:

> The point remains that one can not send valid arbitrary xml with a style sheet
> and get a useful rendering on a standard browser today.

Eh? Try this trivial example in Mozilla ... paste into two files

- dogs.xml ---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="dogs.css" type="text/css" title="dogs"?>
<Family>Dogs
	<Group>Terriers
		<Breed>Westie</Breed>
		<Breed>Scottie</Breed>
		<Breed>Cairn</Breed>
	</Group>
	<Group>Hounds
		<Breed>Beagle</Breed>
		<Breed>Basset Hound</Breed>
		<Breed>Blood Hound</Breed>
	</Group>
</Family>
--------------------------------------------------------------------

- dogs.css ---------------------------------------------------------
Family {
	margin-left: 10%;
	}
Group {
	margin-left: 2em;
	}
Family, Group {
	display: block;
	color: #000000;
	font-weight: bold;
	}
Breed {
	display: list-item;
	list-style-type: square;
	color: #006600;
	margin-left: 2em;
	}
--------------------------------------------------------------------

I get a lot of raw sample data for prototyping in XML format, and a
lot of it stays that way :-)

The above example can also be melded into an XHTML page and all the
markup still works just fine though it doesn't match any actual DTD ...

--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

    -- creating dynamic Web sites and applications since 1994 --



More information about the thelist mailing list