Re: [xslt] expand entities



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 03 June 2002 11:28 am, Daniel Veillard wrote:
> > There's a strange interaction between libxslt and libxml2's
> > expandEntitiesDefaultValue flag. If you do XSLT on a stylesheet DOM that
> > hasn't had it's entities expanded, then the entity gets completely
> > dropped.
...
> >
> > Is this a bug, or do you just always have to have entity expansion turned
> > on?
>
>   the latter, the XPath engine do not deal with entities references in the
> tree so asking the parser to expand the entities is needed. On the other
> hand this is doable on a case by case basis without forcing the global
> setting to always turn expansion on, this requires to use a lower layer
> in the libxml2 parsing API where the user code has access to the parser
> context (where the replacement flag can be turned on).

OK, since when using the perl library I can't be sure what flags someone 
specified when they built their DOM, is there any way I can go through and 
expand the entities on a DOM that has been passed to me?

- -- 
<:->get a SMart net</:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE8+3IIVBc71ct6OywRAhOTAKDcL9UTwQc2h0llay2Wnro8UvHpagCdEIKj
enfML7GUB8pPaPs8kNKfPXE=
=zaxZ
-----END PGP SIGNATURE-----



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