[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Syntax on XML parser?

Subject: Re: Syntax on XML parser?
From: Jack Bush <netbeansfan@xxxxxxxxxxxx>
Date: Thu, 2 Dec 2010 04:28:28 -0800 (PST)
Re:  Syntax on XML parser?
Thanks Michael for clarifying the differences between a parser &
transformation,B andB 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@xxxxxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Sent: Thu, 2 December,
2010 8:21:50 PM
Subject: Re:  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,
>B  What is the syntax to reference Saxon (9.1) parser when
reading XML document?
> Below is an example when using Xerces parser:
> cB 
B  SAXBuilder builder = new 
SAXBuilder("org.apache.xerces.parsers.SAXParser",
> false);
>B  Also like to find out what is the default parser used by JAXP
such as the
> following:
>B  B  B  B  SAXBuilder builder = new
SAXBuilder(false);
>B  Thanks,
> Jack
> 
> 
> 
> 
>
--~------------------------------------------------------------------
>
XSL-List info and archive:B  http://www.mulberrytech.com/xsl/xsl-list
> To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or
e-mail:<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.