xsl-list
[Top] [All Lists]

Re: [xsl] Syntax on XML parser?

2010-12-02 06:28:44
Thanks Michael for clarifying the differences between a parser & 
transformation, and the functionality Saxon provide. So what is the default 
parser when using SAXBuilder(false) without specifying a parser?

Thanks again,

Jack


----- Original Message ----
From: Michael Kay <mike(_at_)saxonica(_dot_)com>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Sent: Thu, 2 December, 2010 8:21:50 PM
Subject: Re: [xsl] Syntax on XML parser?

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:
     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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or 
e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>