[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 09:49, Wolfgang Schuster wrote: > Denis Maier via ntg-context schrieb am 08.06.2024 um 09:14: >> [...]  >> Hi, >> I've read Thomas Schmitt's My Way as an excellent introduction in XML >> processing with ConteXt, but I can't find it anywhere anymore... Does >> anyone know what happened to

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Pablo Rodriguez via ntg-context
On 6/8/24 10:49, vm via ntg-context wrote: > in the document > https://wiki.contextgarden.net/images/8/8c/xhtml.pdf > > near the end an essential line got truncated: > [...] > how should this line continue ? > {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("\xmla As this comes from https

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Thomas A. Schmitz
On 6/8/24 10:49, vm via ntg-context wrote: in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread vm via ntg-context
in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas("\xmla \stopxmlsetups how should this l

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Wolfgang Schuster
Denis Maier via ntg-context schrieb am 08.06.2024 um 09:14: Pablo Rodriguez via ntg-context > hat am 07.06.2024 21:41 CEST geschrieben: Again, xml-mkiv.pdf is documenting the way of handling XML in ConTeXt and it has to be written that way. It is part of our task (the

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Denis Maier via ntg-context
  Pablo Rodriguez via ntg-context hat am 07.06.2024 21:41 CEST geschrieben:     Again, xml-mkiv.pdf is documenting the way of handling XML in ConTeXt and it has to be written that way.

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Henning Hraban Ramm
Am 07.06.24 um 21:41 schrieb Pablo Rodriguez via ntg-context: It is part of our task (the one reserved to final users) to compose a proper introduction on how to typeset XML sources with ConTeXt. Have a look at the XMl related articles in https://articles.contextgarden.net/journal/2019.html

[NTG-context] Re: ConTeXt source from XML

2024-06-07 Thread Pablo Rodriguez via ntg-context
On 6/6/24 22:53, Christoph Edenhauser wrote: >> [...] >> XPath seems to have as it primary purpose to address the nodes of XML trees. >> [...] >> If you don’t want this to happen, you have to encode them in the TEI XML >> sources. > > In my case, the connection to the original source will be lost. 

[NTG-context] Re: ConTeXt source from XML

2024-06-06 Thread Hans Hagen via ntg-context
On 6/6/2024 5:33 PM, Pablo Rodriguez via ntg-context wrote: On 6/5/24 20:23, Christoph Edenhauser wrote: Dear Pablo, Thank you very much for your very clear, detailed and elaborate explanations.  - Over the next few days I will meditate on the ConTeXt way to handle XML and on my workflow and ta

[NTG-context] Re: ConTeXt source from XML

2024-06-06 Thread Pablo Rodriguez via ntg-context
On 6/5/24 20:23, Christoph Edenhauser wrote: > Dear Pablo, > > Thank you very much for your very clear, detailed and elaborate > explanations.  - Over the next few days I will meditate on the ConTeXt > way to handle XML and on my workflow and take a look at lpath (never > heard of it). And somehow

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
Dear Pablo, Thank you very much for your very clear, detailed and elaborate explanations.  - Over the next few days I will meditate on the ConTeXt way to handle XML and on my workflow and take a look at lpath (never heard of it). And somehow I have the impression that the next few days will l

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
On 6/4/24 22:09, Hans Hagen wrote: > [...] > There is a xml-mkiv-tricks.tex file in the distribution (no pdf is > seems so I need to add that one.) Hans, sorry, I forgot to reply earlier. I think this is already included in https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=53 (as chap

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Hans Hagen
On 6/5/2024 2:16 PM, Henning Hraban Ramm wrote: Am 05.06.24 um 12:00 schrieb Christoph Edenhauser: My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands H

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
On 6/5/24 12:00, Christoph Edenhauser wrote: > [...] > I realise that it is somehow difficult for me to describe what I would > like to achieve, perhaps what I have in mind is not even possible. Hi Christoph, as far as I know (and as Hraban has already mentioned), this is not possible. Either XS

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
Dear Hraban, dear List Thank you for your suggestions. I suppose, it would have been too nice if I could have left the XSLT path. Thank you very much for your patience and help, Christoph ___ If your question is of

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Henning Hraban Ramm
Am 05.06.24 um 12:00 schrieb Christoph Edenhauser: My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands Hi, I don’t find it hard to understand, but I don’

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Christoph Edenhauser
Dear Hand, dear list Am 04.06.24 um 22:09 schrieb Hans Hagen: On 6/4/2024 9:21 PM, Christoph Edenhauser wrote: Dear Pablo, dear list That's great, thank you very much for your suggestion. That seems to me to be a very elegant solution to the next two problems that were actually still ahead of

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Hans Hagen
On 6/4/2024 9:21 PM, Christoph Edenhauser wrote: Dear Pablo, dear list That's great, thank you very much for your suggestion. That seems to me to be a very elegant solution to the next two problems that were actually still ahead of me. And now to my initial question, which I didn't specify pr

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Christoph Edenhauser
Dear Pablo, dear list That's great, thank you very much for your suggestion. That seems to me to be a very elegant solution to the next two problems that were actually still ahead of me. And now to my initial question, which I didn't specify precisely enough. I have the following workflow in

[NTG-context] Re: ConTeXt source from XML

2024-06-04 Thread Pablo Rodriguez via ntg-context
On 6/4/24 13:51, Christoph Edenhauser wrote: > Dear list, > > I am currently trying to get into Context and XML. I would like to do > the typographical fine-tuning in Context and not in the XML document. My > question is: Is it possible to have ConTeXt output a (preliminary) > ConTeXt file instead