Re: [NTG-context] entity substitution

2018-04-03 Thread Wolfgang Schuster
ConTeXt has a list of predefined entities like  which can be used 
without the use of \xmlsetentity.


Wolfgang

dr. Hans van der Meer 
3. April 2018 um 16:22
Does ConText always process DOCTYPE definitions? Because in the next 
example the defined XXX entity is substituted in one case but not in 
the other.


In a directory I have the following files:

doctype.tex =
\startxmlsetups demo:setups
\xmlsetsetup{#1}{root}{demo:*}
\stopxmlsetups
\xmlregistersetup{demo}{demo:setups}
\startxmlsetups demo:root
\xmlflush{#1}
\stopxmlsetups
\startbuffer[demo]

]>

See XXX; for .

\stopbuffer
\starttext
\xmlprocessbuffer{demo}{demo}{}
\stoptext

Produces as output a subtituted entity


But

doctype-public.tex =
\startxmlsetups demo:setups
\xmlsetsetup{#1}{root}{demo:*}
\stopxmlsetups
\xmlregistersetup{demo}{demo:setups}
\startxmlsetups demo:root
\xmlflush{#1}
\stopxmlsetups
\startbuffer[demo]


See XXX; for .

\stopbuffer
\starttext
\xmlprocessbuffer{demo}{demo}{}
\stoptext

namen.dtd =


The last two do not output a substituted entity. /Why is this not 
working? What I am doing wrong?/




dr. Hans van der Meer


___
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] entity substitution

2018-04-03 Thread dr . Hans van der Meer
Does ConText always process DOCTYPE definitions? Because in the next example 
the defined XXX entity is substituted in one case but not in the other.

In a directory I have the following files:

doctype.tex =
\startxmlsetups demo:setups
\xmlsetsetup{#1}{root}{demo:*}
\stopxmlsetups
\xmlregistersetup{demo}{demo:setups}
\startxmlsetups demo:root
\xmlflush{#1}
\stopxmlsetups
\startbuffer[demo]

]>

See XXX; for .

\stopbuffer
\starttext
\xmlprocessbuffer{demo}{demo}{}
\stoptext

Produces as output a subtituted entity



But

doctype-public.tex = 
\startxmlsetups demo:setups
\xmlsetsetup{#1}{root}{demo:*}
\stopxmlsetups
\xmlregistersetup{demo}{demo:setups}
\startxmlsetups demo:root
\xmlflush{#1}
\stopxmlsetups
\startbuffer[demo]


See XXX; for .

\stopbuffer
\starttext
\xmlprocessbuffer{demo}{demo}{}
\stoptext

namen.dtd = 


The last two do not output a substituted entity. Why is this not working? What 
I am doing wrong?



dr. Hans van der Meer


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___