Re: [xslt] unparsed-entity-uri bug?



On Tue, Apr 10, 2001 at 08:55:16PM +0200, Thomas Broyer wrote:
> 
> Le 10/04/01 19:15:33, Daniel Veillard a écrit :
> > > <xsl:when test="unparsed-entity-uri(@figname)">
> > > 
> > > When I use xsltproc, I got this error:
> > > 
> > > unparsed-entity-uri() : invalid arg expecting a string
> > 
> >   Hum, 
> > 
> > http://www.w3.org/TR/xslt#function-unparsed-entity-uri
> > 
> > the spec defines
> >   "Function: string unparsed-entity-uri(string)"
> > 
> > -------------------
> > The unparsed-entity-uri returns the URI of the unparsed entity with the
> > specified name in the same document as the context node (see [3.3
> > Unparsed
> > Entities]). It returns the empty string if there is no such entity.
> > -------------------
> > 
> >   I think my implementation follows the spec, but differs from existing
> > implementations which silently transform the node set into its string()
> > value.
> 
> In http://www.w3.org/TR/xpath#section-Function-Calls :
> 3.2 Function Calls
> A FunctionCall expression is
 evaluated by using the FunctionName to
> identify a function in the expression evaluation context function
 library,
> evaluating each of the Arguments,
 converting each argument to the type
> required by the function, and
 finally calling the function, passing it the
> converted arguments.
> 
> So libxslt is buggy.

  Hum, right I forgot this would apply to XSLT functions too, I will just remove
the warning then, and check other XSLt functions.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]