From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13159 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na WP" Newsgroups: gmane.comp.tex.context Subject: XML & ConTeXt -- handling many conventions Date: Tue, 9 Sep 2003 14:56:25 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <000b01c376d1$cf58eda0$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1063193272 22000 80.91.224.253 (10 Sep 2003 11:27:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2003 11:27:52 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Sep 10 13:27:50 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19x38Y-0000oS-00 for ; Wed, 10 Sep 2003 13:27:50 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5885910B86; Wed, 10 Sep 2003 13:27:48 +0200 (MEST) Original-Received: from smtp.wp.pl (smtp.wp.pl [212.77.101.161]) by ref.ntg.nl (Postfix) with ESMTP id 7B7DF10B5E for ; Tue, 9 Sep 2003 14:56:56 +0200 (MEST) Original-Received: (WP-SMTPD 24833 invoked from network); 9 Sep 2003 12:56:38 -0000 Original-Received: from pa36.debniki.sdi.tpnet.pl (HELO best) (paweljackowski@[213.77.147.36]) (envelope-sender ) by smtp.wp.pl (wp-smtpd) with SMTP for ; 9 Sep 2003 12:56:34 -0000 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-AntiVirus: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-ChangeAV: 0 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13159 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13159 Hi! There is a lot of ways to build ConTeXt macro which can handle something like i.e: ... or First Chapter ... But is there any way to handle both conventions in one defnition? Regards, Paweł From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13186 Path: main.gmane.org!not-for-mail From: Guy Worthington Newsgroups: gmane.comp.tex.context Subject: Re: XML & ConTeXt -- handling many conventions Date: 11 Sep 2003 12:27:41 +0800 Sender: ntg-context-admin@ntg.nl Message-ID: References: <000b01c376d1$cf58eda0$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1063254873 31980 80.91.224.253 (11 Sep 2003 04:34:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 04:34:33 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 11 06:34:31 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xJA7-0001cF-00 for ; Thu, 11 Sep 2003 06:34:31 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E703F10B9F; Thu, 11 Sep 2003 06:34:27 +0200 (MEST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id 38E8210B56 for ; Thu, 11 Sep 2003 06:28:19 +0200 (MEST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xJ42-0002Y0-00 for ; Thu, 11 Sep 2003 06:28:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xJ41-0002Xs-00 for ; Thu, 11 Sep 2003 06:28:13 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xJ45-0008DL-00 for ; Thu, 11 Sep 2003 06:28:17 +0200 Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13186 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13186 Pawel Jackowski na WP wrote: > There is a lot of ways to build ConTeXt macro which can handle something > like i.e: > > > ... > or > > > First Chapter > ... Hello Paweł (I, hope your name comes out OK; I cut & pasted your signature, which on my news-reader looks like "Pawe${}^3$") The element is wrong. By burying your title in an attribute you're making it neither easily searchable nor useble by other applications. Your alternative XML snippet is much better: First Chapter ... The general rule of thumb for when to use attributes and when to use elements is: use elements for presentable data and attributes for system data. In this case where you're presenting the title "First Chapter" to the context-processor to be marked up as a chapter title, it is definitely presentable data, and therefore it belongs in an element. From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13187 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: Re: XML & ConTeXt -- handling many conventions Date: Thu, 11 Sep 2003 07:28:48 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <000d01c37825$9dc65610$0500a8c0@best> References: <000b01c376d1$cf58eda0$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1063258578 3925 80.91.224.253 (11 Sep 2003 05:36:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 05:36:18 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 11 07:36:16 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xK7s-0003VC-00 for ; Thu, 11 Sep 2003 07:36:16 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D663010B56; Thu, 11 Sep 2003 07:36:12 +0200 (MEST) Original-Received: from smtp5.poczta.onet.pl (smtp5.poczta.onet.pl [213.180.130.32]) by ref.ntg.nl (Postfix) with ESMTP id 3A31010B34 for ; Thu, 11 Sep 2003 07:30:03 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:9988 "HELO best") by ps5.test.onet.pl with SMTP id ; Thu, 11 Sep 2003 07:29:01 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13187 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13187 Hi! > Hello Paweł (I, hope your name comes out OK)[...] Actually no, but don't worry. I'm aware that polish 'lslash' may not be displayed properly. But using polish characters is the only way to protect them from extinction. I will think about some compromise. > The element is wrong. By burying your > title in an attribute you're making it neither easily searchable nor > useble by other applications. That is what I said to my boss. The problem is that J have to build something more or less universal because I don't known who will prepare XML documents and which convention will be used. > The general rule of thumb for when to use attributes and when to use > elements is: use elements for presentable data and attributes for > system data. In this case where you're presenting the title "First > Chapter" to the context-processor to be marked up as a chapter title, > it is definitely presentable data, and therefore it belongs in an > element. Thanks, I will remember. It looks convincing. Regards, Pawe/l From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13222 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: XML & ConTeXt -- handling many conventions Date: Sat, 13 Sep 2003 23:43:17 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030913234124.022fbd00@localhost> References: <000b01c376d1$cf58eda0$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1063491064 18593 80.91.224.253 (13 Sep 2003 22:11:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 22:11:04 +0000 (UTC) Cc: ntg-context@ref.vet.uu.nl Original-X-From: ntg-context-admin@ntg.nl Sun Sep 14 00:11:02 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19yIbe-0005i1-00 for ; Sun, 14 Sep 2003 00:11:02 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 454F410B61; Sun, 14 Sep 2003 00:10:59 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id DF16B10ACC for ; Sat, 13 Sep 2003 23:48:16 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8DLm5w27379; Sat, 13 Sep 2003 23:48:05 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id A8EBB21F47; Sat, 13 Sep 2003 23:48:09 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id DDCC321F21; Sat, 13 Sep 2003 21:48:06 +0000 (UTC) X-Sender: hagen-mail@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: <000b01c376d1$cf58eda0$0500a8c0@best> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13222 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13222 At 12:27 11/09/2003 +0800, Guy Worthington wrote: >Pawel Jackowski na WP wrote: > > > There is a lot of ways to build ConTeXt macro which can handle something > > like i.e: > > > > > > ... > > or > > > > > > First Chapter > > ... > > >Hello Pawe=B3 (I, hope your name comes out OK; I cut & pasted your >signature, which on my news-reader looks like "Pawe${}^3$") > >The element is wrong. By burying your >title in an attribute you're making it neither easily searchable nor >useble by other applications. > >Your alternative XML snippet is much better: > > > First Chapter >... > > >The general rule of thumb for when to use attributes and when to use >elements is: use elements for presentable data and attributes for >system data. In this case where you're presenting the title "First >Chapter" to the context-processor to be marked up as a chapter title, >it is definitely presentable data, and therefore it belongs in an >element. indeed. concerning attributes, i use 'm for First Chapter permits you to analyze a label without the need to look into the element= text. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------