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
6
votes
4 answers

sgml to xml conversion

I have a following sample sgml data from my .sgm file and I want convert this in to xml xyz 2010 10 abc. 2010
atif
  • 1,137
  • 7
  • 22
  • 35
6
votes
2 answers

PCDATA vs CDATA in XML DTD

In XML DTD's - When defining an element , we use #PCDATA to say that this element can contain any parseable text. When defining an attribute , we use CDATA to say that its value can be any character data. CDATA as is used in XML is something which…
nikel
  • 3,402
  • 11
  • 45
  • 71
5
votes
6 answers

Should an end tag close all unclosed intervening start tags with omitted end tags?

Am I reading the HTML 4.01 standard wrong, or is Google? In HTML 4.01, if I write: plain +em +strong -em The…
MetaEd
  • 3,753
  • 1
  • 28
  • 30
5
votes
2 answers

What is "- O" meaning when declare a DTD element type?

According W3C XML specification, element is declared in form of : [45] elementdecl ::= '' [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children And samples on w3school is :
btpka3
  • 3,720
  • 2
  • 23
  • 26
5
votes
1 answer

SEC company filings: Is the tag valid SGML? If so, how to parse it?

I tried to parse SEC company filings from sec.gov. Starting from fb 10-Q index.htm let's look at a complete text submission filing like complete submission text filing. It has a structure like: "some…
Michael S
  • 466
  • 1
  • 4
  • 12
5
votes
2 answers

Emacs xml mode indent with tabs

i desperately try to make my emacs xml (sgml?) mode indent with tabs instead of spaces. What i tried so far: (defun my-xml-hook () (setq c-tab-always-indent t tab-width 4 indent-tabs-mode t) ; use tabs for indentation (setq…
eci
  • 2,294
  • 20
  • 18
5
votes
1 answer

SGML Parser for Python 3?

I have some documents that are structured using SGML, and I have a DTD file which describes this structure. Can someone recommend a Python-3 compatible library or module to me to parse this data? For Python 2.x my Google-fu seems to turn up…
Adam Parkin
  • 17,891
  • 17
  • 66
  • 87
4
votes
2 answers

Unable to unmarshal strange XML format using Java and JAXB

I need to retrieve financial data using the Open Financial Exchange (OFX) protocol. In order to do this, I am using JAXB to marshal an object tree into an XML string that specifies data request parameters, and then I am sending this XML string to a…
ljg43230
  • 43
  • 1
  • 3
4
votes
3 answers

Is XHTML a subset of HTML?

What I know is (please correct me if I am wrong): XML is a subset of SGML. XHTML is an application and a subset of XML. HTML is an application of SGML. Does this imply that XHTML is a subset of HTML or does this statement hold for any other…
hielsnoppe
  • 2,819
  • 3
  • 31
  • 56
3
votes
1 answer

DTD Parsing: Parameter entity reference name including another parameter entity reference - is it well formed?

I'm writing a DTD parser and I'm a little uncertain how to expand parameter entities. For example is this DTD excerpt valid? ' >
Red Bug
  • 33
  • 5
3
votes
1 answer

Can I reference an external sgml declaration from within a sgml document?

I'm more used to xml documents and tools, but I need to deal with sgml. I have an sgml document that I'm using nsgmls to parse, and I need to include a particular sgml declaration with it. It works fine if I specify the declaration file on the…
evil otto
  • 10,348
  • 25
  • 38
3
votes
1 answer

SGML parser for Markdown possible?

SGML has many optional features to allow markup minimization, such as optional or implied start and end tags and SHORTREF for simpler aliases of tags. Is it thus possible to write a DTD that a perfect SGML implementation, which has always been a…
Crissov
  • 947
  • 11
  • 16
3
votes
2 answers

Alternative Version of the World Wide Web using different markup languages

Theoretically, a version of the Internet using TeX or Markdown would be possible, right? (Okay, MD websites probably aren't that advanced, but never mind). So my question is twofold: Has this appeared as an idea before and Did someone even try…
user10582695
3
votes
2 answers

Strategy for parsing LOTS and LOTS of not-so-well formed SGML / XML documents

I have thousands of SGML documents, some well-formed, some not so well-formed. I need to get at certain ELEMENTS in the documents, but everytime I go to load and try to read them into an XDocument, XMLDocument, or even just a StreamReader, I get…
Robert4Real
  • 1,332
  • 5
  • 21
  • 39
3
votes
2 answers

When to use SGML and XML?

This question is equivalent to : "What are the advantages and disadvantages to use SGML over XML, and XML over SGML ?". I already know several similarities and differences between SGML and XML, but they don't answer this question. SIMILARITIES SGML…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
1
2
3
8 9