This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the query below, the first call to normalize-space expects string?, but the actual argument is statically typed as string*. (:*******************************************************:) (:Test:fn-normalize-space0args-1:) (:Written By:Joanne Tong:) (:Date:2005-09-23T15:54:03-04:00:) (:Purpose:Test normalize-space without argument:) (:*******************************************************:) (: insert-start :) declare variable $input-context external; (: insert-end :) $input-context//doc/normalize-space(a[normalize-space() = 'Hello, How are you?'])
Hey Tim: Thanks for the comment. Looks as though this test is intended to work as written and usage of the context item. Please comment further if you need. Thanks, Carmelo
a[normalize-space() = 'Hello, How are you?']) has type string* $input-context//doc/normalize-space( string* ) fails to typecheck. The test should be: $input-context//doc/normalize-space(zero-or-one(a[normalize-space() = 'Hello, How are you?'])) to avoid static typing errors.
Hey Tim: Test fixed as suggested. Thanks, Carmelo