Get Advanced XML applications from the experts at the XML Guild PDF

Note that you didn’t have to explicitly include the xsl namespace in that list. It’s the one exception for literal result elements: the XSLT namespace is not automatically copied to the result. If for some reason you need the XSLT namespace in the result (and if you aren’t already generating an element or attribute in the XSLT namespace), you would have to explicitly copy a namespace node for the XSLT namespace.

Its default value is yes. 0 doesn’t have the copy-namespaces attribute, there are other ways to get the result that you want. One way is to use a literal result element instead of , like this:

A more generic approach (which can be extended to match more than just

elements) uses the instruction to “replicate” rather than copy the element, using the same local name and namespace URI: This rule ensures that the resulting element will have the same local name and namespace URI as the context element in the source tree, but it won’t end up with any unnecessary namespaces, because it’s not actually copying the element from the source tree.

0 to use the exact namespace prefix that you specify. In any case, the trick is to create a temporary element whose namespace is determined at runtime. This causes a namespace node to be created, which you can then access and copy into the result tree. 0 is a solution to the schema fix-up problem introduced in the last section. org/common"> 33 QQQ CHAPTER 1 } XML Namespaces Download PDF sample

Advanced XML applications from the experts at the XML Guild by The XML Guild


by Jason
4.5

Rated 4.95 of 5 – based on 42 votes