Discussion:
read sgml files
(too old to reply)
chemInformatic
2005-12-29 02:32:40 UTC
Permalink
Hi,
I have a sgml file to view,but there is no tools already i found. It is
not a docBook type but a CADVW type which is developed by a great
company. I have failed to use the "SoftQuad Panorama" to browse, Are
there any ideas to read it?should and can I code a program to parse it
?

Thanks~~~
Vityok
2005-12-29 10:14:09 UTC
Permalink
If you wish just to read it, you can use any text editor to do this
like Notepad.

In case if you wish to ``pretty print'' this file, you will need a more
powerful application and specific style sheets for this particular
format.
chemInformatic
2005-12-31 02:08:16 UTC
Permalink
I wish to "pretty print" this file. r there sth application available?
Peter Flynn
2005-12-31 15:39:56 UTC
Permalink
Post by chemInformatic
I wish to "pretty print" this file. r there sth application available?
You must ask the author or supplier of CADVW (what is it? where does it
come from?)

To display SGML files formatted you **MUST** have

a) the DTD
b) a stylesheet
c) a processor to combine the file and stylesheet.

Panorama will work but you must have the DTD. If you have the full
version of Panorama it will let you make a stylesheet, but if you
only have the plugin then it only works with Netscape 3 and you
can't make a stylesheet.

If you cannot get these, the easiest way is to convert the document to
XML and then write a simple XSLT stylesheet to display it via HTML. To
convert to XML:

a) run the document through sgmlnorm to normalize the markup
b) inspect the DTD and find any EMPTY element types
c) edit the file to add the Null End Tag (/ before >) to all
instances of empty elements

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Loading...