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
11.62Mb 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

Hannah Howell by A Taste of Fire
Patchouli For Christmas by Bren Christopher
Bachelor Boys by Kate Saunders
Tomorrow They Will Kiss by Eduardo Santiago
Passion Ignited by Katalyn Sage
The Third Horror by R.L. Stine
Convalescence by Nickson, Chris
The Laird by Blair, Sandy