170 likes | 350 Views
XML, Xpath and XSLT. Greg Alvord Senior Data Architect, RealEC David Krause AVP, Radian Guaranty June 4, 2012. Agenda. Overview Xpath XSLT Real World Scenarios Background on system layout Routing rules Translation between two defined formats Avoid system customization
E N D
XML, Xpath and XSLT Greg Alvord Senior Data Architect, RealEC David Krause AVP, Radian Guaranty June 4, 2012
Agenda • Overview • Xpath • XSLT • Real World Scenarios • Background on system layout • Routing rules • Translation between two defined formats • Avoid system customization • Prevent semantic loss
Overview • Xpath • Syntax for defining individual pieces of an XML document using path-based expressions • Allows for navigating through XML document and applying collection of built-in functions
Overview • XSLT • EXtensible Stylesheet Language Transformation • XSLT is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML • Can add/remove elements and attributes to/from the appropriate output file • Sort • Perform calculations/logic • XML navigation based on XPath
Message Routing for Generic Endpoints • Generic endpoint for all Origination transactions • Rely on either message level or payload level information to route accordingly
Translation Between Formats • Convert external standard format to internal to be consumed by downstream application • Logic can be simple 1-to-1 mapping OR more complex If…Then or Choice logic
Avoid Application Customization • Often times a trading partner will not adhere to all integration requirements • Ideal to isolate these “one-offs” • Prevent from leaking into the base application • Execute a pre-process translation to clean up the XML
Avoid Losing Message Granularity/Relevance • Internal organization requirements vs. trading partner requirement may result in conflict • Similar to avoiding application customization, can place translation right before message leaves network
Questions? Greg Alvord Senior Data Architect RealEC Technologies gregory.alvord@RealEC.com David Krause AVP Client Services Radian Guaranty, Inc david.krause@radian.biz