- From: Yves Savourel <ysavourel@enlaso.com>
- Date: Thu, 4 Oct 2012 13:58:28 -0600
- To: <public-multilingualweb-lt@w3.org>
Hi Felix, all, > - If no "domain mapping" attribute is given, the value > coming out of evaluating "domainPointer" is just passed to the application > > - If a "domain mapping" attribute is given and the evaluation EDP of > the XPath "domainPointer" leads to a list of values: > 1) map each value from EDP that has a mapping in "domain mapping" > to the consumer specific values > 2) pass all other values to the application > > - If a "domain mapping" attribute is given and the evaluation EDP > of the XPath "domainPointer" leads to one value that contains > 2C KOMMA: > 0) split the value of EDP into separate values, > using KOMMA as a separator > apply steps 1)-2) as before. Do you mean NODESET by EDP? Then if I understand correctly, you are saying that the result of the pointer would be a comma delimited list of strings (and possibly just one). Would this the following algorithm corresponds to what you have in mind? Get the list of nodes resulting of the evaluation of the XPath "domainPointer" Set the result as a empty string Then for each node: If there is a domaninMapping attribute: If the node value has a comma: Split the node value into separate strings using the comma as separator For each string: Search for a mapping, add the corresponding value to the result if one is found Otherwise add the string itself to the result Else: Search for a mapping, add the corresponding value to the result if one is found Otherwise add the string itself to the result Else: Add the value to the result value Return the result I assume the list of returned value should be single quoted if the values has spaces (since they can domainMapping) -yves
Received on Thursday, 4 October 2012 19:58:59 UTC