xquery/XQuery__DmLibrary.st
author Patrik Svestka <patrik.svestka@gmail.com>
Wed, 14 Nov 2018 13:13:37 +0100
changeset 306 fb9d45df523b
parent 296 ea3dbc023c80
permissions -rw-r--r--
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present - All source *.st files are now Unicode UTF8 without BOM Files are in two groups (fileOut works this way in Smalltalk/X): - containing a unicode character have "{ Encoding: utf8 }" at the header - ASCII only are without the header

"{ Package: 'stx:goodies/xmlsuite/xquery' }"

"{ NameSpace: XQuery }"

SmalltalkFunctionLibrary subclass:#DmLibrary
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'XQuery-Libraries'
!


!DmLibrary class methodsFor:'function library API'!

namespaceURI
    "Superclass XQuery::FunctionLibrary class says that I am responsible to implement this method"

    ^'http://www.w3.org/TR/xpath-datamodel'.

    "Modified: / 19-04-2009 / 19:16:41 / Jan Kurs <kursj1@fel.cvut.cz>"
! !

!DmLibrary methodsFor:'dm:*'!

nodeKindInContext: context withParameters: parameters forInterpreter: interpreter
    self assert: parameters size = 1.

    ^XQuerySequence withText: (parameters first first item dmNodeKind).

    "Created: / 19-04-2009 / 18:53:06 / Jan Kurs <kursj1@fel.cvut.cz>"
! !

!DmLibrary methodsFor:'function library API'!

defaultPrefix
    "Superclass XQuery::FunctionLibrary says that I am responsible to implement this method"

    ^'dm'

    "Modified: / 19-04-2009 / 18:46:35 / Jan Kurs <kursj1@fel.cvut.cz>"
!

functionLocalNames
    "Superclass XQuery::FunctionLibrary says that I am responsible to implement this method"

    ^#(
        attributes
        #'base-uri'
        children
        document-uri
        is-id
        is-idrefs
        namespace-nodes
        namespace-bindings
        nilled
        #'node-kind'
        node-name
        parent
        string-value
        type-name
        typed-value
        unparsed-entity-public-id
        unparsed-entitysystem-id
    )

    "Modified: / 19-04-2009 / 18:54:12 / Jan Kurs <kursj1@fel.cvut.cz>"
! !

!DmLibrary class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !