Advanced XSL Concepts Transforming External Data Sources Vinit Varghese Implementation Manager,...

Post on 15-Jan-2016

215 views 0 download

Tags:

transcript

Advanced XSL Concepts Transforming External Data Sources

Vinit VargheseImplementation Manager, OmniUpdate

Agenda

OU Campus Page Templates & PCFxsl:docxsl:unparsed-textInjecting ParametersUse CaseQ&A

Template StructurePRODUCTION

STAGING

EXtensible Stylesheet Language(XSL)

xsl:docdoc(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-textunparsed-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

Don’t forget to take our survey

outc15.com/surveys

Thank you!