Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
is correct HTML, though it would not be correct in XML, because of the ampersand character. To produce this output from a literal result element, the tag in the stylesheet would need to be written as | : note the double curly braces, to prevent them being interpreted with their special meaning in attribute value templates. A common source of anxiety with HTML output is the use of ampersands in URLs. For example, suppose you want to generate the output: However you try to produce this using standard XSLT, the ampersand will always come out as Although the serializer won't generally check that the result tree is valid HTML, there is one exception: it must not use characters that are allowed in XML but not in HTML, notably Unicode characters in the range x80 to x9F. If these characters appear in your XML, the chances are that they got there by accident. Microsoft's cp1252 character set (sometimes called ![]() BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
2.22Mb size Format: txt, pdf, ePub
ads
Other booksGooney Bird on the Map by Lois Lowry He Who Lifts the Skies by Kacy Barnett-Gramckow Mathilde 02 - The Poison Maiden by Paul Doherty Johnny Marr by Richard Carman Wicked Innocence by Missy Johnson Kaspar and Other Plays by Peter Handke Swing (Tidals & Anchors MC Book 1) by Olson, Yolanda Code Orange by Caroline M. Cooney Ally or Alien: A Sci-Fi Novel by Dorian, Mars Lust (The Stripped Bare Series Book 1) by McKenzie, Elle |