The value of the <encodings></encodings> is to allow the lookup by name of the
code. e.g.
<foo>{$encchars:encoding//encoding[@name = "Acirc"]}</foo>
I did not do a map, because I wanted it to be in XQuery 1.0 to be useful to all
code.
Loren Cahlander
CTO | Easy Meta Hub LLC.
4819 Emperor Blvd, Suite 400, Durham, NC 27703
651-747-6910 | [email protected]
<mailto:[email protected]> |
https://www.linkedin.com/in/lorencahlander
<https://www.linkedin.com/in/lorencahlander> | @lcahlander
www.easymetahub.com <http://www.easymetahub.com/>
> On Jul 8, 2017, at 12:17 AM, Jason Hunter <[email protected]> wrote:
>
> Very nice!
>
> What's the value of the <encodings> I see in the module source?
>
> -jh-
>
>> On Jul 8, 2017, at 01:17, Loren Cahlander <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> An XQuery function module has been created for the unicode character
>> encodings at:
>>
>> https://gist.github.com/lcahlander/b040744256b81f881c583169e4f7b4d0
>> <https://gist.github.com/lcahlander/b040744256b81f881c583169e4f7b4d0>
>>
>> Here is some example code using the module:
>>
>> xquery version "1.0";
>>
>> import module namespace encchars="http://w3.org/encoded/characters
>> <http://w3.org/encoded/characters>" at "/encchars.xqy";
>>
>> <foo>{$encchars:dagger}{$encchars:Dagger}</foo>
>>
>>
>>
>> Loren Cahlander
>>
>> CTO | Easy Meta Hub LLC.
>>
>> 4819 Emperor Blvd, Suite 400, Durham, NC 27703
>> 651-747-6910 | [email protected]
>> <mailto:[email protected]> |
>> https://www.linkedin.com/in/lorencahlander
>> <https://www.linkedin.com/in/lorencahlander> | @lcahlander
>> www.easymetahub.com <http://www.easymetahub.com/>
>> _______________________________________________
>> General mailing list
>> [email protected] <mailto:[email protected]>
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general