Re: [xslt] Fwd: XML::LibXSLT bug, comments in xsl:text

On Wed, Dec 04, 2002 at 05:37:10PM +0000, Matt Sergeant wrote:
> On Wed, 4 Dec 2002, Daniel Veillard wrote:
> >     xmlLineNumbersDefault(1);
> >
> >   in the module initialization.
> Does that affect performance in any way?

  no, it just initialize one more field per element structure,
that can be neglected. The drawback would be problem with code 
checking node->content when the node type is an ELEMENT, it's
normally NULL, and the line number is stored in the pointer 
(ugly but the only way to add it without breaking the API/ABI :-\)


Daniel Veillard      | Red Hat Network  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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