Re: [xslt] entity substitution... broken?

On Tue, Aug 19, 2003 at 10:52:39PM -0400, Michael Rothwell wrote:
> I have a template file that defines a number of entities used in the 
> templates. If one of the entities isn't there, errors are generated 
> because the entity cannot be resolved. All well and good. But if the 
> entity is there, it doesn't make it into the (html) output. This program 
> worked either earlier versions of the Win32 Libxml2 and libxslt 
> libraries, and I can't find the magic switch. Any suggestions?

  The HTML serializer does not have access to the entities informations
found in your original document.
Reread the XPath and XSLT specifications, the XSLT engine does not have
access to entities informations, all references have been removed and
replaced, and the definitions are not part of the XPath data model.
 You cannot expect this to work.
If you think I'm wrong, provide examples and point me to the parts of
the specification you think libxml2/libxslt violates which allows you
to state that they "don't work".


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]