quote:Originally posted by mhkay
Another possibility is to replace an entity reference &ent; with a construct such as
<?ent-start ent?>&ent;<?ent-end ent?>
If your transformation preserves the processing instructions, then a post-processing phase could reinstate the entity reference.
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
I've been fighting the same problem the last few days. I see your work-around is superior to mine. I've been trying to come up with all the pattern combinations to edit the output of the parser back.
Is there any point in suggesting a parser have the option to preserve entity references, rather than translating them? I am using Access to export a straightforward table as XML and using XSLT to do the final XML with attributes properly assigned to elements. Or is the problem that once the "value-of select..." result returns, the parsing is too far advanced to make this translation?
Harlan R. Cohen, MBA, CPIM