XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (675 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
13.26Mb size Format: txt, pdf, ePub
undeclare-prefixes
This attribute only comes into effect when you specify
version=“1.1”
. XML Namespaces 1.1 introduces the ability to
undeclare
a namespace. It's always been possible to undeclare the default namespace, using the syntax
xmlns=“”
, but now you can also undeclare a namespace with a specific prefix, using the syntax
xmlns:pfx=“”
.
The result tree created by an XSLT 2.0 processor may have a namespace that is in scope for a particular element, but not in scope for its children. This is most likely to happen if you create the element using the option
inherit-namespaces=“no”
. The strict way to serialize such a tree is to generate namespace undeclarations on the child elements. However, the serializer does not do this by default, because these undeclarations may cause a lot of unwanted clutter in the output document. Instead, you have to request them explicitly by setting this attribute to
yes
.
use-character-maps
The value of this attribute is a list of character map names; these character maps must be defined in the stylesheet. The serializer will use the named character maps to translate specific characters into the strings given in the character map. For further details, see page 941.
version
This attribute indicates the version of XML to be used in the output document. This can be
1.0
or
1.1
. The XSLT specification requires only one of these versions to be supported: The thinking was that early in the life of XSLT 2.0, many implementations would only support XML 1.0, but in five years' time, there might be vendors who wanted only to support XML 1.1. As already mentioned, support for a particular version of XML also implies support for the corresponding version of XML Namespaces.

Other books

Nancy and Nick by Caroline B. Cooney
Plunder of Gor by Norman, John;
The Willows and Beyond by William Horwood, Patrick Benson, Kenneth Grahame
Always A Bride by Henderson, Darlene
The Towers of Samarcand by James Heneage
Nebraska by Ron Hansen
Hard to Get by Emma Carlson Berne
Vivaldi's Virgins by Quick, Barbara
Love You Anyways by Mj Fields
Nobody Saw No One by Steve Tasane