Project

Profile

Help

Bug #3251 ยป check.xpath.xsl

Nick Nunes, 2017-06-09 00:48

 
<?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:test="test"
xmlns:Boolean="java:java.lang.Boolean"
xmlns:Configuration="java:net.sf.saxon.Configuration"
xmlns:Processor="java:net.sf.saxon.s9api.Processor"
xmlns:XPathCompiler="java:net.sf.saxon.s9api.XPathCompiler"
exclude-result-prefixes="xs"
version="3.0">
<xsl:template name="main">
<xsl:variable name="xpath" as="xs:string" select="'1'"/>
<!--<xsl:variable name="processor" select="Processor:new(true())"/>-->
<!--<xsl:variable name="processor" select="Processor:new(Boolean:TRUE())"/>-->
<xsl:variable name="processor" select="Processor:new(Configuration:new())"/>
<xsl:variable name="xpathcompiler" select="Processor:newXPathCompiler($processor)"/>
<xsl:sequence select="XPathCompiler:compile($xpathcompiler,$xpath)"/>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)