---
title: "XSLT"
source: https://dev.pageseeder.com/reference/sample_code/xslt.html
last_updated: 2026-08-11T16:10:01+10:00
tokens: ~210
---

# XSLT sample code

Click the following links for information on [How to run XSLT from Eclipse](/get_started/tutorials/how_to_run_xslt_from_eclipse.md) or [How to run XSLT from the command line](/get_started/tutorials/how_to_run_xslt_from_the_command_line.md).

## Stub for a new page

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

```xml

<?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>
```

 

