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 -------------------------------------------------------------------------