Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Preserve Entity References in XSLT using XML::LibXSLT

by Anonymous Monk
on Nov 06, 2015 at 23:48 UTC ( [id://1147143]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1147143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found