From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44951 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: XML Date: Wed, 22 Oct 2008 08:50:51 +0200 Message-ID: <115224fb0810212350m697afcf6m730992a71374de21@mail.gmail.com> References: <200810072214.52895.johannes_graumann@web.de> <115224fb0810090050x4b827f8ej9c75bcc724222a7b@mail.gmail.com> <115224fb0810140024o1b1d1365ld7604568be1e4ddd@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_19777_444797.1224658251670" X-Trace: ger.gmane.org 1224660270 28417 80.91.229.12 (22 Oct 2008 07:24:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 07:24:30 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 22 09:25:31 2008 connect(): Connection refused 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 1KsY5r-00082O-O2 for gctc-ntg-context-518@m.gmane.org; Wed, 22 Oct 2008 09:25:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F03CE1FC20; Wed, 22 Oct 2008 09:24:13 +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 17118-01-31; Wed, 22 Oct 2008 09:23:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 889801FBD0; Wed, 22 Oct 2008 09:22:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 642F71FB39 for ; Wed, 22 Oct 2008 09:22:30 +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 17118-01-29 for ; Wed, 22 Oct 2008 09:21:32 +0200 (CEST) Original-Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.183]) by ronja.ntg.nl (Postfix) with ESMTP id 590721FC0B for ; Wed, 22 Oct 2008 08:50:51 +0200 (CEST) Original-Received: by ik-out-1112.google.com with SMTP id c21so2074110ika.2 for ; Tue, 21 Oct 2008 23:50:51 -0700 (PDT) Original-Received: by 10.103.229.12 with SMTP id g12mr1142613mur.52.1224658251684; Tue, 21 Oct 2008 23:50:51 -0700 (PDT) Original-Received: by 10.103.215.10 with HTTP; Tue, 21 Oct 2008 23:50:51 -0700 (PDT) In-Reply-To: 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:44951 Archived-At: ------=_Part_19777_444797.1224658251670 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, Oct 19, 2008 at 10:38 PM, Johannes Graumann wrote: > Wolfgang Schuster wrote: >>> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties >>> /command(do:style:text-properties)} >>> \xmlflush{#1} >>> \egroup >>> \stopxmlsetups >> >> \startxmlsetups text:span >> \bgroup >> \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)} >> \xmlflush{#1} >> \egroup >> \stopxmlsetups > > Hello Wolfgang, > > I just don't get it to run. Using the attached and > context --ctx=t-openoffice Attempt.odt > I get the result in the pdf ... strange whitespace and no bold anywhere to be seen. Can you give me another nudge ... I start to understand what Hans and you are actually doing, but this is still beyond me. I attached a fixed version, the errors in your version are: - your wrote "do:style:textproperties" instead of "do:style:text-properties" for the "text:span" element , the hyphen was missing - the begin of the line in \startxmlsetups text:span ... \stopxmlsetups contained a lot of control codes and they inserted the whitespace, could be a problem with your editor, which one do you use? Wolfgang ------=_Part_19777_444797.1224658251670 Content-Type: application/x-tex; name=t-openoffice.tex Content-Transfer-Encoding: base64 X-Attachment-Id: f_fmllr7bn4 Content-Disposition: attachment; filename=t-openoffice.tex JWNvbnRleHQgLS1jdHg9dC1vcGVub2ZmaWNlIEJvbGRBbmRJdGFsaWNDb250ZW50LnhtbAoKXHN0 YXJ0ZW52aXJvbm1lbnQgdC1vcGVub2ZmaWNlLnRleAoKICBcc3RhcnR4bWxzZXR1cHMgb2ZmaWNl CiAgICBceG1sc2V0c2V0dXB7bWFpbn17dGV4dDpwfHRleHQ6c3Bhbn17Kn0KICBcc3RvcHhtbHNl dHVwcwogIFx4bWxyZWdpc3RlcnNldHVwe29mZmljZX0KCiAgXHN0YXJ0eG1sc2V0dXBzIHRleHQ6 cAogICAgXHhtbGZsdXNoeyMxfVxlbmRncmFmCiAgXHN0b3B4bWxzZXR1cHMKCiAgXHN0YXJ0eG1s c2V0dXBzIHRleHQ6c3BhbgogICAgXGJncm91cAogICAgICBceG1sZmlsdGVye21haW59e29mZmlj ZTphdXRvbWF0aWMtc3R5bGVzL3N0eWxlOnN0eWxlW0BzdHlsZTpuYW1lPSdceG1sYXR0eyMxfXtz dHlsZS1uYW1lfSddL3N0eWxlOnRleHQtcHJvcGVydGllcy9jb21tYW5kKGRvOnN0eWxlOnRleHQt cHJvcGVydGllcyl9CiAgICAgIFx4bWxmbHVzaHsjMX0KICAgIFxlZ3JvdXAKICBcc3RvcHhtbHNl dHVwcwoKICBcc3RhcnR4bWxzZXR1cHMgZG86c3R5bGU6dGV4dC1wcm9wZXJ0aWVzCiAgICBceG1s dmFse2ZvOmZvbnQtd2VpZ2h0fXtceG1sYXR0eyMxfXtmb250LXdlaWdodH19e30lIHRvZG86IG5h bWVzcGFjZXMgaW4gYXR0cmlidXRlcwogICAgXHhtbHZhbHtmbzpmb250LXN0eWxlfXtceG1sYXR0 eyMxfXtmb250LXN0eWxlfX17fQogIFxzdG9weG1sc2V0dXBzCgogIFx4bWxtYXB2YWx1ZXtmbzpm b250LXdlaWdodH17Ym9sZH17XGJmfQogIFx4bWxtYXB2YWx1ZXtmbzpmb250LXN0eWxlfXtpdGFs aWN9e1xpdH0KCiAgXHN0YXJ0dGV4dAogICAgXHhtbHByb2Nlc3N7bWFpbn17emlwOi8vL1xpbnB1 dGZpbGVuYW1lLm9kdD9uYW1lPWNvbnRlbnQueG1sfXt9CiAgICAlXHVzZXppcGZpbGVbXGlucHV0 ZmlsZW5hbWUub2R0XQogICAgJVx4bWxwcm9jZXNze21haW59eyovY29udGVudC54bWx9e30KICBc c3RvcHRleHQKICAKXHN0b3BlbnZpcm9ubWVudAoK ------=_Part_19777_444797.1224658251670 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ------=_Part_19777_444797.1224658251670--