src/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerImpl.java

Print this page

        

*** 1,13 **** /* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* ! * Copyright 2001-2004 The Apache Software Foundation. ! * ! * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * --- 1,15 ---- /* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* ! * 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. The ASF licenses this file ! * to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
*** 38,48 **** import java.net.URLConnection; import java.net.UnknownServiceException; import java.util.Enumeration; import java.util.Properties; import java.util.StringTokenizer; ! import java.util.Vector; import java.lang.reflect.Constructor; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; --- 40,50 ---- import java.net.URLConnection; import java.net.UnknownServiceException; import java.util.Enumeration; import java.util.Properties; import java.util.StringTokenizer; ! import java.util.ArrayList; import java.lang.reflect.Constructor; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException;
*** 1082,1092 **** } } else if (name.equals(OutputKeys.CDATA_SECTION_ELEMENTS)) { if (value != null) { StringTokenizer e = new StringTokenizer(value); ! Vector uriAndLocalNames = null; while (e.hasMoreTokens()) { final String token = e.nextToken(); // look for the last colon, as the String may be // something like "http://abc.com:local" --- 1084,1094 ---- } } else if (name.equals(OutputKeys.CDATA_SECTION_ELEMENTS)) { if (value != null) { StringTokenizer e = new StringTokenizer(value); ! ArrayList<String> uriAndLocalNames = null; while (e.hasMoreTokens()) { final String token = e.nextToken(); // look for the last colon, as the String may be // something like "http://abc.com:local"
*** 1102,1116 **** uri = null; localName = token; } if (uriAndLocalNames == null) { ! uriAndLocalNames = new Vector(); } // add the uri/localName as a pair, in that order ! uriAndLocalNames.addElement(uri); ! uriAndLocalNames.addElement(localName); } handler.setCdataSectionElements(uriAndLocalNames); } } } --- 1104,1118 ---- uri = null; localName = token; } if (uriAndLocalNames == null) { ! uriAndLocalNames = new ArrayList<>(); } // add the uri/localName as a pair, in that order ! uriAndLocalNames.add(uri); ! uriAndLocalNames.add(localName); } handler.setCdataSectionElements(uriAndLocalNames); } } }