[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Converting &, >, <, ", and other odd-ball characte
Mike writes: > Does this have *anything* to do with XSLT? If not, it does not > belong on this list. I'm sorry Mike. I read this particular thread: http://www.biglist.com/lists/xsl-list/archives/200102/msg00825.html and since it is similar in scope and no qualms were raised about it then, I assumed asking this question to this list would be okay. > Please read up on character encoding, what a character reference is, > and what an entity reference is. You seem to be confused about them. > As for why the behavior changed when you changed JDKs, it's probably > because some code you haven't shown us is relying on a platform > default encoding somewhere. > As for why "?" or its bytewise equivalent in some encoding might > appear in an encoded byte stream or Unicode string, it's because > some codecs, such as Java's, will replace unencodable characters or > undecodable bytes with a question mark. Is it possible to bypass this mechanism? I would like to pass a byte into Java and not have it modified in anyway. But, I *do* have an XSLT question to ask as and addendum. What is the best way to drive the xml input of an XSLT formatter from inside a java class? For example, let us say that I have an XSLT stylesheet that is set up to expect a certain format, and I have a java class whose data I would like to have processed by said stylesheet. It seems a waste to make a StringBuffer of things like "<?xml version='1.0'?><doc><t>x</t></doc>" and then pass it into the transformer since it would be possible to generate the SAX events from within the Java class. Looking at javax.xml.parsers.SAXParser, I notice the parse() function, but those seem to be dealing with incoming streams and not events. Thank you, Elizabeth XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|