At LDS last week, I noted that they use a "publicationLanguage" element,
and tried to nudge them toward using xml:lang attributes instead. They
have content in several languages, but have not yet installed any
non-English license options.
But I ran into a problem with cts:element-values(), for facets: how can
I ensure that the facets are measuring elements in the right language?
Here's a simplified test case, which illustrates the problem:
cts:contains(
<div xml:lang="fr">
<p>chat</p>
</div>,
cts:element-attribute-value-query(
xs:QName('p'), xs:QName('xml:lang'), 'fr')
)
=> false
I would like to find a similar cts:query that returns true for an
element that would be indexed as 'lang=fr'.
Noting that cts:word-query() takes xs:string*, I also tried this:
cts:contains(
<div xml:lang="en">
<p xml:lang="fr">chat</p>
</div>,
cts:word-query((), 'lang=fr')
)
=> false
I don't believe cts:element-query() supports the lang=XX option, but
that might make sense as an RFE.
The workaround, of course, is to keep using publicationLanguage (along
with xml:lang). Other thoughts?
-- Mike
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general