Project

Profile

Help

Revision 6304fb8b

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fixes and development work

View differences:

latest10/hec/Saxon.C.API/Xslt30Processor.h
25 25
 */
26 26
class Xslt30Processor {
27 27

  
28
    friend class XsltExecutable;
29

  
28 30
public:
29 31

  
30 32
    //! Default constructor.
......
90 92
     * to another.
91 93
     *
92 94
     * @param name  the name of the stylesheet parameter, as a string. For namespaced parameter use the JAXP solution i.e. "{uri}name"
93
     * @param value the value of the stylesheet parameter, or null to clear a previously set value
95
     * @param value the value of the stylesheet parameter, or nullptr to clear a previously set value
94 96
     * @param _static For static (compile-time) parameters we set this flag to true, which means the parameter is
95 97
     * must be set on the XsltCompiler object, prior to stylesheet compilation. The default is false. Non-static parameters
96 98
     * may also be provided.
......
162 164
     * @param  filename - If the filename argument is present then the xsl:message output is appended to the given
163 165
     *                    filename with location cwd+filename
164 166
     */
165
    void setupXslMessage(bool show, const char* filename=NULL);
167
    void setupXslMessage(bool show, const char* filename=nullptr);
166 168

  
167 169

  
168 170

  
......
171 173
     * The result is stored in the supplied outputfile.
172 174
     *
173 175
     * @param sourcefile - The file name of the source document
174
     * @param stylesheetfile - The file name of the stylesheet document. If NULL the most recently compiled stylesheet is used
176
     * @param stylesheetfile - The file name of the stylesheet document. If nullptr the most recently compiled stylesheet is used
175 177
     * @param outputfile - The file name where results will be stored
176 178
     */
177 179
    void transformFileToFile(const char* sourcefile, const char* stylesheetfile, const char* outputfile); 
......
181 183
     * The result is returned as a string
182 184
     *
183 185
     * @param sourcefile - The file name of the source document
184
     * @param stylesheetfile - The file name of the stylesheet document. If NULL the most recently compiled stylesheet is used
186
     * @param stylesheetfile - The file name of the stylesheet document. If nullptr the most recently compiled stylesheet is used
185 187
     * @return char array - result of the transformation
186 188
     */
187 189
    const char * transformFileToString(const char* sourcefile, const char* stylesheetfile);
......
190 192
     * Perform a one shot transformation. The result is returned as an XdmValue
191 193
     *
192 194
     * @param sourcefile - The file name of the source document
193
     * @param stylesheetfile - The file name of the stylesheet document. If NULL the most recently compiled stylesheet is used
195
     * @param stylesheetfile - The file name of the stylesheet document. If nullptr the most recently compiled stylesheet is used
194 196
     * @return XdmValue - result of the transformation
195 197
     */
196 198
    XdmValue * transformFileToValue(const char* sourcefile, const char* stylesheetfile);
......
281 283

  
282 284
     //! Check for exception thrown.
283 285
	/**
284
	* @return cha*. Returns the exception message if thrown otherwise return NULL
286
	* @return cha*. Returns the exception message if thrown otherwise return nullptr
285 287
	*/
286 288
    const char* checkException();
287 289

  
......
306 308

  
307 309

  
308 310

  
311

  
312

  
313

  
309 314
private:
310 315
	SaxonProcessor* proc;/*! */
311 316
	jclass  cppClass;
......
314 319
	bool tunnel, jitCompilation;
315 320
	std::map<std::string,XdmValue*> parameters; /*!< map of parameters used for the transformation as (string, value) pairs */
316 321
    SaxonApiException * exception;
322

  
323

  
317 324
};
318 325

  
319 326

  

Also available in: Unified diff