< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Parser.java
Print this page
*** 1,8 ****
/*
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
! * @LastModified: Sep 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
--- 1,8 ----
/*
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
! * @LastModified: Nov 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*** 431,441 ****
try {
// Parse the input document and build the abstract syntax tree
reader.setContentHandler(this);
reader.parse(input);
// Find the start of the stylesheet within the tree
! return (SyntaxTreeNode)getStylesheet(_root);
}
catch (IOException e) {
if (_xsltc.debug()) e.printStackTrace();
reportError(ERROR,new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR, e));
}
--- 431,441 ----
try {
// Parse the input document and build the abstract syntax tree
reader.setContentHandler(this);
reader.parse(input);
// Find the start of the stylesheet within the tree
! return getStylesheet(_root);
}
catch (IOException e) {
if (_xsltc.debug()) e.printStackTrace();
reportError(ERROR,new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR, e));
}
*** 666,676 ****
if ((new File(location)).exists())
source = new InputSource("file:"+location);
else
source = new InputSource(location);
! SyntaxTreeNode external = (SyntaxTreeNode)parse(source);
return(external);
}
private void initAttrTable(String elementName, String[] attrs) {
_instructionAttrs.put(getQName(XSLT_URI, XSL, elementName).getStringRep(),
--- 666,676 ----
if ((new File(location)).exists())
source = new InputSource("file:"+location);
else
source = new InputSource(location);
! SyntaxTreeNode external = parse(source);
return(external);
}
private void initAttrTable(String elementName, String[] attrs) {
_instructionAttrs.put(getQName(XSLT_URI, XSL, elementName).getStringRep(),
< prev index next >