[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: adding element in with general namespace prefix
If I could clarify Wendell's response a little: XSLT 1.0 in general
allows the XSLT processor (or more specifically, the serializer) to use
whatever prefixes it wants - though in practice, processors only take
advantage of this in edge cases. XSLT 2.0 makes the choice of prefix
predictable in the vast majority of cases: for example if you have a
literal result element <p:xyz> in the stylesheet, then the prefix p will
be used in the output. The reason for this change is two-fold: firstly,
XML is designed to be human-readable, and prefixes matter to human
readers. Secondly, prefixes can be used in content, for example the
infamous xsi:type="my:ownType". This only works if there is a
declaration for the prefix "my" in the document, so the XSLT author
needs to be able to guarantee that "my" will not be replaced by "your".
Michael Kay Saxonica On 08/02/2012 22:01, Wendell Piez wrote: Ram,
|
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
|