From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- info/examples/lwc/ch6/README.ch6 | 26 +++++ info/examples/lwc/ch6/catalog | 2 + info/examples/lwc/ch6/emptyexample.xml | 15 +++ info/examples/lwc/ch6/invitation.dtd | 14 +++ info/examples/lwc/ch6/invitation.xml | 30 ++++++ info/examples/lwc/ch6/wrong.xml | 15 +++ info/examples/lwc/ch6/xml.dcl | 179 +++++++++++++++++++++++++++++++++ 7 files changed, 281 insertions(+) create mode 100644 info/examples/lwc/ch6/README.ch6 create mode 100644 info/examples/lwc/ch6/catalog create mode 100644 info/examples/lwc/ch6/emptyexample.xml create mode 100644 info/examples/lwc/ch6/invitation.dtd create mode 100644 info/examples/lwc/ch6/invitation.xml create mode 100644 info/examples/lwc/ch6/wrong.xml create mode 100644 info/examples/lwc/ch6/xml.dcl (limited to 'info/examples/lwc/ch6') diff --git a/info/examples/lwc/ch6/README.ch6 b/info/examples/lwc/ch6/README.ch6 new file mode 100644 index 0000000000..bbbe41b89a --- /dev/null +++ b/info/examples/lwc/ch6/README.ch6 @@ -0,0 +1,26 @@ +Source files for examples in Chapter 6 of the LaTeX Graphics Companion + +catalog catalog file for nsgmls +xml.dcl SGML declaration for XML spec + +invitation.xml XML source introduced in Section 6.4.2.2 +invitation.dtd DTD source introduced in Section 6.4.3 +emptyexample.xml XML source introduced in Section 6.5.5 +wrong.xml XML source introduced in Section 6.6.5.5 + +Important remark: + +To run the examples with nsgmls, you should first set the +environment variable SGML_CATALOG_FILES to the value catalog, +for instance in the Bourne shell + +SGML_CATALOG_FILES=catalog +export SGML_CATALOG_FILES + +or in the C shell + +setenv SGML_CATALOG_FILES catalog + +Then you can type (if you have installed nsgmls) + +nsgmls invitation.xml \ No newline at end of file diff --git a/info/examples/lwc/ch6/catalog b/info/examples/lwc/ch6/catalog new file mode 100644 index 0000000000..bd4f2aa939 --- /dev/null +++ b/info/examples/lwc/ch6/catalog @@ -0,0 +1,2 @@ +SGMLDECL "xml.dcl" +PUBLIC "-//W3C//DTD Specification::19971229//EN" "xmlspec.dtd" diff --git a/info/examples/lwc/ch6/emptyexample.xml b/info/examples/lwc/ch6/emptyexample.xml new file mode 100644 index 0000000000..957a604106 --- /dev/null +++ b/info/examples/lwc/ch6/emptyexample.xml @@ -0,0 +1,15 @@ + + + + + + + +]> + +The XML logo is shown in the image . +The image shows an alternative syntax for an empty element + + diff --git a/info/examples/lwc/ch6/invitation.dtd b/info/examples/lwc/ch6/invitation.dtd new file mode 100644 index 0000000000..ad8df55047 --- /dev/null +++ b/info/examples/lwc/ch6/invitation.dtd @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/info/examples/lwc/ch6/invitation.xml b/info/examples/lwc/ch6/invitation.xml new file mode 100644 index 0000000000..3209a96b3b --- /dev/null +++ b/info/examples/lwc/ch6/invitation.xml @@ -0,0 +1,30 @@ + + + + + +Anna, Bernard, Didier, Johanna +Next Friday Evening at 8 pm +The Web Cafe +My first XML baby + + + + +I would like to invite you all to celebrate +the birth of Invitation, my +first XML document child. + + +Please do your best to come and join me next Friday +evening. And, do not forget to bring your friends. + + +I really look forward to see you soon! + + + + +Michel + + diff --git a/info/examples/lwc/ch6/wrong.xml b/info/examples/lwc/ch6/wrong.xml new file mode 100644 index 0000000000..4f3827b7ad --- /dev/null +++ b/info/examples/lwc/ch6/wrong.xml @@ -0,0 +1,15 @@ + + + + +]> + +This part has wrong entity syntax <par>. +Emph text outside scope. +Here comes another error a second level +paragraph. +A wrongly nested construct. +Some more text outside valid scope +Reserved characters "&" "<" ">" ";" . + diff --git a/info/examples/lwc/ch6/xml.dcl b/info/examples/lwc/ch6/xml.dcl new file mode 100644 index 0000000000..db70162541 --- /dev/null +++ b/info/examples/lwc/ch6/xml.dcl @@ -0,0 +1,179 @@ +" + PIC "?>" + SHORTREF NONE + + NAMES + SGMLREF + + QUANTITY NONE + + ENTITIES + "amp" 38 + "lt" 60 + "gt" 62 + "quot" 34 + "apos" 39 + + FEATURES + MINIMIZE + DATATAG NO + OMITTAG NO + RANK NO + SHORTTAG + STARTTAG + EMPTY NO + UNCLOSED NO + NETENABL IMMEDNET + ENDTAG + EMPTY NO + UNCLOSED NO + ATTRIB + DEFAULT YES + OMITNAME NO + VALUE NO + EMPTYNRM YES + IMPLYDEF + ATTLIST NO + DOCTYPE NO + ELEMENT NO + ENTITY NO + NOTATION NO + LINK + SIMPLE NO + IMPLICIT NO + EXPLICIT NO + OTHER + CONCUR NO + SUBDOC NO + FORMAL NO + URN NO + KEEPRSRE YES + VALIDITY TYPE + ENTITIES + REF ANY + INTEGRAL YES + APPINFO NONE + SEEALSO "ISO 8879:1986//NOTATION + Extensible Markup Language (XML) 1.0//EN" +> -- cgit v1.2.3