This post discusses namespaces in XML documents and XSLT 1.0 stylesheets. In particular, it demonstrates a number of techniques to control namespace prefixes and declarations in outputted documents.
|
|
||
|
This post discusses namespaces in XML documents and XSLT 1.0 stylesheets. In particular, it demonstrates a number of techniques to control namespace prefixes and declarations in outputted documents. Suppose you want to convert the contents of an element into HTML making each line of text a separate paragraph. To do this you need to have a way of splitting the element text into a series of strings using newline (‘/n’) as the delimiter. This post demonstrates how to do this using both XSLT1 and XSLT2 processors. A frequent requirement when transforming XML documents is to remove some or all of a document namespaces. This post demonstrates how to remove all namespaces in a document or retain certain namespaces. |
||
|
Copyright © 2005-2013 Finnbarr P. Murphy. All Rights Reserved. Powered by WordPress & Atahualpa |
||