OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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();


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/19/2012 04:30 PM, Jirka Kosek wrote:
> 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.

Thanks, that does the trick. Yes, it's puzzling that the other
preprocessing functions work fine without this.

>> 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.

Ok, thanks. I want to use normalize to have the autoglossary code
invoked.

> Let me know if you hit any problems. I wrote this code 2 years ago
> and not used it since then.

I notice that the preprocessing steps are only used by the monolithic
html xsls and not by chunk.xsl. I'll take a stab at moving it over to
chunk.xsl as well.

David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP4PVRAAoJEMHeSXG7afUhu7QH/1b6PDtfnVNgEeRKXhEpvGcz
+ZceXMtstWid1Fwx1iyznvTlQ7OECJAdLMBJkfiu4oulnIFfB8nGLn59DH+QoMGv
Hwxx0ejQUtLhXnEqxKUq6RJ3x9lWIfhKV+Yqf4S/7rmAekVo388Tog9LOtHvnLjn
hc36g5s3A8sGwwHG0XsPFqi/I3CNeoLUhnfi2hALZNXaO+exzZRU++jQnJ8Xj9M1
PmLZXGDx4d1ymsEtIVAGzXcRor9jRCV6fbuqOWv+bHxKDWGyc8VbZGFgUGB5tMQO
sV5zJ5FSC50tww4Gtg/OPj+8sM7rPjYzbR1DLQnfy2w5lTL0YkstYULIQiKThZA=
=AL48
-----END PGP SIGNATURE-----


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]