[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Saxon is an XSLT processor, not an XML parser. So you can't instantiate Saxon as a SAXBuilder.
You can instantiate Saxon as a JAXP TransformerFactory: for Saxon-HE the class name is net.sf.saxon.TransformerFactoryImpl. But since JAXP doesn't have support for XSLT 2.0 features, I would encourage you to use Saxon's s9api interface instead.
On 02/12/2010 07:30, Jack Bush wrote:
Re: [xsl] Syntax on XML parser?
Subject: Re: [xsl] Syntax on XML parser? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Thu, 02 Dec 2010 09:21:50 +0000 |
Saxon is an XSLT processor, not an XML parser. So you can't instantiate Saxon as a SAXBuilder.
You can instantiate Saxon as a JAXP TransformerFactory: for Saxon-HE the class name is net.sf.saxon.TransformerFactoryImpl. But since JAXP doesn't have support for XSLT 2.0 features, I would encourage you to use Saxon's s9api interface instead.
Michael Kay Saxonica
On 02/12/2010 07:30, Jack Bush wrote:
Hi All,
What is the syntax to reference Saxon (9.1) parser when reading XML document?
Below is an example when using Xerces parser:
c SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser",
false);
Also like to find out what is the default parser used by JAXP such as the
following:
SAXBuilder builder = new SAXBuilder(false);
Thanks,
Jack
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Syntax on XML parser?, Jack Bush | Thread | Re: [xsl] Syntax on XML parser?, Jack Bush |
[xsl] Syntax on XML parser?, Jack Bush | Date | Re: [xsl] Syntax on XML parser?, Jack Bush |
Month |