зеркало из https://github.com/mozilla/pjs.git
updated to support changes to String.h/cpp
This commit is contained in:
Родитель
d4f206d32c
Коммит
004985f4fa
|
@ -3,25 +3,25 @@
|
|||
* License Version 1.1 (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.mozilla.org/MPL/
|
||||
*
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
*
|
||||
* The Original Code is TransforMiiX XSLT processor.
|
||||
*
|
||||
*
|
||||
* The Initial Developer of the Original Code is The MITRE Corporation.
|
||||
* Portions created by MITRE are Copyright (C) 1999 The MITRE Corporation.
|
||||
*
|
||||
* Portions created by Keith Visco as a Non MITRE employee,
|
||||
* (C) 1999 Keith Visco. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Contributor(s):
|
||||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: transformiix.cpp,v 1.2 1999-11-15 07:12:46 nisheeth%netscape.com Exp $
|
||||
* $Id: transformiix.cpp,v 1.3 2000-03-31 07:11:29 kvisco%ziplink.net Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@ -92,7 +92,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
//-- open XML file
|
||||
chars = new char[xmlFilename->length()+1];
|
||||
ifstream xmlInput(xmlFilename->toChar(chars), ios::in);
|
||||
ifstream xmlInput(xmlFilename->toCharArray(chars), ios::in);
|
||||
delete chars;
|
||||
|
||||
//-- create document base
|
||||
|
@ -104,7 +104,7 @@ int main(int argc, char** argv) {
|
|||
ofstream resultFileStream;
|
||||
if ( outFilename ) {
|
||||
chars = new char[outFilename->length()+1];
|
||||
resultFileStream.open(outFilename->toChar(chars), ios::out);
|
||||
resultFileStream.open(outFilename->toCharArray(chars), ios::out);
|
||||
delete chars;
|
||||
if ( !resultFileStream ) {
|
||||
cout << "error opening output file: " << *xmlFilename << endl;
|
||||
|
@ -119,7 +119,7 @@ int main(int argc, char** argv) {
|
|||
else {
|
||||
//-- open XSL file
|
||||
chars = new char[xslFilename->length()+1];
|
||||
ifstream xslInput(xslFilename->toChar(chars), ios::in);
|
||||
ifstream xslInput(xslFilename->toCharArray(chars), ios::in);
|
||||
delete chars;
|
||||
xslProcessor.process(xmlInput, xslInput, *resultOutput, documentBase);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче