Advanced XSL Concepts Transforming External Data Sources Vinit Varghese Development Manager, OmniUpdate
Agenda OU Campus Page Templates & PCF xsl:doc xsl:unparsed-text Injecting Parameters What’s new in XSL 3.0 Use Case Q&A
Template Structure New Page Components XSL XSL .TMPL .PCF XSL .TCF .TMPL .XML .XML .TMPL .INC .INC
EXtensible Stylesheet Language(XSL) XSL .PCF
xsl:doc doc(href) <xsl:template match="/"> <xsl:copy-of select=”doc(‘http://example.com/sample.xml’)”/> </xsl:template> Attribute – href(mandatory): The URI used to locate the document to be loaded and has to be valid XML.
xsl:unparsed-text unparsed-text(href) <xsl:template match="/"> <xsl:copy-of select=” unparsed- text(‘http://example.com/sample.csv’)”/> </xsl:template> Attribute – href(mandatory): The URI used to locate the document to be loaded.
..more • doc-available()- a way to avoid the errors returned by the fn:doc function if a document is not available. • unparsed-text-available ()- checks if an an external resource (for example, a file) is available
Let’s Do It!
Q&A
Thank you! Don’t forget to take our survey outc16.com/surveys
Recommend
More recommend