Using XSLT to Format Output tutorial
Using XSLT to Format Output Using XSLT to Format Output

## XSLT Example

- This example uses an XSLT to customize a view of a table.
- The XSL demonstrates xsl:output to create the output.
- The http_xslt() does not make the XSL-T transformation. It only registers the content as XML such that when the document is requested by the client, the server will transform it with XSL-T.

## Example explained

- string_output () - creates a string session.
- select ... for xml auto element - Is the SQL/XML query over target table(s).
- xml_auto() - This executes the above query, and stores the resultant XML document (entities) in the string session allocated by string_output().
- string_output_string() - converts the string session to 'normal' string.
- http_xslt() - defines the XSL-T stylesheet for transformation of the XML content, which is stored in internal string session of the Web server.