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



Actually, I wasn't expecting the HTML serializer to have access to 
entities defined in the template, only for the template to have access 
to the entities defined in the template. Turns out, this fixed my 
problem:

ctxt->replaceEntities = 1;

The earlier versions of the libraries didn't require this.

I guess I wasn't clear enough in my statement of the issue, as you 
addressed an issue that I'm not having in your reply. I know that I 
"cannot expect this to work," and don't.

Thanks,

Michael


On Wednesday, August 20, 2003, at 03:17 AM, Daniel Veillard wrote:

> 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
>
> -- 
> Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
> veillard@redhat.com  | libxml GNOME XML XSLT toolkit  
> http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt




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