ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Johannes Graumann <johannes_graumann@web.de>
To: ntg-context@ntg.nl
Subject: Re: MKIV and XML documentation
Date: Tue, 18 Dec 2007 15:31:01 +0100	[thread overview]
Message-ID: <fk8lj4$k2c$1@ger.gmane.org> (raw)
In-Reply-To: <115224fb0712180613n4cceb84bo1692f8dade00513d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

Wolfgang Schuster wrote:

> 2007/12/18, Johannes Graumann <johannes_graumann@web.de>:
>> Wolfgang Schuster wrote:
>>
>> > 2007/12/18, Johannes Graumann <johannes_graumann@web.de>:
>> >> Thanks! I remembered this, but had lost track of where to find it ...
>> >> Can someone please have a quick look at the following:
>> >>
>> >> \startxmlsetups xml:mysetups
>> >>   \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
>> >> \stopxmlsetups
>> >>
>> >> \xmlregistersetup{xml:mysetups}
>> >>
>> >> \startxmlsetups xml:paragraph
>> >>   \xmlflush{#1}\endgraf
>> >> \stopxmlsetups
>> >>
>> >> \starttext
>> >>   \processXMLfilegrouped{zip::\env{odt}::content.xml}
>> >> \stoptext
>> >
>> > replace this with
>> >
>> > \starttext
>> > \xmlprocess{main}{zip::\env{odt}::content.xml}{}
>> > \stoptext
>> >
>> > \processXMLfilegrouped did not work in combination with
>> > xmlregistersetup
>> >
>> Thanks for the hint, but
>>
>> \startxmlsetups xml:mysetups
>>   \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
>> \stopxmlsetups
>>
>> \xmlregistersetup{xml:mysetups}
>>
>> \startxmlsetups xml:paragraph
>>   \xmlflush{#1}\endgraf
>> \stopxmlsetups
>>
>> \starttext
>>   \xmlprocess{main}{zip::\env{odt}::content.xml}{}
>> \stoptext
>>
>> doesn't give anything different than what I was trying before ...
> 
> Can you send a real example (Openoffice file plus TeX file).

Attached. Thanks for your time. Joh

[-- Attachment #2: COOnTeXML.tex --]
[-- Type: text/plain, Size: 357 bytes --]

% texmfstart texexec --lua COOnTeXML.tex --arg="odt=someotherfile.zip"
\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
\stoptext

[-- Attachment #3: Versuch.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 6759 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2007-12-18 14:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17 16:15 Johannes Graumann
2007-12-17 21:18 ` Hans Hagen
2007-12-18 12:11   ` Pablo Rodríguez
2007-12-18 13:04     ` luigi scarso
2007-12-18 16:22       ` Hans Hagen
2007-12-18 15:26     ` Hans Hagen
2007-12-18 13:13   ` Johannes Graumann
2007-12-18 13:39     ` Wolfgang Schuster
2007-12-18 14:03       ` Johannes Graumann
2007-12-18 14:13         ` Wolfgang Schuster
2007-12-18 14:31           ` Johannes Graumann [this message]
2007-12-19 11:52             ` Wolfgang Schuster
2007-12-19 13:11               ` Hans Hagen
2007-12-19 17:22                 ` Johannes Graumann
2007-12-23 13:59                 ` Johannes Graumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fk8lj4$k2c$1@ger.gmane.org' \
    --to=johannes_graumann@web.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).