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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to