From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40953 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: getting inside xhtml / mkii Date: Fri, 9 May 2008 11:30:20 +0200 Message-ID: <115224fb0805090230q4b40a4bajcb23f8b458ad0ea4@mail.gmail.com> References: <48237157.4010103@jhnet.nl> <482376BB.2030709@wxs.nl> <48241259.20207@jhnet.nl> 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 1210325620 21476 80.91.229.12 (9 May 2008 09:33:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2008 09:33:40 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri May 09 11:34:14 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 1JuOzQ-0000gx-W3 for gctc-ntg-context-518@m.gmane.org; Fri, 09 May 2008 11:34:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 332021FB8C; Fri, 9 May 2008 11:33:24 +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 10910-07-10; Fri, 9 May 2008 11:32:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E1411FB39; Fri, 9 May 2008 11:32:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EDCE51FB14 for ; Fri, 9 May 2008 11:32:40 +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 11587-01-7 for ; Fri, 9 May 2008 11:32:05 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.158]) by ronja.ntg.nl (Postfix) with ESMTP id D0B511FB7E for ; Fri, 9 May 2008 11:30:34 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so1002458ywm.74 for ; Fri, 09 May 2008 02:30:20 -0700 (PDT) Original-Received: by 10.150.78.41 with SMTP id a41mr4585795ybb.180.1210325420851; Fri, 09 May 2008 02:30:20 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Fri, 9 May 2008 02:30:20 -0700 (PDT) In-Reply-To: <48241259.20207@jhnet.nl> Content-Disposition: inline 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:40953 Archived-At: On Fri, May 9, 2008 at 10:59 AM, Jelle Huisman wrote: > Thanks Hans, but for this bit of data: >>> papa > this code: >> \defineXMLargument >> [span] >> [class=word] >> {\Mywordstyle{\XMLpar{span}{class}{default-value}}} >> > applies the \Mywordstyle to the class attribute "word", whereas I'm > looking for a solution that applies the style to the word included in > the span element, nl. "papa", and it shouldn't print the attribute > 'word' at all... (maybe my question wasn't clear the first time.) >> consider switching to context mkiv which gives access to the xml tree > I consider doing this for a future project, but I can't do that for this > project since I need to use XeTeX for Graphite enabled fonts. Did this come closer to what you want. \defineXMLenvironment [span] [class=] {\bgroup \processaction [\XMLpar{span}{class}{}] [word=>\let\FormatSpan\bold, defenition=>\let\FormatSpan\mono]% \FormatSpan} {\egroup} \starttext \startXMLdata papa Eng daddy \stopXMLdata \stoptext You should give us more information too help you, how is \Mywordstyle defined because \defineXMLargument can't be nested. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________