Subject: Re: XSL and XML From: Chris Lilley <chris@xxxxxx> Date: Sun, 25 Apr 1999 01:10:20 +0200 |
Richard Lander wrote: > > Shane, > > If you are including Gecko in your requirements, then you can't use XSL. You > must use CSS. The CSS-2 spec provides a quick but nice tutorial on how to > write CSS rules for XML - http://www.w3.org/TR/REC-CSS2/intro.html#q2 -. It > isn't really any different than writing for HTML except that the 'display' > property is neccessary. Well said. Whe using XML, there are no defaults for whether a particular element is a block or an inline or a list item or a table cell. So, you have to say so explicitly. Which ias a pain, you might think, but it gives you more flexibility. And also, the display property typically *works*, as opposed to many HTML CSS implementations, because the CSS formatter isn't trying to fight with hard-coded presentational rules that the browser is trying to force on you. > I've noticed that IE5 doesn't like DOCTYPE declarations when using CSS. It > may not make sense but I've had trouble mixing the two. That seems odd, I haven't noticed a problem. But then again, if you have a doctype declaration that includes a URI as well as an FPI, weell, then IE will go and get that DTD and parse it. If you are offline, that could be a problem. But I find that I can style valid XML documents with CSS without a problem. -- Chris XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: XSL and XML, Richard Lander | Thread | Re: XSL and XML, Chris Lilley |
Re: Root Node does not contain prol, Jeff Langdon | Date | Re: XSL and XML, Chris Lilley |
Month |