<title>XSL Variation</title>

<table-of-contents/>

<p>Stylesheets can format the same page in several different styles.
One view can be a fancy formatted HTML page.  Another can be a plain
printable page.  A third might be a WAP view.  Or you may have
multiple styles for different sections in a site.

<p>The <a href='../view_source.jsp?xsl/vary.xtp'>XML source</a> of
this page has two different views: fancy and plain.

<ul>
<li>Look at the <a href='vary.xml'>fancy formatting</a> 
<li>Or look at the <a href='vary.xml?plain'>plain formatting</a>
</ul>

<p>The <a
href='../view_source.jsp?xsl/WEB-INF/classes/xsl/Dispatch.java'>dispatch
servlet</a> for *.xml files looks for a /plain extension.  The servlet
sets the <var>caucho.xsl.stylesheet</var> attribute and forwards the page to an
*.xtp page.

<ul>
<li><a href='../view_source.jsp?xsl/WEB-INF/xsl/plain.xsl'>plain.xsl</a>
<li><a href='../view_source.jsp?xsl/WEB-INF/xsl/default.xsl'>default.xsl</a>
(<a href='../view_source.jsp?xsl/WEB-INF/xsl/copy.xsl'>copy.xsl</a>,
<a href='../view_source.jsp?xsl/WEB-INF/xsl/header.xsl'>header.xsl</a>,
<a
href='../view_source.jsp?xsl/WEB-INF/xsl/content.xsl'>content.xsl</a>)
</ul>