ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML typesetting -- a bug?
@ 2003-01-10  8:21 AlterEgo Qasars
  2003-01-10 11:36 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: AlterEgo Qasars @ 2003-01-10  8:21 UTC (permalink / raw)


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

Good morning.

Some time ago I've uploaded and installed new ConTeXt
(ConTeXt  ver: 2002.10.23  fmt: 2002.12.4  int: english  mes: english).
With it my XHTML documents cannot be processed (it worked with some older 
version).

Now I obtain this very error message:
! Missing \endcsname inserted.
<to be read again>
                   \def
\parseXMLelement #1#2 #3>->\def
                                \currentXMLarguments {#3}\if #1/\chardef 
\ki...
l.2 <HTML>

What's wrong? Is it my stupidness or a bug in a new version of ConTeXt? I 
include a minimal example file.

Many thanks and greetings to you all.
Michal Kvasnicka


[-- Attachment #2: test.html --]
[-- Type: text/html, Size: 343 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: application/x-tex, Size: 339 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XML typesetting -- a bug?
  2003-01-10  8:21 XML typesetting -- a bug? AlterEgo Qasars
@ 2003-01-10 11:36 ` Hans Hagen
  2003-01-11 20:18   ` Simon Pepping
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2003-01-10 11:36 UTC (permalink / raw)


At 09:21 AM 1/10/2003 +0100, you wrote:
>Good morning.
>
>Some time ago I've uploaded and installed new ConTeXt
>(ConTeXt  ver: 2002.10.23  fmt: 2002.12.4  int: english  mes: english).
>With it my XHTML documents cannot be processed (it worked with some older
>version).
>
>Now I obtain this very error message:
>! Missing \endcsname inserted.
><to be read again>
>                    \def
>\parseXMLelement #1#2 #3>->\def
>                                 \currentXMLarguments {#3}\if #1/\chardef
>\ki...
>l.2 <HTML>
>
>What's wrong? Is it my stupidness or a bug in a new version of ConTeXt? I
>include a minimal example file.

i assumed that there were two strings, you may try:

   \def\XMLdoctypeS YSTEM {\XMLgrabstring}
   \def\XMLdoctypeP UBLIC {\XMLgrabstring}

   \def\grabXMLstrings
     {\doifnextcharelse>{\gobbleuntil>}{\dowithgrabbedstring\XMLgrabstring}}

How about:

   \defineXMLgrouped [I] \em
   \defineXMLgrouped [B] \bf

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XML typesetting -- a bug?
  2003-01-10 11:36 ` Hans Hagen
@ 2003-01-11 20:18   ` Simon Pepping
  2003-01-11 20:54     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Pepping @ 2003-01-11 20:18 UTC (permalink / raw)


On Fri, Jan 10, 2003 at 12:36:09PM +0100, Hans Hagen wrote:
> At 09:21 AM 1/10/2003 +0100, you wrote:
> >Good morning.
> >
> >With it my XHTML documents cannot be processed (it worked with some older
> >version).
> >
> >Now I obtain this very error message:
> >! Missing \endcsname inserted.
> ><to be read again>
> >                   \def
> >\parseXMLelement #1#2 #3>->\def
> >                                \currentXMLarguments {#3}\if #1/\chardef
> >\ki...
> >l.2 <HTML>
> >
> i assumed that there were two strings, you may try:

This is a HTML file, not a XHTML file. Therefore it is a SGML file,
for which a PUBLIC identifier is not followed by a system identifier.

Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XML typesetting -- a bug?
  2003-01-11 20:18   ` Simon Pepping
@ 2003-01-11 20:54     ` Hans Hagen
  2003-01-14  9:28       ` AlterEgo Qasars
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2003-01-11 20:54 UTC (permalink / raw)


At 09:18 PM 1/11/2003 +0100, Simon Pepping wrote:
>On Fri, Jan 10, 2003 at 12:36:09PM +0100, Hans Hagen wrote:
> > At 09:21 AM 1/10/2003 +0100, you wrote:
> > >Good morning.
> > >
> > >With it my XHTML documents cannot be processed (it worked with some older
> > >version).
> > >
> > >Now I obtain this very error message:
> > >! Missing \endcsname inserted.
> > ><to be read again>
> > >                   \def
> > >\parseXMLelement #1#2 #3>->\def
> > >                                \currentXMLarguments {#3}\if #1/\chardef
> > >\ki...
> > >l.2 <HTML>
> > >
> > i assumed that there were two strings, you may try:
>
>This is a HTML file, not a XHTML file. Therefore it is a SGML file,
>for which a PUBLIC identifier is not followed by a system identifier.

ah, this explains things, i was expecting two strings; thanks (you seem to 
have the sgml/xml syntax burned into your mind -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XML typesetting -- a bug?
  2003-01-11 20:54     ` Hans Hagen
@ 2003-01-14  9:28       ` AlterEgo Qasars
  0 siblings, 0 replies; 5+ messages in thread
From: AlterEgo Qasars @ 2003-01-14  9:28 UTC (permalink / raw)


Good morning.

Thanks for your help. I'm stupid. I've generated the file with StarOffice.
It looked like XHTML (all tags were paired -- except <!DOCTYPE ...>). I
missed it.

Many thanks for your help. I'll simply delete the tag in the 
pre-processing stage.

Michal Kvasnicka

> >This is a HTML file, not a XHTML file. Therefore it is a SGML file,
> >for which a PUBLIC identifier is not followed by a system identifier.
> 
> ah, this explains things, i was expecting two strings; thanks (you seem to 
> have the sgml/xml syntax burned into your mind -)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-14  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-10  8:21 XML typesetting -- a bug? AlterEgo Qasars
2003-01-10 11:36 ` Hans Hagen
2003-01-11 20:18   ` Simon Pepping
2003-01-11 20:54     ` Hans Hagen
2003-01-14  9:28       ` AlterEgo Qasars

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).