I have come across an issue while migrating an RM/Cobol application using XML Extensions from v11 to v12. Please allow me to ask for advice, please.
As I develop XML applications, I follow these basic steps:
- I develop a basic cobol program including the data structure used for the XML
-
I use the slicesy utility to create an XSD, rename the XSD to {whatever}SAVE.xsd, and delete XSL and XTL
- I used Stylus Studio to recreate a style sheet using the XSD created by the slicesy utility and a sample XML document in the format I'm having to deal with
I like using Stylus Studio to create style sheets because I don't like typing the XSLT by hand. I make too many mistakes and I find it easier to map elements using Stylus Studio and adding simple XSLT statements (like xsl:if) if/when necessary.
It appears the XSD created by the slicesy utility does not include the "root" element using v12, and there is not a switch to pass into the slicesy utility to force the slicesy utility to create the "root" element. Douglas P with Micro Focus SupportLine confirmed that is true.
One alternative would be to create a "debug" document from the data-structure within the cobol program using an "XML EXPORT" command, and use Stylus Studio to map the elements using the "debug" document as one of the source/target documents (instead of the XSD).
I really don't want to re-map one of the style sheets as it is quite complicated. I realize the application will work "as is", but any changes would require the style sheet to be corrected by hand. Ultimately, I would like to have the "root" element within the style sheet so I can use stylus studio and not have to re-map a style sheet using a "debug" document.
Can anyone share any advice?
#XMLExtensions
#RMCOBOL




