Unable to strip the namespace from DB5 document, cannot proceed Error at xsl:message on line 162 of docbook.xsl: -


i trying use xsltproc on windows , xi:include in docbook 5 document rather entities.

unfortunately windows version not support this.

saxon 9.6 , msxsl both report error:

unable strip namespace db5 document, cannot proceed error @ xsl:message on line 162 of docbook.xsl: 

i have included

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:fo="http://www.w3.org/1999/xsl/format" xmlns:d="http://docbook.org/ns/docbook"  exclude-result-prefixes="d"> 

in customisation xsl.

is there else should doing?

i have edited customisation stylesheet

<?xml version='1.0'?> 

<xsl:import href="file:///c:/docbook/docbook-xsl-ns-1.78.1/fo/docbook.xsl"/> 

and use command

>c:\docbook\saxonica\saxonhe9.5n\bin\transform  -xi -xsl:my_fo.xsl  -s:my_db.xml 

should work?

neither version of saxon 9.5 (there no 9.6 yet) nor msxsl supports exsl:node-set() extension (which required when removing namespace). saxon 9 xslt 2.0 processor means extension function not needed (see http://www.saxonica.com/documentation/html/extensions/functions/exslt.html). msxsl, need additional download (see http://www.xml.com/pub/a/2003/08/06/exslt.html).

it should work saxon 6.5.5 or xsltproc (xslt 1.0 processors).

from error message see using non-namespace-aware stylesheets. since processing docbook 5, advice switch namespace-aware stylesheets (docbook-xsl-ns, available http://sourceforge.net/projects/docbook/files/docbook-xsl-ns/). there no need namespace-stripping.

you mention using xi:include. problems xinclude unrelated namespace-stripping issue. not sure mean "this" when "the windows version not support this".

see also:


Comments