M
Martin Leim
I have some XML file and want to transform it into Word(Processing)ML via
XSL-Transformation. I want to include some vba macro in it which runs when
the document is opened.
By looking at a WordML document with macros in it I learned that the macro
is embedded via base64 encoded binary data and in the word document header
there is a flag indicating we have embedded macros.
Now I copied this piece of binary code into my xsl file and applied it to
the xml. Now I get an "Unknown Error" with reference to the line and column
(its somewhere in the binary data).
It maybe that I am missing something in my XSLT file.
If I use the XSLT Inference Tool to create a XSLT I don't get an error, a
security warning concerning macros is showing up, but no macro is executed
(and none is in the code editor).
So is there a (working!!) possibility to include a macro that really works
in my XSLT file? The macro is constant, it doesn't have to change, so it
would be OK tu use this binary piece of code.
But how can I include it the way it works?
Thanks in advance for anyone having an idea.
XSL-Transformation. I want to include some vba macro in it which runs when
the document is opened.
By looking at a WordML document with macros in it I learned that the macro
is embedded via base64 encoded binary data and in the word document header
there is a flag indicating we have embedded macros.
Now I copied this piece of binary code into my xsl file and applied it to
the xml. Now I get an "Unknown Error" with reference to the line and column
(its somewhere in the binary data).
It maybe that I am missing something in my XSLT file.
If I use the XSLT Inference Tool to create a XSLT I don't get an error, a
security warning concerning macros is showing up, but no macro is executed
(and none is in the code editor).
So is there a (working!!) possibility to include a macro that really works
in my XSLT file? The macro is constant, it doesn't have to change, so it
would be OK tu use this binary piece of code.
But how can I include it the way it works?
Thanks in advance for anyone having an idea.