You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/11/26 18:31:06 UTC
cvs commit: xml-xalan/c/src/XSLT XSLTInputSource.cpp XSLTInputSource.hpp XSLTResultTarget.cpp XSLTResultTarget.hpp
dbertoni 2002/11/26 09:31:06
Modified: c/src/XSLT XSLTInputSource.cpp XSLTInputSource.hpp
XSLTResultTarget.cpp XSLTResultTarget.hpp
Log:
Added new constructors.
Revision Changes Path
1.19 +20 -0 xml-xalan/c/src/XSLT/XSLTInputSource.cpp
Index: XSLTInputSource.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTInputSource.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- XSLTInputSource.cpp 26 Nov 2002 16:50:53 -0000 1.18
+++ XSLTInputSource.cpp 26 Nov 2002 17:31:06 -0000 1.19
@@ -175,10 +175,30 @@
+XSLTInputSource::XSLTInputSource(const XalanDOMString& systemId) :
+ InputSource(systemId.c_str()),
+ m_stream(0),
+ m_node(0)
+{
+}
+
+
+
XSLTInputSource::XSLTInputSource(
const XMLCh* systemId,
const XMLCh* publicId) :
InputSource(systemId, publicId),
+ m_stream(0),
+ m_node(0)
+{
+}
+
+
+
+XSLTInputSource::XSLTInputSource(
+ const XalanDOMString& systemId,
+ const XalanDOMString& publicId) :
+ InputSource(systemId.c_str(), publicId.c_str()),
m_stream(0),
m_node(0)
{
1.18 +27 -0 xml-xalan/c/src/XSLT/XSLTInputSource.hpp
Index: XSLTInputSource.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTInputSource.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- XSLTInputSource.hpp 26 Nov 2002 16:50:53 -0000 1.17
+++ XSLTInputSource.hpp 26 Nov 2002 17:31:06 -0000 1.18
@@ -92,6 +92,8 @@
typedef XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType;
+
+class XalanDOMString;
class XalanNode;
@@ -142,6 +144,18 @@
*
* @param systemId system identifier (URI)
*/
+ XSLTInputSource(const XalanDOMString& systemId);
+
+ /**
+ * Create a new input source with a system identifier.
+ *
+ * <p>Applications may use setPublicId to include a public identifier as
+ * well, or setEncoding to specify the character encoding, if known.</p>
+ *
+ * <p>If the system identifier is a URL, it must be full resolved.</p>
+ *
+ * @param systemId system identifier (URI)
+ */
XSLTInputSource(const char* systemId);
/**
@@ -169,6 +183,19 @@
XSLTInputSource(
const XMLCh* systemId,
const XMLCh* publicId);
+
+ /**
+ * Create a new input source with a system identifier and a public
+ * identifier.
+ *
+ * <p>If the system identifier is a URL, it must be full resolved.</p>
+ *
+ * @param systemId system identifier (URI)
+ * @param publicId public identifier
+ */
+ XSLTInputSource(
+ const XalanDOMString& systemId,
+ const XalanDOMString& publicId);
/**
* Create a new input source with a DOM node.
1.13 +14 -0 xml-xalan/c/src/XSLT/XSLTResultTarget.cpp
Index: XSLTResultTarget.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTResultTarget.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- XSLTResultTarget.cpp 25 Nov 2002 18:11:53 -0000 1.12
+++ XSLTResultTarget.cpp 26 Nov 2002 17:31:06 -0000 1.13
@@ -105,6 +105,20 @@
+XSLTResultTarget::XSLTResultTarget(const XalanDOMChar* fileName) :
+ m_fileName(fileName),
+ m_byteStream(0),
+ m_encoding(),
+ m_characterStream(0),
+ m_document(0),
+ m_documentFragment(0),
+ m_element(0),
+ m_formatterListener(0)
+{
+}
+
+
+
XSLTResultTarget::XSLTResultTarget(const char* fileName) :
m_fileName(fileName),
m_byteStream(0),
1.20 +7 -0 xml-xalan/c/src/XSLT/XSLTResultTarget.hpp
Index: XSLTResultTarget.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTResultTarget.hpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- XSLTResultTarget.hpp 25 Nov 2002 18:11:53 -0000 1.19
+++ XSLTResultTarget.hpp 26 Nov 2002 17:31:06 -0000 1.20
@@ -115,6 +115,13 @@
*
* @param fileName valid system file name
*/
+ XSLTResultTarget(const XalanDOMChar* fileName);
+
+ /**
+ * Create a new output target with a file name.
+ *
+ * @param fileName valid system file name
+ */
XSLTResultTarget(const char* fileName);
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org