[xslt] xmlXPathOrderDocElems and presevring line numbes
- From: Keith Isdale <k_isdale tpg com au>
- To: Daniel Veillard <veillard redhat com>
- Cc: xslt <xslt gnome org>
- Subject: [xslt] xmlXPathOrderDocElems and presevring line numbes
- Date: Mon, 7 Jul 2003 00:19:34 +1000
Hi Daniel,
I have been experimenting with xsldbg under Mac OSX with the latest version of
libxslt and found that libxslt now makes used of xmlXPathOrderDocElems. These
changes cause the xsldbg be unable to have breakpoints on a given document
node because the line number information has been discarded.
Would you please add an addtional condition to the calls to the
xmlXPathOrderDocElems function. I have attached diff for the your reference
that provides an example of what I mean.
regards,
Keith
--
Keith Isdale
http://sourceforge.net.projects/xsldbg | xsldbg helping understand
stylesheets
http://xsldbg.sourceforge.net
*** transform.c~ 2003-07-07 00:08:49.000000000 +1000
--- transform.c 2003-07-07 00:08:05.000000000 +1000
***************
*** 3715,3721 ****
*/
root = xmlDocGetRootElement(doc);
if (root != NULL) {
! if (((long) root->content) >= 0)
xmlXPathOrderDocElems(doc);
}
--- 3715,3721 ----
*/
root = xmlDocGetRootElement(doc);
if (root != NULL) {
! if (((long) root->content) >= 0 && (xslDebugStatus == XSLT_DEBUG_NONE))
xmlXPathOrderDocElems(doc);
}
*** documents.c~ 2003-07-07 00:11:08.000000000 +1000
--- documents.c 2003-07-07 00:10:07.000000000 +1000
***************
*** 210,216 ****
*/
if (xsltNeedElemSpaceHandling(ctxt))
xsltApplyStripSpaces(ctxt, xmlDocGetRootElement(doc));
! xmlXPathOrderDocElems(doc);
ret = xsltNewDocument(ctxt, doc);
return(ret);
--- 210,217 ----
*/
if (xsltNeedElemSpaceHandling(ctxt))
xsltApplyStripSpaces(ctxt, xmlDocGetRootElement(doc));
! if (xslDebugStatus == XSLT_DEBUG_NONE)
! xmlXPathOrderDocElems(doc);
ret = xsltNewDocument(ctxt, doc);
return(ret);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]