Subject: Re: using xslj and jade to produce html - a beginner's question From: ht@xxxxxxxxxxxxxxx (Henry S. Thompson) Date: 23 Apr 1998 09:42:59 +0100 |
"Kent Fitch" <kent.fitch@xxxxxxxxxxxx> writes: > I successfully used the Microsoft xsl tool to convert > xml into html, but needing something which would also > run under UNIX, I'm trying to understand xslj and Jade. > > The samples worked fine, but when I modified them to > included an HTML tag in the xsl, problems started. > > For example, the sample as supplied doesnt produce > a list rendered until IE or netscape. So, I tried > to add <UL>...</UL> and <LI>..</LI> both as is and > lowercase and within <literal>...</literal> with > no success, eg: > > xslj:hsimplekf1.xsl:88:13:E: element "UL" undefined > xslj:hsimplekf1.xsl:88:10:W: unknown flow-object spec or macro Two things are at issue here: 1) As you didn't quite say above, if IE or Netscape had implemented CSS1 as speced, you could just use <DIV list-style-type='...'> and <P display='list-item'>, but they haven't so you can't (yet); 2) The fact that you get validation error messages doesn't mean you didn't get output -- this is XML, remember, so well-formed is good enough! You can indeed use the userfos.dtd facility (see xsl.dtd for an example) to get rid of the error and improve validation of your style sheets. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxxxxx URL: http://www.ltg.ed.ac.uk/~ht/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
using xslj and jade to produce html, Kent Fitch | Thread | Re: using xslj and jade to produce , Glenn R. Kronschnabl |
using xslj and jade to produce html, Kent Fitch | Date | How to account for optional element, Francois Belanger |
Month |