1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<!--
-
- This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
- project.
-
- Copyright (C) 1998-2006 OpenLink Software
-
- This project is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; only version 2 of the License, dated June 1991.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="VS-X-2">
<refmeta>
<refentrytitle>Using XSLT to Format Output</refentrytitle>
<refmiscinfo>tutorial</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Using XSLT to Format Output</refname>
<refpurpose>Using XSLT to Format Output</refpurpose>
</refnamediv>
<refsect1 id="VS-X-2a">
<title>XSLT Example</title>
<itemizedlist mark="bullet">
<listitem>This example uses an XSLT to customize a view of a table.</listitem>
<listitem>The XSL demonstrates xsl:output to create the output.</listitem>
<listitem>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.</listitem>
</itemizedlist>
</refsect1>
<refsect1 id="VS-X-2b">
<title>Example explained</title>
<itemizedlist mark="bullet">
<listitem>string_output () - creates a string session.</listitem>
<listitem>select ... for xml auto element - Is the SQL/XML query over target table(s).</listitem>
<listitem>xml_auto() - This executes the above query, and stores the resultant XML document (entities) in the string session allocated by string_output().</listitem>
<listitem>string_output_string() - converts the string session to 'normal' string.</listitem>
<listitem>http_xslt() - defines the XSL-T stylesheet for transformation of the XML content, which is stored in internal string session of the Web server.</listitem>
</itemizedlist>
</refsect1>
</refentry>
|