[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: differentiation between text() and entities???
Continuing Z. Uzmi's thread: >Interestingly and surprisingly, if I match on html tag and write html tag >to the output, I get the desired result but I really don't want to write >the output enclosed between <html> and </html>. I am unable to get a good >explanation of this behavior. Did you look at the three methods of xsl:output in Chapter 16 of the spec? There is a special case where the outermost tag is <html>, which your example seems to invoke. If you want to generate HTML, use xsl:output to specify that method, and then the processor will make use of special code for HTML output. If you want to generate plain text, set method="text" in xsl:output. Either way, your choice of encoding for the output will affect what happens to any #169 characters that are destined to be inserted in the output stream. For example, if you say <xsl:output method="text" encoding="ISO-8859-1"/> then the processor should be willing to put out characters 128-255 in direct binary form, because you told it that whatever will use this output will understand ISO-8859-1 encoding. .................David Marston 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
|