From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56921 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: xml content and tweaked pdf output Date: Wed, 10 Mar 2010 11:38:22 +0100 Message-ID: <57EFDBB4-E80B-4333-AF6D-C6DAFB640273@uni-bonn.de> References: <925771EC-FC0B-4E54-AED9-9A6A593CC080@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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268217533 23282 80.91.229.12 (10 Mar 2010 10:38:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2010 10:38:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 10 11:38:49 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 1NpJJO-0005wZ-5m for gctc-ntg-context-518@m.gmane.org; Wed, 10 Mar 2010 11:38:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CBB6AC9CAC; Wed, 10 Mar 2010 11:38:45 +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 G-npzrq2nQ39; Wed, 10 Mar 2010 11:38:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA2C2C9C7E; Wed, 10 Mar 2010 11:38:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED24AC9C7E for ; Wed, 10 Mar 2010 11:38:40 +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 1d0gBMwCYbZq for ; Wed, 10 Mar 2010 11:38:38 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id 67CBCC9C71 for ; Wed, 10 Mar 2010 11:38:38 +0100 (CET) Original-Received: from [87.178.73.109] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 34112420 for ntg-context@ntg.nl; Wed, 10 Mar 2010 11:38:37 +0100 In-Reply-To: <925771EC-FC0B-4E54-AED9-9A6A593CC080@st.estfiles.de> X-Mailer: Apple Mail (2.1077) 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:56921 On Mar 10, 2010, at 10:58 AM, Steffen Wolfrum wrote: > Hi, > > very carefully I am trying to make first steps towards XML and ConTeXt (with MkIV). > > Thus, I have enjoyed reading Thomas' MyWay "Getting Web Content and pdf-Output from One Source": > > I only kept wondering, how to keep control over the pdf-Output in terms of fine-tuning the actual typesetting? > A quick search in the archive gave me the answer that is attached below: by using XMLentities. > > But coming back to Thomas' issue "Getting Web Content and pdf-Output from One Source": > What about the other branch, getting web content? > Doesn't the XML source gets "spoiled" by these inserted XMLentities that only make sense when following the pdf-Output branch? > Or will these XMLentities be silently ignored when feeding the XML source in a CMS system or processing further to web content? > > Apologies for asking such basic questions... > I'm not really that advanced in this area myself, but from what I think I understood, you have to distinguish several aspects: 1. The MyWay addressed xhtml and mapping that to ConTeXt output. In html, you have a list of predefined entities (http://www.w3schools.com/tags/ref_entities.asp) and I don't think that you can simply define your own entities in html - this simply is not the way this is meant to work. So in this case, the answer to your question would be: you're using the wrong tool. 2. In xml, on the other hand, there are almost no predefined entities, you can and must define entities yourself. But xml in itself cannot be shown as web content; you will need a xsl file which translates your xml to some sort of html. This will allow you to define most anything you want, and you can indeed add all these typographical niceties. You can then either use a tool such as xsltproc or saxon to produce a "clean" html version yourself or you can leave it to the browser. So: if you're primarily thinking of web content that should also be typeset, use html and be aware that you probably won't be able to use all the power of ConTeXt. If you're thinking of content that will be typeset but which you also want to use in other forms (web content being just one of them), use xml. In that case, you will have to learn at least some xslt as well... Btw, the thread you quoted refers to mkii entities, you know that the deinitions in mkiv are somewhat different, right? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________