XML/XSL

This section includes information for using XML and XSL within the context of OU Campus. Pages include overview topics, reference and tutorials regarding specific usages of XSL elements, XPath, conditional statements, transforming content, and dynamic indexing.

Introduction to XML

XML (eXtensible Markup Language) is a configurable vehicle for any kind of information that can be used to store and organize data. Although the name may suggest XML to be a markup language, XML is not itself a markup language; it is a set of rules for building markup languages. For more information:

Introduction to XML

Introduction to XSL

XSL (eXtensible Stylesheet Language) is a style sheet language for XML documents. Just like CSS is used to tell the browser how to display an element in a special design, font or color, XSL is used to describe how the XML document should be displayed (transformed). For more information:

Introduction to XSL

XSL Elements Reference

From "if" to "when" and "otherwise," this reference page includes syntax, in-context, and output examples. For more information:

XSL Elements Reference

Introduction to XPath

XPath (XML Path Language) is a language used to address parts of an XML document. XPath models an XML document as a tree and XPath locator syntax uses core functions based on the node hierarchy of a document, and evaluates expressions to determine a location object. For more information:

Introduction to XPath

System Defined XPath Functions

Explore the use of system-defined XPath functions:

System Defined XPath Functions

OU Campus XSLT Variables

OU Campus provides a number of XSLT variables that help developers create XSL templates:

OU Campus XSLT Variables

XSL Functions

XSL functions allow developers to create stylesheet functions that can be called from any XPath expression used in the stylesheet. This topic provides the syntax for xsl:function and function examples. For more information:

XSL Functions

Using XSL Conditional Statements and Recursions

XSLT allows different approaches to recursion. Examines the use of xsl:template (match) and xsl:for-each, developers to perform recursive tasks. For more information:

XSL Conditional Statements and Recursions

Creating LDP Image Galleries in XSL

XSL can be utilized to create a new Image Gallery Asset as well as how to create additional outputs for the galleries in the XSL, where to place the corresponding files, and how to allow a desired selection of a gallery output for a particular page. For more information:

Creating LDP Image Galleries in XSL

Using XSL to Transform Content

XSL can be used to transform content. Learn how to create a code snippet and have it transform its contents into a pre-styled or pre-structured HTML widget:

Using XSL to Transform Content

Transforming External Data Sources into XSL

XSL allows developers to fetch external documents to be parsed and processed to create new transformed content. There are two XSLT functions that allow developers to achieve this goal — xsl:doc and xsl:unparsed-text. For more information:

Transforming External Data Sources into XSL

Dynamic Indexing with XSL

Using dynamic indexing involves taking pages with matching node structures (PCF files) and compiling the data into a faculty index page. This technique utilizes XSL to query each PCF file and obtain the information to display. For more information:

Dynamic Indexing with XSL