ReadmeHTML.xsl revision 5543ca2fb9cca478984a31170fc19fc01592bfd7
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<?xml version="1.0" encoding="iso-8859-1"?>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<!--
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk The contents of this file are subject to the terms
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk of the Common Development and Distribution License
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk (the License). You may not use this file except in
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk compliance with the License.
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk You can obtain a copy of the License at
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk https://opensso.dev.java.net/public/CDDLv1.0.html or
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk opensso/legal/CDDLv1.0.txt
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk See the License for the specific language governing
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk permission and limitations under the License.
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk When distributing Covered Code, include this CDDL
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk Header Notice in each file and include the License file
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk at opensso/legal/CDDLv1.0.txt.
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk If applicable, add the following below the CDDL Header,
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk with the fields enclosed by brackets [] replaced by
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk your own identifying information:
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk "Portions Copyrighted [year] [name of copyright owner]"
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk $Id: ReadmeHTML.xsl,v 1.4 2008/08/19 19:15:12 veiming Exp $
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk-->
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:output method="html" encoding="iso-8859-1"/>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="/sample"/>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="/sample">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:text disable-output-escaping='yes'>&lt;!doctype html public "-//w3c//dtd html 4.0 transitional//en">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:text>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<html xmlns="http://www.w3.org/1999/xhtml">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<head>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <title>OpenSSO - Samples</title>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <link rel="stylesheet" href="{@relativePath}/sample.css" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</head>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800080">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<table cellspacing="8" cellpadding="4" border="0" width="100%" >
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<tr nowrap="yes">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<td class="bannerContentLeft" width="20%" align="center"><a href="http://www.sun.com"><img border="0" src="{@relativePath}/sunLogo.gif" /></a></td>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<td class="bannerContentCenter" width="60%" valign="bottom" nowrap="yes">OpenSSO<br />Sample</td>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<td class="bannerContentRight" width="20%" valign="bottom" nowrap="yes">&#160;</td>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</tr>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</table>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<table cellspacing="8" cellpadding="4" border="0" width="100%">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<tr>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<td>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<p><xsl:apply-templates select="parentagepaths"/></p>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<h2><xsl:value-of select="@title" /></h2>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:apply-templates select="section" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</td>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</tr>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</table>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<hr noshade="yes" size="1" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenkEnd of Sample
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</body>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</html>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="section">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<p>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<hr noshade="yes" size="1" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<h3><xsl:value-of select="position()" />. <xsl:value-of select="@title" /></h3>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:apply-templates select="paragraph" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:apply-templates select="note" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</p>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="parentagepaths">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="path">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:with-param name="node-count" select="count(/path)" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:apply-templates>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="path">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:param name="node-count" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="not(position() = $node-count)">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <a href="{@link}"><xsl:value-of select="@label" /></a>&#160;>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="position() = $node-count">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <a href="{@link}"><xsl:value-of select="@label" /></a>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="paragraph">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <p>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="not(orderedlist) and not(unorderedlist)">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:copy-of select="text() | *" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="orderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="orderedlist" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="unorderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="unorderedlist" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </p>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="note">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <blockquote>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="not(orderedlist) and not(unorderedlist)">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <b>NOTE:</b> <xsl:copy-of select="text() | *" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="orderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="orderedlist" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:if test="unorderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="unorderedlist" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </xsl:if>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </blockquote>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="orderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <ol>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="item" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </ol>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="unorderedlist">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <ul>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <xsl:apply-templates select="item" />
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk </ul>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk<xsl:template match="item">
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk <li><xsl:copy-of select="text() | *" /></li>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:template>
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk
5543ca2fb9cca478984a31170fc19fc01592bfd7jeff.schenk</xsl:stylesheet>