[Xml-compile] Modifying Examle (Template) Output

Patrick Powell papowell at astart.com
Sat Mar 17 14:06:49 GMT 2018


The 'example' or 'template' output has been a major life ksaver (or at 
least my sanity saver).

However (why is there always a pause before the However?)...

I need to modify the format of the output.  In the XML Compile Template 
POD there is a hint that:

   Schema hooks
     Hooks are implemented since version 0.82. They can be used to 
improve the
     template output.

    hooks executed before the template is generated
     None defined yet.

Here is what I would like to do:

1.  put the closing ] or } for a complex object example on a separate line

2.  Append the name of the complex object in a comment after the closing 
] or }

Example:
$errorReport =
# Describing complex testdata:errorReportMsg
#     {http://www.exmaple.com/testdata}errorReportMsg
# xmlns:testdata http://www.specsol.com/rmisatmsdata
# xmlns:xs        http://www.w3.org/2001/XMLSchema

# is a testdata:ErrorReport
{ # sequence of organization_information,
   #   organization_requesting

   # is a xs:string
   organization_information => "example",

   # is a xs:string
   organization_requesting => "example",

} # testdata:ErrorReport
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Modified output
;

-- 
Patrick Powell                 Astart Technologies
papowell at astart.com            1530 Jamacha Rd, Suite X
Network and System             San Diego, CA 92019
   Consulting                   Cell 858-518-7581 FAX 858-751-2435
Web: papowell at astart dot com




More information about the Xml-compile mailing list