Gerben,
I do not know if it is possible with Context.
But this definitely works with an xsl operation.
You will need an xsl file like this:
myxslfile.xsl:
http://www.w3.org/1999/XSL/Transform";>
myxmlfile.xml
John
Gerben
Use it l
> On 15 Apr 2020, at 13:54, Wolfgang Schuster
> wrote:
>
> Gerben Wierda schrieb am 15.04.2020 um 12:19:
>>> On 14 Apr 2020, at 11:52, Taco Hoekwater wrote:
On 14 Apr 2020, at 11:25, Gerben Wierda wrote:
This helps for adding information to my processing.
What I wa
Gerben Wierda schrieb am 15.04.2020 um 12:19:
On 14 Apr 2020, at 11:52, Taco Hoekwater wrote:
On 14 Apr 2020, at 11:25, Gerben Wierda wrote:
This helps for adding information to my processing.
What I was also looking for is that I don’t have a test.tex anymore, just the
XML file I am parsin
> On 14 Apr 2020, at 11:52, Taco Hoekwater wrote:
>
>
>
>> On 14 Apr 2020, at 11:25, Gerben Wierda wrote:
>>
>> This helps for adding information to my processing.
>>
>> What I was also looking for is that I don’t have a test.tex anymore, just
>> the XML file I am parsing and a command l
On 4/14/2020 11:25 AM, Gerben Wierda wrote:
This helps for adding information to my processing.
What I was also looking for is that I don’t have a test.tex anymore, just the
XML file I am parsing and a command line action.
So, I use mtxrun, give it the name of an XML. lua code (using a ’script
> On 14 Apr 2020, at 11:25, Gerben Wierda wrote:
>
> This helps for adding information to my processing.
>
> What I was also looking for is that I don’t have a test.tex anymore, just the
> XML file I am parsing and a command line action.
>
> So, I use mtxrun, give it the name of an XML. lua
This helps for adding information to my processing.
What I was also looking for is that I don’t have a test.tex anymore, just the
XML file I am parsing and a command line action.
So, I use mtxrun, give it the name of an XML. lua code (using a ’script’
somewhere?) reads the XML, extracts a name
Hi Gerben,
What you want is quite easy to do since you are using lua already. Try this:
% context --whatever=green test
with test.tex:
\starttext
\startluacode
table.print(environment.arguments)
\stopluacode
\stoptext
everything from the command line ends up in environment.argument
Currently, I process a file like this:
mtxrun --autogenerate --script context test12.tex
and in the file test12.tex one sees something like this:
\input archimate-mp
\ctxlua{moduledata.archimate(“myarchimatefile.xml")}
The latter parses the xml file and produces a PDF using generated MP code.