Questions tagged [sgml]

Standard Generalized Markup Language (SGML) is the precursor to XML and HTML. It is an ISO standard (ISO 8879) that was used for electronic publishing of documents and books.

Standard Generalized Markup Language (SGML) is the precursor to XML and HTML. It is an ISO standard (ISO 8879) that was used for electronic publishing of documents and books.


Useful links

134 questions
0
votes
1 answer

Which DTD would make the first XML document valid and the second invalid?

I'm looking for a DTD which would make the first XML document valid and the second invalid, if it's possible. First XML: bla bla bla bla bla
defoe
  • 369
  • 2
  • 14
0
votes
0 answers

using lxml ElementTree with sgml files (reuters dataset) with no root node

I'm working on a program that parses the various sgml files of reuters dataset. But the documents I found don't contain a root node, that encompasses all the children. It just has a set of .. tags after DTD. So parsing the tree…
ggauravr
  • 190
  • 2
  • 11
0
votes
1 answer

Using HTML Parser with SGML

I wanted to use an XML parser with an SGML document, however this doesnt work. After reading some suggestions it seems to only way around this is to use a HTML parser. So im basically just trying to do a simple query that will extract the story…
maloney
  • 1,633
  • 3
  • 26
  • 49
0
votes
1 answer

Proper XML application for storing old text documents (talmud, bible, etc.)

I am planning to set up a simple, but extensive database of old religious texts. I was wondering if anyone could suggest an existing XML compliant format for storing such documents. Preferably a simple one, easily transformed to xhtml. I've heard…
timmmay
  • 125
  • 7
0
votes
1 answer

SGML replace tags and write to new and different file in Ruby

I have a very long SGML file which I need to convert to a another syntax, but for some reason my code don't work, when I get the output it is the exactly the same document, the code is as following: #!usr/bin/env ruby def…
Lars Nielsen
  • 2,005
  • 2
  • 25
  • 48
0
votes
1 answer

How to validate SGML on OS X?

I have an SGML DTD (and related XML packet to go with it) that I need to validate. How can I do this on OS X? It seems most XML tools don't 'get' SGML.
Neil Middleton
  • 22,105
  • 18
  • 80
  • 134
0
votes
2 answers

How to use Pseudo Code in a .xml file under res/layout folder? Android

So I want to tell myself some things withing the .xml file using Pseudo code but when I do the // it enters it like a code so I can't really use it in there. Is there something I could do to make the code non readable like Pseudo Code? I'm doing…
Fernando
  • 450
  • 1
  • 7
  • 22
-1
votes
1 answer

Are there cases where something expressed in XML DTD turns out to be buggy, but not in the XML Schema due to datatype constraints?

I heard that the XML DTD has less constraints in place (esepcially for the datatypes) than the XML Schema, and was wondering if this lack of constraints can make something expressed in XML DTD very buggy, but re-expressing it in the XML Schema…
LilyPod
  • 1
  • 1
-1
votes
1 answer

Unable to pass variable value in XSLT within a template

The below is my sgml file structure:

random texts and few more inner tags

random texts and few more inner tags

Arunkumar
  • 1
  • 3
-1
votes
2 answers

How to add SGML end tags?

I have an SGML file that looks has lots of

paragraphs that have implied end tags, like this:

Here is one paragraph.

And here is another. This one contains italics.

Finally, here is another paragraph. There are no end tags on…

Jonathan
  • 10,571
  • 13
  • 67
  • 103
-1
votes
3 answers

sgml parsing with sax parser

In my homework I should parse some sgml files. I using SAXParser. it works correctly for a simple xml file. but when I want to parse homework sgml files this error occur: Exception in thread "main" org.xml.sax.SAXParseException; systemId:…
Hamidreza Samadi
  • 637
  • 1
  • 7
  • 24
-1
votes
1 answer

Converting legacy SGM to XML

I have a task at work that involves converting legacy SGM files into XML. The SGM files were created using 5 separate high level tags, the new DTD has about 8-12 top level tags that the old ones would need to be mapped to. There are some common tags…
sablewing
  • 21
  • 5
-1
votes
2 answers

Recommendation for parsing HTML and SGML file

I have a project that will accept inputs such as (html, sgml, xml and txt). I have no problem parsing the XML files and txt files, Can you please suggest some tools that I can use on parsing html or sgml files.
jomsk1e
  • 3,585
  • 7
  • 34
  • 59
-2
votes
3 answers

HTML alternatives to make website?

I am using HTML to make a websites. I know an alternative languages to markup a website: XHTML, WML. Is there any more markup languages? Can I make a website only with XML or SGML? Thank you for responses.
Bren Ginthom
  • 99
  • 1
  • 2
  • 8
1 2 3
8
9