Hi Team, As Florent Georges mentioned , the XML Spec clearly says , if xml:lang specified in the given XML Element , it must follow the given language standard , unless otherwise , it will be overridden by new xml:lang for the same element .
" The language specified by xml:lang applies to the element where it is specified (including the values of its attributes), and to all elements in its content unless overridden with another instance of xml:lang. In particular, the empty value of xml:lang is used on an element B to override a specification of xml:lang on an enclosing element A, without specifying another language. Within B, it is considered that there is no language information available, just as if xml:lang had not been specified on B or any of its ancestors. Applications determine which of an element's attribute values and which parts of its character content, if any, are treated as language-dependent values described by xml:lang. " Thanks and regards Raja >>> -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Thursday, June 25, 2015 5:58 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Indexing strategy for attributes when using xdmp:xlst-invoke On 25 June 2015 at 13:26, David Lee wrote: > The docs are pretty clear that the xml:lang affects the language of > the *child text* of elements, The XML spec says <http://www.w3.org/TR/REC-xml/#sec-lang-tag>: The language specified by xml:lang applies to the element where it is specified (including the values of its attributes) Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
