You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Apache Wiki <wi...@apache.org> on 2007/01/30 01:56:31 UTC

[Jakarta-taglibs Wiki] Update of "Standard1.1.3FAQ" by HenriYandell

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-taglibs Wiki" for change notification.

The following page has been changed by HenriYandell:
http://wiki.apache.org/jakarta-taglibs/Standard1%2e1%2e3FAQ

The comment on the change is:
Starting a FAQ

New page:
Q. Using string() on a complex expression in an xml tag is returning an empty string. What's up?

A. This was reported by Yuriy Yatsyk in [https://issues.apache.org/bugzilla/show_bug.cgi?id=33032 #33032] and appears to be due to some oddity in the way the Standard Taglib uses Xalan. The work around is to split your code up so that string() is applied to a simple expression. Using Yuriy's example:

Change:

{{{
<x:set var="navigationPath" 
       select="string($content/content/pages/page/url[text() = $contentUrl]/../navigation-path)" 
       scope="request"/>
}}}

to:

{{{
<x:set var="navigationPath" 
       select="$content/content/pages/page/url[text() = $contentUrl]/../navigation-path" 
       scope="request"/>
<x:set var="navigationPath" select="string($navigationPath)" scope="request"/>
}}}


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org