Re: [xml] Debugging included entites

On Thu, Jan 10, 2002 at 05:20:16PM +1000, Keith Isdale wrote:
Hi all,

I wonder, since the only node that has a line number is XML_ELEMENT_NODE, and 
the only data (that I'm aware of ) that the content variable holds  for a 
XML_ELEMENT_NODE is a (void*)long

Would it be possible to change the meaning of the content variable to point 
to a structure instead of just a (void*)long

  This would mean that for all the element nodes in the tree a new structure
is allocated. Sorry, too heavy.


The other possiblity I just thought of is adding a "xsldbg:uri" attribute to 
the entity nodes.

  Sounds like a good solution. but not for the entity nodes. For the element
integrated from the external entity. Normal attributes in the XML sense.
This would just fail to work if people used external parsed entities to
include top text nodes (which can't hold attributes).
  Sounds actually a lot like xml:base

I'm not sure how much this would slow down libxslt 

  This would be done only when running under the XSLT debugger and performances
are not from my point of view a problem there.

processing. This would mean xmlAddEntityReference, 
xmlSetEntityReferenceFunc, xmlEntityReferenceFunc be added to libxml

  Adding entities nodes will not work with XPath. Adding an attribute
value at the insertion point would need a single callback adding API.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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