* MkIV gobbles text in xml files
@ 2008-11-28 18:20 Wolfgang Schuster
2008-11-30 11:41 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Schuster @ 2008-11-28 18:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: xml.xml --]
[-- Type: text/xml, Size: 205 bytes --]
<?xml version="1.0" encoding="utf-8"?>
<document>
<p>
aaaa aaaa aaaa
aaaa aaaa aaaa
bbbb bbbb bbbb
bbbb bbbb bbbb
</p>
<p>
aaaa aaaa aaaa
aaaa aaaa aaaa
bbbb bbbb bbbb
bbbb bbbb bbbb
</p>
</document>
[-- Attachment #2: xml.tex --]
[-- Type: application/octet-stream, Size: 282 bytes --]
\startxmlsetups xml:test
\xmlsetsetup{\xmldocument}{document}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:test}
\startxmlsetups xml:document
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups
\starttext
\xmlprocess{main}{xml.xml}{}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 629 bytes --]
Hi,
I was able to reproduce Thomas problem with xml files.
Part of his text was missing because he had a space after his <sln/>
element in the file which caused ConTeXt to gobble the following text
till the end of the paragraph.
In the following text the second line in the second paragraph has
a space at the end of the line and the two lines with b's did not
appear in the output (test files are attached).
<?xml version="1.0" encoding="utf-8"?>
<document>
<p>
aaaa aaaa aaaa
aaaa aaaa aaaa
bbbb bbbb bbbb
bbbb bbbb bbbb
</p>
<p>
aaaa aaaa aaaa
aaaa aaaa aaaa
bbbb bbbb bbbb
bbbb bbbb bbbb
</p>
</document>
Wolfgang
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MkIV gobbles text in xml files
2008-11-28 18:20 MkIV gobbles text in xml files Wolfgang Schuster
@ 2008-11-30 11:41 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-11-30 11:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Wolfgang Schuster wrote:
>
> Hi,
>
> I was able to reproduce Thomas problem with xml files.
>
> Part of his text was missing because he had a space after his <sln/>
> element in the file which caused ConTeXt to gobble the following text
> till the end of the paragraph.
>
> In the following text the second line in the second paragraph has
> a space at the end of the line and the two lines with b's did not
> appear in the output (test files are attached).
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <document>
>
> <p>
> aaaa aaaa aaaa
> aaaa aaaa aaaa
> bbbb bbbb bbbb
> bbbb bbbb bbbb
> </p>
>
> <p>
> aaaa aaaa aaaa
> aaaa aaaa aaaa
> bbbb bbbb bbbb
> bbbb bbbb bbbb
> </p>
>
> </document>
>
> Wolfgang
thanks for the test file; i think that i found the problem
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-30 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28 18:20 MkIV gobbles text in xml files Wolfgang Schuster
2008-11-30 11:41 ` Hans Hagen
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).