From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56931 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: xml content and tweaked pdf output Date: Wed, 10 Mar 2010 14:51:04 +0100 Message-ID: <8C85AF1F-8836-4631-B31D-674806839E6A@st.estfiles.de> References: <925771EC-FC0B-4E54-AED9-9A6A593CC080@st.estfiles.de> <57EFDBB4-E80B-4333-AF6D-C6DAFB640273@uni-bonn.de> <9A419344-69EF-4D15-B10A-59FDCD06BD66@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1268229083 9750 80.91.229.12 (10 Mar 2010 13:51:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2010 13:51:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 10 14:51:18 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NpMJi-00055T-3L for gctc-ntg-context-518@m.gmane.org; Wed, 10 Mar 2010 14:51:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE78CC9CE0; Wed, 10 Mar 2010 14:51:16 +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 K+r8aNP-PL4Z; Wed, 10 Mar 2010 14:51:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E313DC9CC7; Wed, 10 Mar 2010 14:51:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BCCEC9CC7 for ; Wed, 10 Mar 2010 14:51:12 +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 IPwUMDWaiEMZ for ; Wed, 10 Mar 2010 14:51:10 +0100 (CET) Original-Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.29.8]) by balder.ntg.nl (Postfix) with ESMTP id 3B290C9C93 for ; Wed, 10 Mar 2010 14:51:10 +0100 (CET) Original-Received: from [89.247.63.72] (helo=[192.168.1.4]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1NpMJZ-0001fL-GU for ntg-context@ntg.nl; Wed, 10 Mar 2010 14:51:09 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1077) X-Df-Sender: 698580 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:56931 Archived-At: Am 10.03.2010 um 13:35 schrieb Thomas A. Schmitz: > = > On Mar 10, 2010, at 12:49 PM, Steffen Wolfrum wrote: > = >> = >> Sorry for being confused: In your MyWay you talk about xml and show an x= html example. It seems I mixed this. >> = > xhtml is a subset of xml, AFAIK. But maybe I should add a paragraph expla= ining this. > = >> = >> Exactly, this is what I meant: >> Wouldn't those typesetting orientated entities cause problems here? >> = >> If I follow Luigis link to ... >> http://www.w3schools.com/Xml/tryxslt.asp?xmlfile=3Dsimple&xsltfile=3Dsim= ple >> = >> ... and naively insert the mentioned below entity "addhyphen" ... >> "two of our famous Belgian&addhyphen;Waffles with plenty of real maple s= yrup" >> = >> ... the xslt process get's disturbed: >> "XML Parsing Error: undefined entity Location: http://www.w3schools.com/= xsl/tryxslt_result.asp Line Number 7, Column 41:" >> = >> = > Yes, as I said: you have to define your entities, e.g. in the DOCTYPE dec= laration. That's something I discussed with Hans a few weeks ago: in the ca= se you mention, you would have two different definitions of the entity &add= hyphen; One in the DOCTYPE, which will be followed by the xslt processor: > = > > = > (i.e. do nothing about it) > = ... So again following Luigi's link ... http://www.w3schools.com/Xml/tryxslt.asp?xmlfile=3Dsimple&xsltfile=3Dsimple ... I add a "&addhyphen;" down in the text and add the corresponding defini= tion up in the DOCTYPE line: ]> Belgian Waffles $5.95 two of our famous Belgian&addhyphen;Waffles with plenty of r= eal maple syrup ... Yes, this works! Many thanks to Thomas for guiding my uncertain first xml steps ;o) Steffen ___________________________________________________________________________= ________ 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.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________