Discussion:
Declaration for RTF
(too old to reply)
Thomas Köppe
2009-09-08 16:53:01 UTC
Permalink
Hello all,

I came across this SGML declaration and DTD for RTF: http://home.chello.no/~mgrsby/sgmlintr/chapter4.htm#3

However, when I try to parse this with onsgmls, I get lots of errors, starting with a complaint that "\" is not significant. Could anyone explain this?

Thanks!
Peter Flynn
2009-09-08 20:26:07 UTC
Permalink
Post by Thomas Köppe
Hello all,
http://home.chello.no/~mgrsby/sgmlintr/chapter4.htm#3
However, when I try to parse this with onsgmls, I get lots of errors,
starting with a complaint that "\" is not significant. Could anyone
explain this?
As it says,
Post by Thomas Köppe
character "\" is not significant in the reference concrete syntax and
so cannot occur in a literal in the SGML declaration except as the
replacement of a character reference.
It's been a long while since I had to footle around with SGML
Declarations. Maybe someone else can remember the way to fudge this.

///Peter
Thomas Köppe
2009-09-08 20:36:57 UTC
Permalink
Post by Peter Flynn
Post by Thomas Köppe
http://home.chello.no/~mgrsby/sgmlintr/chapter4.htm#3
However, when I try to parse this with onsgmls, I get lots of errors,
starting with a complaint that "\" is not significant. Could anyone
explain this?
As it says,
Post by Thomas Köppe
character "\" is not significant in the reference concrete syntax and
so cannot occur in a literal in the SGML declaration except as the
replacement of a character reference.
Right, I get that. I've been trying to understand from that very website what it is that makes a character significant -- I thought the whole point of the "DELIM" section is to define significant characters!? So why do the strings that are listed in this section have to be significant in the
reference concrete syntax already?

Or in other words, how would one define "'\" etc. as valid delimiters?

Thanks!
Peter Flynn
2009-09-09 20:31:22 UTC
Permalink
Post by Thomas Köppe
Post by Peter Flynn
Post by Thomas Köppe
http://home.chello.no/~mgrsby/sgmlintr/chapter4.htm#3
However, when I try to parse this with onsgmls, I get lots of errors,
starting with a complaint that "\" is not significant. Could anyone
explain this?
As it says,
Post by Thomas Köppe
character "\" is not significant in the reference concrete syntax and
so cannot occur in a literal in the SGML declaration except as the
replacement of a character reference.
Right, I get that. I've been trying to understand from that very website what it is that makes a character significant -- I thought the whole point of the "DELIM" section is to define significant characters!? So why do the strings that are listed in this section have to be significant in the
reference concrete syntax already?
The RCS is predefined in SGML, and I think all SGML Declarations have to
be written using the RCS.
Post by Thomas Köppe
Or in other words, how would one define "'\" etc. as valid delimiters?
That's the bit I can't remember, and I'm afraid right now I'm out of
time for digging into this.

///Peter

Loading...