SAX: How to get hold of character references

J

Jan van Mansum

Hello group,

I have the following problem. I am trying to write an XSLT source code
formatter as an exercise. My problem is that the parser (Xalan in my
case) expands the character references (such as
for a newline).
However, I would my source code formatter to keep the character
reference unchanged. I know how to solve this problem for entity
references, but I don't know if there is a way to get hold of the
character references used.

Thanks in advance,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top