Complete BaseX convert module functions.

xquery version "3.0";
(:~
: BaseX convert module functions
:
: @see http://docs.basex.org/wiki/Conversion_Module
:)
module namespace convert = "http://basex.org/modules/convert";

import module namespace a = "http://reecedunn.co.uk/xquery/annotations" at "res://reecedunn.co.uk/xquery/annotations.xqy";

declare %a:since("basex", "7.3") function convert:binary-to-string($bytes as xs:anyAtomicType) as xs:string external;
declare %a:since("basex", "7.3") function convert:binary-to-string($bytes as xs:anyAtomicType, $encoding as xs:string) as xs:string external;
declare %a:since("basex", "8.5") function convert:binary-to-string($bytes as xs:anyAtomicType, $encoding as xs:string, $fallback as xs:boolean) as xs:string external;
declare %a:since("basex", "7.3") function convert:string-to-base64($string as xs:string) as xs:base64Binary external;
declare %a:since("basex", "7.3") function convert:string-to-base64($string as xs:string, $encoding as xs:string) as xs:base64Binary external;
declare %a:since("basex", "7.3") function convert:string-to-hex($string as xs:string) as xs:hexBinary external;
declare %a:since("basex", "7.3") function convert:string-to-hex($string as xs:string, $encoding as xs:string) as xs:hexBinary external;
declare %a:since("basex", "7.3") %a:until("basex", "9.0") %a:see-also("basex", "9.0", "convert:integers-to-base64") function convert:bytes-to-base64($input as xs:byte*) as xs:base64Binary (: $input [7.3]xs:byte [8.7]xs:integer :) external;
declare %a:since("basex", "9.0") function convert:integers-to-base64($integers as xs:integer*) as xs:base64Binary external;
declare %a:since("basex", "7.3") %a:until("basex", "9.0") %a:see-also("basex", "9.0", "convert:integers-to-hex") function convert:bytes-to-hex($input as xs:integer*) as xs:hexBinary (: $input [7.3]xs:byte [8.7]xs:integer :) external;
declare %a:since("basex", "7.3") function convert:integers-to-hex($integers as xs:integer*) as xs:hexBinary external;
declare %a:since("basex", "9.0") function convert:binary-to-integers($binary as xs:anyAtomicType) as xs:integer* external;
declare %a:since("basex", "7.3") function convert:binary-to-bytes($binary as xs:anyAtomicType) as xs:byte* external;
declare %a:since("basex", "7.3") function convert:integer-to-base($number as xs:integer, $base as xs:integer) as xs:string external;
declare %a:since("basex", "7.3") function convert:integer-from-base($string as xs:string, $base as xs:integer) as xs:integer external;
declare %a:since("basex", "7.5") function convert:integer-to-dateTime($milliseconds as xs:integer) as xs:dateTime external;
declare %a:since("basex", "7.5") function convert:dateTime-to-integer($dateTime as xs:dateTime) as xs:integer external;
declare %a:since("basex", "7.5") function convert:integer-to-dayTime($milliseconds as xs:integer) as xs:dayTimeDuration external;
declare %a:since("basex", "7.5") function convert:dayTime-to-integer($dayTime as xs:dayTimeDuration) as xs:integer external;

xquery version "3.0";
(:~
: BaseX convert module functions
:
: @see http://docs.basex.org/wiki/Conversion_Module
:)
module namespace convert = "http://basex.org/modules/convert";

import module namespace a = "http://reecedunn.co.uk/xquery/annotations" at "res://reecedunn.co.uk/xquery/annotations.xqy";

declare %a:since("basex", "7.3") function convert:binary-to-string($bytes as xs:anyAtomicType) as xs:string external;
declare %a:since("basex", "7.3") function convert:binary-to-string($bytes as xs:anyAtomicType, $encoding as xs:string) as xs:string external;
declare %a:since("basex", "7.3") function convert:binary-to-string($bytes as xs:anyAtomicType, $encoding as xs:string, $fallback as xs:boolean) as xs:string external;
declare %a:since("basex", "7.3") function convert:string-to-base64($string as xs:string) as xs:base64Binary external;
declare %a:since("basex", "7.3") function convert:string-to-base64($string as xs:string, $encoding as xs:string) as xs:base64Binary external;
declare %a:since("basex", "7.3") function convert:string-to-hex($string as xs:string) as xs:hexBinary external;
declare %a:since("basex", "7.3") function convert:string-to-hex($string as xs:string, $encoding as xs:string) as xs:hexBinary external;
declare %a:since("basex", "7.3") function convert:integers-to-base64($integers as xs:integer*) as xs:base64Binary external;
declare %a:since("basex", "7.3") function convert:integers-to-hex($integers as xs:integer*) as xs:hexBinary external;
declare %a:since("basex", "7.3") function convert:binary-to-integer($binary as xs:anyAtomicType) as xs:integer* external;
declare %a:since("basex", "7.3") function convert:binary-to-bytes($binary as xs:anyAtomicType) as xs:byte* external;
declare %a:since("basex", "7.3") function convert:integer-to-base($number as xs:integer, $base as xs:integer) as xs:string external;
declare %a:since("basex", "7.3") function convert:integer-from-base($string as xs:string, $base as xs:integer) as xs:integer external;
declare %a:since("basex", "7.5") function convert:integer-to-dateTime($milliseconds as xs:integer) as xs:dateTime external;
declare %a:since("basex", "7.5") function convert:dateTime-to-integer($dateTime as xs:dateTime) as xs:integer external;
declare %a:since("basex", "7.5") function convert:integer-to-dayTime($milliseconds as xs:integer) as xs:dayTimeDuration external;
declare %a:since("basex", "7.5") function convert:dayTime-to-integer($dayTime as xs:dayTimeDuration) as xs:integer external;


Use navbar-text to change footer font colour

xquery version "1.0" encoding "utf-8";

import module namespace calli = "http://callimachusproject.org/rdf/2009/framework#" at "/callimachus/layout-functions.xq";

    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,target-densityDpi=device-dpi"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="icon" href="/favicon.ico" />

    {calli:styles-href(<link rel="stylesheet" />)}
    {calli:scripts-src(

    <![endif]-->

    {calli:head-nodes()}

    {calli:body-attributes()}

                    {calli:home-href(Callimachus)}
                    <menu type="toolbar" class="nav pull-right">

                            {calli:login-href(Sign in)}

                            <menu type="list" class="dropdown-menu">

{calli:folder-href(Home folder)}

{calli:changes-href(Recent changes)}

About Callimachus

Getting started

Send feedback

                                {calli:head-links(

,
)}

{calli:whatlinkshere-href(What links here)}

{calli:relatedchanges-href(Related changes)}

{calli:permissions-href(Permissions)}

{calli:introspect-href(Introspect resource)}

Print this page

{calli:profile-href(Account)}

{calli:logout-href(Sign out)}

                            </menu>

                    </menu>

{calli:lookup-form('Lookup...')}

            {calli:breadcrumb-nav(»)}
            {calli:body-hgroup()}
            {calli:body-sidebar(
)}

                {calli:activate-nav(
                    {calli:view-href(View)}
                    {calli:edit-href(Edit)}
                    {calli:discussion-href(Discussion)}
                    {calli:describe-href(Describe)}
                    {calli:history-href(History)}
                )}

                    {calli:error-alert(

                        <button type="button" class="close" data-dismiss="alert">×</button>

Oops!

)}
                    {calli:body-nodes()}

                {calli:generator-p(
)}
                {calli:lastmod-time(
This resource was last modified at <time class="abbreviated"/>
)}