> > | $ ./msxsl.exe manual.xml xsl/html.xsl > > | Error occurred while compiling stylesheet 'xsl/html.xsl'. > > | Code: 0x80004005 > > | The xsl:apply-imports instruction may only occur within an > > | xsl:template instruction with a match attribute, and may not > > | occur within an xsl:for-each instruction. > > | Error occurred during compilation of included or imported > > | stylesheet 'chunk-common.xsl'. > > > > Nor %instructions;, nor %result-elements; contain apply-templates, > > as possible children, so MSXML is right here, and chunk-common.xsl > > is not conforming to the XSLT DTD as presented in Appendix C of > > the XSLT spec. > > XSLT spec doesn't say that apply-imports can't be used in template > without match pattern.
OK, as said before, the error message was a fake, but apply-imports is truly used in contexts (when and otherwise), where the DTD attached to the spec do not allow it to be. > Default parser in Saxon has this sort of bug, which hadn't been > completely fixed up to now. You can use Saxon with other then default > parser -- look at http://www.kosek.cz/xml/saxon/ how to change parser > used by Saxon. I think I'll try > > I also searched up XT, but it is quite old, and not updated > > since 1999 as I can see. I have not downloaded xalan, as thought, > > one of the programs above should work. :(( > > XT doesn't work with DocBook stylesheets, because it doesn't support > full XSLT spec. Well, it's listed in the howto ;) I'll remove it. > You can use xsltproc also under Windows > > http://www.fh-frankfurt.de/~igor/projects/libxml/index.html I'll check this out as soon as I have sufficient time. I am currently working on a quite ugly regular expression based implementation to generate newchm output. I am quite ready with it, only some errors are left... > > this prog is not a solution for general phpdoc needs, it would > > be enough for CHM related tasks, if I can get it working... > > It wouldn't, because MSXML doesn't support output to multiple files. OK, I'll check out libxslt on windows, and figure out how to apply a quickfix to configure to make paths absolute just for testing saxon... Goba