From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51729 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: expansion in xml section heads Date: Sat, 11 Jul 2009 22:42:20 +0200 Message-ID: <55C4BA50-5E13-4CBB-890B-671B066497E0@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247345031 16771 80.91.229.12 (11 Jul 2009 20:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2009 20:43:51 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 11 22:43:44 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MPjQ8-0002KL-2z for gctc-ntg-context-518@m.gmane.org; Sat, 11 Jul 2009 22:43:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C754D1FAD7; Sat, 11 Jul 2009 22:43:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23954-01; Sat, 11 Jul 2009 22:42:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B4071FB14; Sat, 11 Jul 2009 22:42:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E805E1FB14 for ; Sat, 11 Jul 2009 22:42:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19804-04 for ; Sat, 11 Jul 2009 22:42:37 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 2D6A71FAD7 for ; Sat, 11 Jul 2009 22:42:37 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6BKgal6012021 for ; Sat, 11 Jul 2009 22:42:36 +0200 Original-Received: from [87.178.108.209] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 20144393 for ntg-context@ntg.nl; Sat, 11 Jul 2009 22:42:35 +0200 X-Mailer: Apple Mail (2.935.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 259337103 - 22e5df3ce0bd - 20090711 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51729 Archived-At: Hi all, I'm not sure if this is a bug or a feature, but I'm still having trouble understanding the new structure code. Here is a small example: \startbuffer[test]
<emph>MyTitle</emph> Hello world
\stopbuffer \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{auth|section|title|content|emph}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:auth \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \xmlflush{#1}\par \midaligned{\hl[5]} \stopxmlsetups \startxmlsetups xml:title \section{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:content \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:emph {\bgroup\em \xmlflush{#1}\egroup} \stopxmlsetups \setuphead [section] [style=normal, number=no, expansion=yes, page=yes] \starttext \xmlprocessbuffer{main}{test}{} \stoptext The title is not properly expanded though I have expansion=yes in my setuphead. Am I doing something wrong? All best Thomas ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________