From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100861 Path: news.gmane.org!.POSTED!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: DTD's and XML-ConTeXt question Date: Wed, 23 May 2018 10:50:58 +0200 Message-ID: <4A2FBD5A-0E52-47D8-A3C2-4C7141C5B662@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/mixed; boundary="===============1836332975809409212==" X-Trace: blaine.gmane.org 1527065367 5101 195.159.176.226 (23 May 2018 08:49:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 May 2018 08:49:27 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed May 23 10:49:23 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLPSV-0001Cx-0x for gctc-ntg-context-518@m.gmane.org; Wed, 23 May 2018 10:49:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6BB712BF7B; Wed, 23 May 2018 10:51:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vsyv_UP8BnRk; Wed, 23 May 2018 10:51:10 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BA21A2BF80; Wed, 23 May 2018 10:51:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DE3DE2BF7E for ; Wed, 23 May 2018 10:51:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NKkmsphScAN6 for ; Wed, 23 May 2018 10:51:09 +0200 (CEST) Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 816752BF7B for ; Wed, 23 May 2018 10:50:59 +0200 (CEST) Original-Received: from [212.54.42.137] (helo=smtp6.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1fLPU3-0003Yv-At for ntg-context@ntg.nl; Wed, 23 May 2018 10:50:59 +0200 Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.10]) by smtp6.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1fLPU3-0006oa-9K for ntg-context@ntg.nl; Wed, 23 May 2018 10:50:59 +0200 X-Mailer: Apple Mail (2.3445.6.18) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=GpJsBH9C c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=VUJBJC2UJ8kA:10 a=mJsxd7dzVz9ysnI6Oj8A:9 a=QEXdDO2ut3YA:10 a=EQZFaHzx5ayA5L_7wJwA:9 a=5pGMJEm1NCp6vHKk:21 a=_W_S_7VecoQA:10 none X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100861 Archived-At: --===============1836332975809409212== Content-Type: multipart/alternative; boundary="Apple-Mail=_05E3927A-A105-4300-BCBC-5790BE2C69A0" --Apple-Mail=_05E3927A-A105-4300-BCBC-5790BE2C69A0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Here is a sample xml-document: ]> &example;&xmpl; The file setup/xmp.dtd contains the line: My 1st question, why does this fail for &xmpl;? The &example; is = substituted but &xmpl; is not.=20 My 2nd question is why included files do not substitute either of these = two entities.=20 Thus in: xml-document-included processed by = \xmlprocessfile{}{included-file}{} nor &example; nor &xmpl; is substituted. So, what am I doing wrong here? Hans van der Meer --Apple-Mail=_05E3927A-A105-4300-BCBC-5790BE2C69A0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Here = is a sample xml-document:
<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
<!DOCTYPE namen SYSTEM =E2=80=9Csetup/xmp.dtd" = [
= <!ENTITY example =E2=80=9CThis is an = example">
]>
<root>&example;&xmpl;</root>

The file setup/xmp.dtd contains = the line:
<!ENTITY xmpl "This is an example from a DTD = file=E2=80=9D>

My 1st question, why does this fail for &xmpl;? The &example; is substituted but &xmpl; is not. 

My 2nd question is why included files = do not substitute either of these two entities. 
Thus in: <root>xml-document-included</root> proc= essed by \xmlprocessfile{}{included-file}{}</root>
nor &example; nor &xmpl; is substituted.

So, what am I doing wrong = here?

Hans van = der Meer

= --Apple-Mail=_05E3927A-A105-4300-BCBC-5790BE2C69A0-- --===============1836332975809409212== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1836332975809409212==--