ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* using xmlsetups
@ 2010-04-04 21:14 Hans van der Meer
  2010-04-05  9:48 ` Hans van der Meer
  0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2010-04-04 21:14 UTC (permalink / raw)
  To: NTG ConTeXt

I cannot get multiple separate \xmlsetsetup's working. Obviously I am  
doing something wrong. My idea was:

file included contains:
\startxmlsetups xml:commoncontext:commonsetups
\xmlsetsetup{}{error|tex|html|nbsp|...|br}{xml:commoncontext:*}
\stopxmlsetups
\xmlregistersetup{xml:commoncontext:commonsetups}
\startxmlsetups xml:commoncontext:br
\crlf \writestatus{CALLING}{br} % <<< apparently not called!
\stopxmlsetups
\startxmlsetups xml:commoncontext:b {\bf\xmlflush{#1}} \stopxmlsetups
......

file that includes contains:
\startxmlsetups xml:doccase:doccasesetups
	\xmlsetsetup{}{*}{xml:commoncontext:*}	% {doc}{*}..also does not work
	\xmlsetsetup{doc}{*}{xml:case:*}	% does work for setup 'xml:case'
	\xmlsetsetup{doc}{error|dvd|titles...|source|stars}{xml:doccase:*}
\stopxmlsetups
\xmlregistersetup{xml:doccase:dvoccasesetups}
\startxmlsetups xml:case:text \xmlflush{#1} \stopxmlsetups
.... etc.

Usage:
<doc><text>The break not called<br/> and similarly <b>not called</ 
b><text></doc>

Where is the flaw here?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: using xmlsetups
  2010-04-04 21:14 using xmlsetups Hans van der Meer
@ 2010-04-05  9:48 ` Hans van der Meer
  0 siblings, 0 replies; 2+ messages in thread
From: Hans van der Meer @ 2010-04-05  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Well, after some more many hours toiling and with the help of  
\enabletrackers[lxml.setups] (Hans Hagen got to be thanked for that)  
finally discovered how to do this. I report it here in case other  
people might benefit. Maybe it should be put into the wiki, but I am  
not very apt with that.

In the supporting setup DO NOT use {}:
\xmlsetsetup{}{error|tex|html|nbsp|...|br}{xml:commoncontext:*}

DO use {\xmldocument}:
\xmlsetsetup{\xmldocument}{error|tex|html|nbsp|...|br} 
{xml:commoncontext:*}

Simple and quite logical, iff one has seen the light.

Hans van der Meer




On 4 apr 2010, at 23:14, Hans van der Meer wrote:

> I cannot get multiple separate \xmlsetsetup's working. Obviously I  
> am doing something wrong. My idea was:
>
> file included contains:
> \startxmlsetups xml:commoncontext:commonsetups
> \xmlsetsetup{}{error|tex|html|nbsp|...|br}{xml:commoncontext:*}
> \stopxmlsetups
> \xmlregistersetup{xml:commoncontext:commonsetups}
> \startxmlsetups xml:commoncontext:br
> \crlf \writestatus{CALLING}{br} % <<< apparently not called!
> \stopxmlsetups
> \startxmlsetups xml:commoncontext:b {\bf\xmlflush{#1}} \stopxmlsetups
> ......
>
> file that includes contains:
> \startxmlsetups xml:doccase:doccasesetups
> 	\xmlsetsetup{}{*}{xml:commoncontext:*}	% {doc}{*}..also does not work
> 	\xmlsetsetup{doc}{*}{xml:case:*}	% does work for setup 'xml:case'
> 	\xmlsetsetup{doc}{error|dvd|titles...|source|stars}{xml:doccase:*}
> \stopxmlsetups
> \xmlregistersetup{xml:doccase:dvoccasesetups}
> \startxmlsetups xml:case:text \xmlflush{#1} \stopxmlsetups
> .... etc.
>
> Usage:
> <doc><text>The break not called<br/> and similarly <b>not called</ 
> b><text></doc>
>
> Where is the flaw here?
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-04-05  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-04 21:14 using xmlsetups Hans van der Meer
2010-04-05  9:48 ` Hans van der Meer

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