* howto execute loaded xml?
@ 2012-03-21 9:27 Meer, H. van der
[not found] ` <44AA50A3-C414-4F6F-A213-B035AAE185FC@uva.nl>
0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2012-03-21 9:27 UTC (permalink / raw)
To: ConTeXt NTG
[-- Attachment #1.1: Type: text/plain, Size: 1179 bytes --]
I made a minimal example showing that load'ed xml is not typeset. In contrast to the first <text>-node the second comes out as xml and not as typeset text.
What has to be done to change that?
Thanks in advance.
Hans van der Meer
\startbuffer[load-1]
<?xml version="1.0" encoding="UTF-8"?>
<myroot>
<include buffer="load-2"/>
<text>buffer[load-1] contents</text>
</myroot>
\stopbuffer
\startbuffer[load-2]
<includes>
<text>Included buffer[load-2] contents & ampersand.</text>
</includes>
\stopbuffer
\startxmlsetups load:setups
\xmlsetsetup{\xmldocument}{myroot|text|include}{load:*}
\stopxmlsetups\xmlregistersetup{load:setups}
\startxmlsetups load:myroot
\writestatus{TEST-LOAD}{loading myroot}
\xmlall{#1}{include}
\xmlall{#1}{text}
\xmlall{includes}{text}
\stopxmlsetups
\startxmlsetups load:text
*** \xmlflush{#1} ***\par
\stopxmlsetups
\startxmlsetups load:include
\writestatus{TEST-LOAD}{loading include}
\xmlloadbuffer{includes}{load-2}
\stopxmlsetups
\enabletrackers[lxml.loading]
\setuppapersize[S5][S5]
\starttext
\hairline
\xmlprocessbuffer{myroot}{load-1}{}
\hairline
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 3373 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: howto execute loaded xml?
[not found] ` <44AA50A3-C414-4F6F-A213-B035AAE185FC@uva.nl>
@ 2012-03-22 12:04 ` Meer, H. van der
0 siblings, 0 replies; 2+ messages in thread
From: Meer, H. van der @ 2012-03-22 12:04 UTC (permalink / raw)
To: ConTeXt NTG
[-- Attachment #1.1: Type: text/plain, Size: 766 bytes --]
It took hours (some far in the night) to solve. Finally. I am posting this message just in case someone starts delving into it.
Still standing is the problem of \xmlcommand not obeying the attribute selection but generating an error: \xmlcommand{#1}{path[@attrib==whatever]}{command}
Hans van der Meer
On 21 mrt. 2012, at 10:29, Meer, H. van der wrote:
The output was missing in my previous post. Sorry. Here it is.
Hans van der Meer
On 21 mrt. 2012, at 10:27, H. van der Meer wrote:
I made a minimal example showing that load'ed xml is not typeset. In contrast to the first <text>-node the second comes out as xml and not as typeset text.
What has to be done to change that?
Thanks in advance.
Hans van der Meer
<test.pdf>
[-- Attachment #1.2: Type: text/html, Size: 4450 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-22 12:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 9:27 howto execute loaded xml? Meer, H. van der
[not found] ` <44AA50A3-C414-4F6F-A213-B035AAE185FC@uva.nl>
2012-03-22 12:04 ` Meer, H. van der
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).