The problem is solved :).
I had to put the code after start-document. and added hSAXWriter:strict = false.
CREATE SAX-WRITER hSAXWriter.
hSAXWriter:FORMATTED = TRUE.
hSAXWriter:ENCODING = "UTF-8".
hSAXWriter:strict = false.
lOK = hSAXWriter:SET-OUTPUT-DESTINATION("file", "wo-test.xml").
lOK...
I have added the line to the bottom of the script:
lOK = hSAXWriter:END-ELEMENT("ProductionPlan").
hSAXWriter:write-processing-instruction("xml-stylesheet", 'type="text/xsl"
href="wo.xsl"').
lOK = hSAXWriter:END-DOCUMENT().
Then it writes the stylesheet. But it enters it at the bottom of the...
to bad also with double quotus it gives the same error-message. Looks like i have to open the write status.
WRITE-PROCESSING-INSTRUCTION method invalid while WRITE-STATUS is WRITE-IDLE.
(14609)
Hi There,
I have created a query that generates an XML file. But i also want to reference to a style sheet. I found in the forunm over here that i have to add this:
hSAXWriter:write-processing-instruction("xml-stylesheet", "type=""text/xsl"" href=""wo.xsl""").
but when i run it.
i receive...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.