Illegal attribute 'xpath-default-namespace'. when we run the xsl code we get the error like xpath-default-namespace with version 2.0.
can anyone tell me what is the issue and how I can resolve the issue?
CodePudding user response:
The issue is that you are using an XSLT processor that does not support XSLT 2.0.
Also it seems it doesn't recognise XSLT 1.0 "forwards compatibility mode". If it did, then it would simply ignore this attribute, rather than reporting it as an error.
You have two ways forward: either stick to XSLT 1.0 constructs, or find yourself an XSLT 2.0 (or 3.0) processor that works in your chosen environment.