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

RE: Saxon error -999

Subject: RE: Saxon error -999
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 4 Feb 2005 23:31:00 -0000
error 999
Knowing the exception message without knowing what kind of exception it is
doesn't help much. Do an e.printStackTrace().

(Actually, I suspect an ArrayIndexOutOfBoundsException)

Also say which version you're using.

(Because I suspect a known bug in a superseded release) 

Michael Kay 

> -----Original Message-----
> From: Eder de Oliveira [mailto:eder@xxxxxxxxxxxxx] 
> Sent: 04 February 2005 14:12
> To: XSL - list
> Subject:  Saxon error -999
> 
> Hello!
> 
> My code to transformation:
> 
> private boolean transformXML(String strPFileXML, String strPFileXSL,
>    String strPArquivoSaida, String strPPathLMPL) throws Exception {
>   boolean retorno = true;
>   StreamSource xmlSource = null;
>   StreamSource xslSource = null;
>   StreamResult outSource = null;
>   TransformerFactory tFactory = null;
>   Transformer transformer = null;
>   try {
>    System.setProperty("javax.xml.transform.TransformerFactory",
>            "net.sf.saxon.TransformerFactoryImpl");
> 
>    
>    tFactory = TransformerFactory.newInstance();
>    
>    System.out.println("Processador: " + 
> tFactory.getClass().getName());
>    
>    xmlSource = new StreamSource(strPFileXML);
>    xslSource = new StreamSource(strPFileXSL);
>    outSource = new StreamResult(new FileOutputStream(strPFileSaida));
> 
> //   Templates templates = tFactory.newTemplates(xslSource);
> //         transformer = templates.newTransformer();
> 
>    transformer = tFactory.newTransformer(xslSource);
> 
>    transformer.setOutputProperty(OutputKeys.METHOD, "xml");
>    
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no");
>    transformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
>    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
>    // parametro do local do XSL
>    transformer.setParameter("directory", strPPathLMPL);
> 
>    // transforma
>    transformer.transform(xmlSource, outSource);
> 
>   } catch (Exception e) {
>    retorno = false;
>    System.out.println("Error: " + e.getMessage());
>   } finally {
>    tFactory = null;
>    transformer = null;
>    xmlSource = null;
>    xslSource = null;
>   }
>   return retorno;
>   
>  }
> 
> Problems: Exception = error: -999 ? Why?
> 
> Thanks a lot
> 
> Eder

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-2013 All Rights Reserved.