You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/10/03 13:03:09 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax XSLTCSource.java

morten      01/10/03 04:03:09

  Modified:    java/src/org/apache/xalan/xsltc/trax XSLTCSource.java
  Log:
  Fix to recently added XSLTCSource (DOMImpl wrapped in a TrAX Source).
  PR:		n/a
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.2       +6 -1      xml-xalan/java/src/org/apache/xalan/xsltc/trax/XSLTCSource.java
  
  Index: XSLTCSource.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/XSLTCSource.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSLTCSource.java	2001/10/03 09:53:31	1.1
  +++ XSLTCSource.java	2001/10/03 11:03:09	1.2
  @@ -1,5 +1,6 @@
  +
   /*
  - * @(#)$Id: XSLTCSource.java,v 1.1 2001/10/03 09:53:31 morten Exp $
  + * @(#)$Id: XSLTCSource.java,v 1.2 2001/10/03 11:03:09 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -149,6 +150,9 @@
   	    // Make sure that the system id is set before proceding
   	    if (systemId == null) throw new SAXException(NO_SYSTEM_ID_ERR);
   
  +	    // Use this method in case we need to prepend 'file:' to url
  +	    setSystemId(systemId);
  +
   	    // Create an input source for the parser first, just in case the
   	    // systemId is invalid. We don't want to waste time creating a SAX
   	    // parser before we know that we actually have some valid input.
  @@ -189,6 +193,7 @@
   	    final SAXParserFactory factory = SAXParserFactory.newInstance();
   	    final SAXParser parser = factory.newSAXParser();
   	    final XMLReader reader = parser.getXMLReader();
  +
   	    build(reader, systemId);
   	}
   	catch (ParserConfigurationException e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org