Getting rid of unwanted namespace declarations with XSLT
Use the exclude-result prefix to get rid of unwanted declarations
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:mc="http://www.airwings.org/register/"
xmlns:informatii="http://www.airwings.org/info/"
xmlns:FR="myPrefix://just.for.fun/java.io.FileReader"
xmlns:BR="xalan://java.io.BufferedReader"
exclude-result-prefixes="FR BR">
In the above example, the myPrefix://just.for.fun/java.io.FileReader and xalan://java.io.BufferedReader declarations will not be copied.
Written by Koen De Waele
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Xml
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#