src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.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 *
*** 30,40 **** import java.io.BufferedOutputStream; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.util.ArrayList; import java.util.Enumeration; - import java.util.Vector; import javax.xml.transform.Templates; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.DOMImplementation; import javax.xml.parsers.ParserConfigurationException; --- 32,41 ----
*** 49,58 **** --- 50,60 ---- import com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter; import com.sun.org.apache.xalan.internal.xsltc.dom.KeyIndex; import com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory; import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; import com.sun.org.apache.xml.internal.serializer.SerializationHandler; + import com.sun.org.apache.xml.internal.serializer.ToStream; /** * @author Jacek Ambroziak * @author Santiago Pericas-Geertsen * @author Morten Jorgensen
*** 72,82 **** public boolean _isStandalone = false; public String _doctypePublic = null; public String _doctypeSystem = null; public boolean _indent = false; public String _mediaType = null; ! public Vector _cdata = null; public int _indentamount = -1; public static final int FIRST_TRANSLET_VERSION = 100; public static final int VER_SPLIT_NAMES_ARRAY = 101; public static final int CURRENT_TRANSLET_VERSION = VER_SPLIT_NAMES_ARRAY; --- 74,84 ---- public boolean _isStandalone = false; public String _doctypePublic = null; public String _doctypeSystem = null; public boolean _indent = false; public String _mediaType = null; ! public ArrayList<String> _cdata = null; public int _indentamount = -1; public static final int FIRST_TRANSLET_VERSION = 100; public static final int VER_SPLIT_NAMES_ARRAY = 101; public static final int CURRENT_TRANSLET_VERSION = VER_SPLIT_NAMES_ARRAY;
*** 640,662 **** /** * Add's a name of an element whose text contents should be output as CDATA */ public void addCdataElement(String name) { if (_cdata == null) { ! _cdata = new Vector(); } int lastColon = name.lastIndexOf(':'); if (lastColon > 0) { String uri = name.substring(0, lastColon); String localName = name.substring(lastColon+1); ! _cdata.addElement(uri); ! _cdata.addElement(localName); } else { ! _cdata.addElement(null); ! _cdata.addElement(name); } } /** * Transfer the output settings to the output post-processor --- 642,664 ---- /** * Add's a name of an element whose text contents should be output as CDATA */ public void addCdataElement(String name) { if (_cdata == null) { ! _cdata = new ArrayList<>(); } int lastColon = name.lastIndexOf(':'); if (lastColon > 0) { String uri = name.substring(0, lastColon); String localName = name.substring(lastColon+1); ! _cdata.add(uri); ! _cdata.add(localName); } else { ! _cdata.add(null); ! _cdata.add(name); } } /** * Transfer the output settings to the output post-processor