Skip to main content

 Sample Code

Some code samples

XSLT sample code

Click the following links for information on How to run XSLT from Eclipse or How to run XSLT from the command line.

Stub for a new page

Sample code to use as a stub for a new page in the layout.

<?xml version="1.0"?>
<!--
-->
<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:psf="http://www.pageseeder.com/function"
                exclude-result-prefixes="#all">

<!-- Main template -->
<xsl:template match="/content">
  <div id="ps-content-{@id}" class="content">
    <h2>[title of the page]</h2>

  </div>
</xsl:template>

</xsl:stylesheet>

 

Created on , last edited on