Re: [xslt] Question about white space output



On Thu, Apr 10, 2003 at 06:46:53PM +0200, srperan@sherlock.dif.um.es wrote:
>
> [...]
>
> This is the basic code for the parsing :
> int XSLTProcess::convert() {
>   // process the input file and get the converted file through stdout
> 
>  xsltStylesheetPtr cur;
>  xmlDocPtr doc, res;
>  const char *params[16 + 1];
> 
>  params[0] = NULL;
> 
> 
> 
>  //Read the stylesheet
>    cur = xsltParseStylesheetFile(inputXSLFile);
> 
>  //Get the xmlDoctr
>   doc = inputXMLTree.getXMLDoc();
> 
>  //  if (cur == NULL)
>  //    cout << "hola mundo\n\n";
> 
>  //Apply stylesheet
>   res = xsltApplyStylesheet(cur, doc, params);
> 
>  //and save the output file

Why don't you start up your debugger and set a breakpoint on the following
function? Once debugger stops at the call to this function you can step
in and have a look at the (xmlChar *) 'encoding' (the pointer gets set by
the macro XSLT_GET_IMPORT_PTR which expands to a while loop that iterates
through the linked list of imported stylesheets).


>   xsltSaveResultToFile(stdout, res, cur);


hth Ralf Mattes





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]