>>>>> "Bob" == Bob Stayton <[EMAIL PROTECTED]> writes:
Bob> I have just noticed that when I pass in a text string as a
Bob> parameter on the command line, any character references are
Bob> escaped. For example:
Bob> ‡
Bob> becomes
Bob> &#x2021;
Bob> In my output, I get the literal string "‡" instead of
Bob> my special character.
Bob> This seems to be the case with both xsltproc and saxon.
And Gestalt too.
Bob> If the parameter is defined inside the stylesheet, then the
Bob> ampersand is *not* escaped and the character is properly
Bob> interpreted. This seems inconsistent, but maybe I'm missing
Bob> something.
Yes, I think you are.
If the parameter is defined inside the stylesheet, then it is part of
an XML document, and so is read by the XML parser as a character
reference.
If the value is given on the command line as a string, then it is just
text. No XML parser will be invoked.
--
Colin Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]