Project

Profile

Help

RE: How to specify the xsd schema used to validate with s... » validate.xsl

Alex Muir, 2014-04-04 11:50

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:saxon="http://saxon.sf.net/" xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<validation_result>
<xsl:value-of select="map:get(saxon:validate(.),'valid')"/>
</validation_result>
</xsl:template>
</xsl:stylesheet>
(3-3/3)