From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75077 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: \attributedef not working? Date: Wed, 14 Mar 2012 14:38:36 +0000 Message-ID: References: <74C8E46A-5EF1-4571-A5EF-D851C8D84A72@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0679587252==" X-Trace: dough.gmane.org 1331735951 13087 80.91.229.3 (14 Mar 2012 14:39:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 14:39:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 14 15:39:09 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S7pLx-0000J5-C2 for gctc-ntg-context-518@m.gmane.org; Wed, 14 Mar 2012 15:39:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD639CB2AB; Wed, 14 Mar 2012 15:39:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GGaNdCUDEkwc; Wed, 14 Mar 2012 15:38:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4ED6CB29F; Wed, 14 Mar 2012 15:38:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3032CB29F for ; Wed, 14 Mar 2012 15:38:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kjCewILAdoJA for ; Wed, 14 Mar 2012 15:38:38 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 199B0CB299 for ; Wed, 14 Mar 2012 15:38:37 +0100 (CET) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2EEcbhC012439 for ; Wed, 14 Mar 2012 15:38:37 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by jansen.uva.nl ([146.50.108.229]) with mapi id 14.01.0355.002; Wed, 14 Mar 2012 15:38:37 +0100 Thread-Topic: [NTG-context] \attributedef not working? Thread-Index: AQHNAe4xIl5HbgtgG0KcU4gesFWEhJZpy6YA In-Reply-To: <74C8E46A-5EF1-4571-A5EF-D851C8D84A72@uva.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QGJqCBEm - c429a99fdddc - 20120314 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75077 Archived-At: --===============0679587252== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_D813C7D5943E4999851F019444D71D71uvanl_" --_000_D813C7D5943E4999851F019444D71D71uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sorry, my fault. Just found out that the attribute sought is residing in an= other tree. Understandably the attribute is not found when the wrong root i= s taken. Thus \attributedef does its thing. Now I have to find out how reference that other tree. Hans van der Meer On 14 mrt. 2012, at 15:24, Meer, H. van der wrote: Processing xml I get with: \writestatus{************}{\xmlattributedef{#1}{= .}{default}{???}} output: ************ > ??? and \writestatus{************}{\xmlattribute{#1}{.}{default}} has no attrib= ute output but with: \writestatus{************}{\xmlattdef{#1}{default}{???}} output: ************ > mydefault Is something amiss with \xmlattribute and \xmlattributedef? I need these in order to get an attribute from a node higher up in the xml-= tree. Hans van der Meer ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.n= l/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ --_000_D813C7D5943E4999851F019444D71D71uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <7A73E1CE80B5584CAFBEC94B34547649@uva.nl> Content-Transfer-Encoding: quoted-printable Sorry, my fault. Just found out that the attribute sought is residing in an= other tree. Understandably the attribute is not found when the wrong root i= s taken. Thus \attributedef does its thing.

Now I have to find out how reference that other tree. 

Hans van der Meer



On 14 mrt. 2012, at 15:24, Meer, H. van der wrote:

Processing xml I get with: \writestatus{************}{\xmlattributedef= {#1}{.}{default}{???}}
output: ************    > ???

and = \writestatus{************}{\xmlattribute{#1}{.}{default}} has no att= ribute output

but with:=  \writestatus{************}{\xmlattdef{#1}{default}{???}}
output: ************    > mydefault

Is something amiss with \xmlattribute and \xmlattributedef?
I need these in order to get an attribute from a node higher up in the= xml-tree.

Hans van der Meer



___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context"> http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.= nl / http://tex.aanhet.net
archive  : = http://foundry.supelec.fr/projects/contextrev/
wiki     : http://= contextgarden.net
___________________________________________________________________________= ________

--_000_D813C7D5943E4999851F019444D71D71uvanl_-- --===============0679587252== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0679587252==--