From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94517 Path: news.gmane.org!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: Re: xml input Date: Fri, 22 Apr 2016 07:33:37 +0000 Message-ID: <35927ECC-5DED-4BDC-8AC0-2708664DF609@uva.nl> References: <8ACED9AF-31FB-4C80-9D4C-6A545EA13634@uva.nl> <570F58C0.4090107@wxs.nl> <545694FE-156E-4912-9D98-A59815EB6F47@uva.nl> <571003F2.6040105@gmx.es> <500669F7-BE73-4372-8F05-35E6997C3B9F@silentumbrella.com> <9C2C0247-95F7-47B1-A1A8-4FE147A880F7@uva.nl> <5718921E.6000406@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5444779577184723053==" X-Trace: ger.gmane.org 1461310498 11139 80.91.229.3 (22 Apr 2016 07:34:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2016 07:34:58 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 22 09:34:46 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1atVbx-0004MY-5z for gctc-ntg-context-518@m.gmane.org; Fri, 22 Apr 2016 09:34:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1AF5BAC7F; Fri, 22 Apr 2016 09:33:55 +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 tttHHzzYfXo6; Fri, 22 Apr 2016 09:33:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0900AAC7E; Fri, 22 Apr 2016 09:33:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 90A9BAC7C for ; Fri, 22 Apr 2016 09:33:49 +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 O0M90m8znpzU for ; Fri, 22 Apr 2016 09:33:49 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2F07EAC7B for ; Fri, 22 Apr 2016 09:33:39 +0200 (CEST) Original-Received: from MBX02.uva.nl ([169.254.2.73]) by HUB01.uva.nl ([::1]) with mapi id 14.03.0266.001; Fri, 22 Apr 2016 09:33:38 +0200 Thread-Topic: [NTG-context] xml input Thread-Index: AQHRlioM4dTLZ/GwMUWPLa/OBLWcZJ+JywSAgAAHTwCAAB8jgIAKAxkAgAAQpwCAAX9/gA== In-Reply-To: <5718921E.6000406@wxs.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [84.106.134.200] x-endpointsecurity-0xde81-ev: v:6.2.7.719, d:out, a:y, w:t, t:0, sv:1461287724, ts:1461310418 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:94517 Archived-At: --===============5444779577184723053== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_35927ECC5DED4BDC8AC02708664DF609uvanl_" --_000_35927ECC5DED4BDC8AC02708664DF609uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On 21 Apr 2016, at 10:41, Hans Hagen > = wrote: your \xmlsetsetup{#1}{*}{-} makex takenotes into a nothing ... (comment that line if needed to see effe= cts in your code) I got that line from your first demo program in "Dealing with XML in ConTeX= t Mkiv": \startxmlsetups xml:demo:base (1) \xmlsetsetup{#1}{*}{-} (2) \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups The comment on page 7 with that demo: (1) \xmlsetup{demo}{*}{-} sets the default for each element (the *) to 'jus= t ignore it' (the -). A + would... (2) followed by "this means that at this point we only handle" and I under= stood from this that because of the 'section' in statement (2) the node will get processed. Congruent with this example I wrote in my exampl= e: \startxmlsetups notes:setups \xmlinclude{#1}{include}{file} \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{takenotes}{notes:*} \stopxmlsetups expecting this to mean that will be activated by it. Is that a = misunderstanding? Hans van der Meer --_000_35927ECC5DED4BDC8AC02708664DF609uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <241E1F8C12376442BA58D5D450546538@uva.nl> Content-Transfer-Encoding: quoted-printable
On 21 Apr 2016, at 10:41, Hans Hagen <pragma@wxs.nl> wrote:


your

\xmlsetsetup{#1}{*}{-}

makex takenotes into a nothing ... (comment that line if needed to see effe= cts in your code)


I got that line from your first demo program in "Dealing with XML in C= onTeXt Mkiv":

\startxmlsetups xml:d= emo:base
(1)   \xmlsetsetup{#1= }{*}{-}
(2)   \xmlsetsetup{#1= }{document|section|p}{xml:demo:*}
\stopxmlsetups

The comment on page 7 with that demo:
(1) \xmlsetup{demo}{*}{-} set= s the default for each element (the *) to 'just ignore it' (the -). A += would...
(2) followed by  "this means that at this point we only hand= le" and I understood from this that because of the 'section' in statem= ent (2) the <section> node will get processed. Congruent with this ex= ample I wrote in my example:

\startxmlsetups notes:setups
   \xmlinclude{#1}{include}{file}
   \xmlsetsetup{#1}{*}{-}
   \xmlsetsetup{#1}{takenotes}{notes:*}
\stopxmlsetups

expecting this to mean that <takenotes> will be activated by it. Is t= hat a misunderstanding?

Hans van der Meer




--_000_35927ECC5DED4BDC8AC02708664DF609uvanl_-- --===============5444779577184723053== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5444779577184723053==--