in reply to Preserve Entity References in XSLT using XML::LibXSLT

I'll let you in on a secret, http://search.cpan.org/grep?cpanid=SHLOMIF&release=XML-LibXSLT-1.94&string=expand&i=1&n=1&C=0
t/06entities.t 12:# $parser->expand_entities(1); t/15misc.t 17: $parser->expand_entities(0);

Replies are listed 'Best First'.
Re^2: Preserve Entity References in XSLT using XML::LibXSLT
by admiral_grinder (Pilgrim) on Nov 09, 2015 at 13:50 UTC

    Thanks, but I'm not seeing a solution in these. The 06entities test has the entity in the XSLT itself, but it looks like the engine is outputting the character instead of the entity.

    In the 15misc test, the first block is reading in a xml doc that has an entity, but the XSLT isn't outputing it. I'm not sure why this test exists though because it is not testing anything from the output of the transform.

    So the expand entities work when I'm trying to normalize my source xml for easier diffs, but I need the entities to show up in the output xml as is.