From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44671 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: Re: XML Date: Thu, 9 Oct 2008 18:13:00 +0000 (UTC) Message-ID: References: <200810072214.52895.johannes_graumann@web.de> <115224fb0810090050x4b827f8ej9c75bcc724222a7b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223576101 28569 80.91.229.12 (9 Oct 2008 18:15:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 18:15:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 09 20:15:55 2008 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 1Ko036-0000kA-F7 for gctc-ntg-context-518@m.gmane.org; Thu, 09 Oct 2008 20:15:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88DF61FB1F; Thu, 9 Oct 2008 20:14:38 +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 03903-03-7; Thu, 9 Oct 2008 20:13:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5826C1FB6D; Thu, 9 Oct 2008 20:13:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D4F4B1FB6D for ; Thu, 9 Oct 2008 20:13:43 +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 03316-03-2 for ; Thu, 9 Oct 2008 20:13:09 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 653631FB38 for ; Thu, 9 Oct 2008 20:13:09 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ko00Y-0004ie-FA for ntg-context@ntg.nl; Thu, 09 Oct 2008 18:13:06 +0000 Original-Received: from e181073226.adsl.alicedsl.de ([85.181.73.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Oct 2008 18:13:06 +0000 Original-Received: from johannes_graumann by e181073226.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Oct 2008 18:13:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 85.181.73.226 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 Iceweasel/3.0.3 (Debian-3.0.3-2)) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44671 Archived-At: Wolfgang Schuster googlemail.com> writes: > \xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{} > > or > > \usezipfile[\inputfilename.odt] > \xmlprocess{main}{*/content.xml}{} Thank you very much - very nice! > You could use this for the start but it behavious a little bit weird. > > \unprotect > > \def\switchfontstyle > {\ifx\fontalternative\c!tf \it \else > \ifx\fontalternative\c!bf \bi \else > \it \fi\fi} > > \protect > > \xmlmapvalue {fo:font-style} {italic} {\switchfontstyle} Hmm ... if I understand this correctly this is aimed at dealing with nested bold/italic attributes? While I'm certainly going to fall over this rather soon, I think the issue here is that the following excerpt, where "T1" and "T2" correspond to bold and italic definitions further up, is misinterpreted such that the opening "text:span" of the "T1" section is taken for the beginning of the "T2" section instead and "T2" is accordingly applied to the whole construct ... Versuch Bold Versuch Italic Versuch Where in Hans' snippet below might that be fixable? \startxmlsetups office \xmlsetsetup{main}{text:p|text:span}{*} \stopxmlsetups xmlregistersetup{office} \startxmlsetups text:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups text:span \bgroup \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties /command(do:style:text-properties)} \xmlflush{#1} \egroup \stopxmlsetups Thanks for any further hints, Joh ___________________________________________________________________________________ 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 ___________________________________________________________________________________