← Prev in month ← Prev in thread

character references in parameter values

From
Bob Stayton <>
Date
2007-11-03T19:22:59+00:00
ID
08c701c81e4e$e048d110$6400a8c0@totoro
Thread
character references in parameter values
I have just noticed that when I pass in a text string as a parameter on the 
command line, any character references are escaped. For example:

   &#x2021;

becomes

   &amp;#x2021;

In my output, I get the literal string "&#x2021;" instead of my special 
character.

This seems to be the case with both xsltproc and saxon.  If the parameter 
is defined inside the stylesheet, then the ampersand is *not* escaped and 
the character is properly interpreted.  This seems inconsistent, but maybe 
I'm missing something.

Does anyone know of a way to pass in a text string as a parameter on the 
command line without escaping the ampersands in the character references?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
← Prev in month ← Prev in thread