ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml and buffers
@ 2006-01-19 18:23 Junod Antoine
  2006-01-19 16:55 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Junod Antoine @ 2006-01-19 18:23 UTC (permalink / raw)


Hello gurus, 

I'm a bit into trouble wih buffers and xml parsing. Here is my problem:

I've got a .xhtml with the following lines:

     [...]
     <meta name="course_name" content="Génie Logiciel" />
     <meta name="date" content="23 décembre 2005" />
     [...]
     <title>Auction: document d'analyse</title>
     [...]

I'm trying to store the content of the meta tag in a buffer, one per
meta tag, (ie "Génie Logiciel" in buffer course_name, "23 décembre
2005" in buffer date) to use these buffers when I meet the title tag:

     \XMLifequalelse{meta}{name}{course_name}
          {\startbuffer[course_name]\XMLpar{meta}{content}{}\stopbuffer}{}
     \XMLifequalelse{meta}{name}{date}
          {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{}
     \defineXMLenvironment [title] {\startstandardmakeup
                                    \getbuffer[course_name]
                                    \getbuffer[date]}{\stopstandardmakeup}

But it does not print anything else than the title.

Any idea?

Thanks a lot for you help!
-AJ 

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

end of thread, other threads:[~2006-01-20 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 18:23 xml and buffers Junod Antoine
2006-01-19 16:55 ` Hans Hagen
2006-01-20  7:28   ` Junod Antoine
2006-01-20 19:33   ` Junod Antoine

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