PB9 Data Window XML
PB9 Data Window XML
0
> Angelo Scipione Staff S/W Engineer Sybase, Enterprise Solutions Div. Scipione@sybase.com
Agenda
Review of XML
Extensible Markup Language
XML Document
XML Parsing
DOM Parser
drink
Orange Juice
> Defines the mapping between values from a DataWindow and locations in an external document format, like XML
> References can be: > DataWindow control values (text)
Columns Computed Fields
Texts
> Comments
> Processing instructions > CDATA sections
Optionally contains:
> XML declaration (dialog) > Document type declaration (dialog) > Comments (dialog) > Processing instructions (dialog) > Root element (required) > Child elements (non-iterative)
Attributes Dialog
View Features
> Item-specific context menus, label-editing & dialogs
Delete
Default Template
Contains:
Describe argument:
DataWindow.Export.XML.TemplateCount
Describe argument:
DataWindow.Export.XML.Template[ + n + ].Name
XML!
15
XML
Describe argument:
DataWindow.Data.XML
Describe argument:
DataWindow.Data.XMLSchema
Describe argument:
DataWindow.Data.XMLDTD
> Piggybacks off of Export XML Template to interpret the logical structure and DataWindow mapping of XML document to import > Uses SAX parser for performance
> DataWindow Import methods enhanced
string filename {, long startrow {, long endrow {, long startcolumn {, long endcolumn {, long dwstartcolumn }}}}} )
long dwcontrol.ImportString ( { saveastype importtype, } string string {, long startrow {, long endrow {, long startcolumn {, long endcolumn {, long dwstartcolumn }}}}} ) long dwcontrol.ImportClipboard ( { saveastype importtype {, long startrow {, long endrow {, long startcolumn {, long endcolumn {, long dwstartcolumn }}}}}} )
XSL-FO Generator
XSL Formatting Objects > Second part of XSL W3C Recommendation covering presentation of XML > Spec at http://www.w3.org/TR/xsl/slice6.html#fo-section > XSL-FO processors can render to PDF > Apache XML FOP Project
> http://xml.apache.org/fop
Describe argument:
DataWindow.Data.XSLFO