Subject: Re: jade: '"element" is not the name of any flow object class' From: Paul Tyson <ptyso@xxxxxxxxxxxxx> Date: Thu, 30 Mar 2000 20:05:03 -0600 |
Nik, You just need to declare the 'element' flow object class, like: (declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object Class::element") See transform.htm in the jadedoc directory of the openjade distribution. Good luck, Paul Tyson Nik Clayton wrote: > > Hi, > > I've got an XML file, which I'm trying to convert to HTML. For various > reasons (not least of which is I know the tools will be available) I'm > doing this using Jade and a DSSSL script. > > A sample of the XML is: > > <?xml version="1.0"?> > > <changelog> > <entry> > <date>2000-03-27</date> > <weekday>Monday</weekday> > <time>13:44</time> > <author>knu</author> > <file> > <name>news/newsflash.sgml</name> > <revision>1.163</revision> > </file> > <msg>Add an entry of my becoming a committer. > </msg> > </entry> > </changelog> > > As you can see, it's a marked up GNU style ChangeLog. Ordinarily there'd > be multiple <entry>s. > > I started very simply, with this stylesheet (changelog.dsl): > > <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"> > > <style-sheet> > <style-specification> > <style-specification-body> > > (element changelog > (make element gi: "UL")) > > </style-specification-body> > </style-specification> > </style-sheet> > > However, if I try processing this with > > jade -c /usr/local/share/sgml/jade/catalog \ > -d changelog.dsl \ > -t sgml \ > /usr/local/share/sgml/docbook/dsssl/modular/dtds/decls/xml.decl \ > changelog.xml > changelog.html > > I get > > jade:ChangeLog.xml:3:0:E: no document type declaration; will parse without validation > jade:changelog.dsl:8:3:E: "element" is not the name of any flow object class > > I expected the first line, but not the second. This has had me stumped for > the best part of an afternoon. I'm running FreeBSD 3-stable, Jade 1.2.1, > and the XML declaration is from Norm Walsh's DocBook stylesheets, v1.52. > > The SGML_CATALOG_FILES variable is empty. > > Web searches for that error message didn't turn up anything enlightening, > although it did point to an HTMLFo library. If at all possible, I want > to avoid using this, as (1) my needs are relatively simple, and (2) it's > one less thing for the other people that will be using this to have to > install. > > Any suggestions gratefully received. > > N > -- > Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. > Telephone line, $24.95 a month. Software, free. USENET transmission, > hundreds if not thousands of dollars. Thinking before posting, priceless. > Somethings in life you can't buy. For everything else, there's MasterCard. > -- Graham Reed, in the Scary Devil Monastery > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
jade: '"element" is not the name of, Nik Clayton | Thread | Re: jade: '"element" is not the nam, Nik Clayton |
jade: '"element" is not the name of, Nik Clayton | Date | Re: jade: '"element" is not the nam, Nik Clayton |
Month |