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.