Troubleshooting

Handling Problems with an Unrecognized Namespace

My processor doesn’t recognize the namespace I’ve declared in my code.

In creating your style sheets, you must declare the XSL namespace. Usually that namespace is given the xsl: alias. Your declaration in either your <stylesheet> or <transform> element includes

xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” 

One problem you might encounter is that older processors do not support the current XSLT specification. So, when you use this namespace declaration, you receive an error.

Some of the namespaces that have been used by earlier processors include

xmlns:xsl = “http://www.w3.org/TR/WD-xsl” 
xmlns:xsl = “http://www.w3.org/XSL/Transform/1.0” 

Your best defense against this problem ...

Get Special Edition Using XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.