[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Error from DocBook xsls: XTTE0780: Required item type of result of function f:normalize() is document-node();
On 19.6.2012 22:14, David Cramer wrote: > I get the following error: > > Error on line 31 of 4-normalize.xsl: > XTTE0780: Required item type of result of function f:normalize() is > document-node(); Hi David, I have fixed this in https://github.com/docbook/xslt20-stylesheets/commit/929bf17e5017a9c71b9adec947424cc0949d9522 but I still don't understand why error is raised in the first place. > I'm still trying to get my head around the way the xsls do > preprocessing, but I thought I'd see if anybody has seen this error. Look at xslt/base/common/preprocess.xsl. There is function f:preprocess which applies pipeline of preprocessing steps. In order to improve performance only steps enabled by preprocess parameter are applied. Preprocessing steps are done in a fixed order, and there are two steps for doing user-defined document massage -- preprofile and postprofile. By default those are just identities. Let me know if you hit any problems. I wrote this code 2 years ago and not used it since then. HTH, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]