diff options
Added datasource master template
* handles basic output structure
* provides XSLT standard template "text()/@*" redefinition to prevent unwanted output of unmatched elements
Diffstat (limited to 'utility')
-rw-r--r-- | utility/datasource.xsl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utility/datasource.xsl b/utility/datasource.xsl new file mode 100644 index 0000000..02b37d1 --- /dev/null +++ b/utility/datasource.xsl @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xalan="http://xml.apache.org/xalan" + xmlns:InputXSLT="function.inputxslt.application" + exclude-result-prefixes="xalan InputXSLT" +> + +<xsl:output + method="xml" + omit-xml-declaration="no" + encoding="UTF-8" + indent="yes" +/> + +<xsl:template match="data"> + <datasource> + <xsl:apply-templates /> + </datasource> +</xsl:template> + +<xsl:template match="text()|@*"/> + +</xsl:stylesheet> |