Giter Site home page Giter Site logo

xsl:sequence: @as about qtspecs HOT 5 OPEN

liamquin avatar liamquin commented on June 19, 2024 2
xsl:sequence: @as

from qtspecs.

Comments (5)

rhdunn avatar rhdunn commented on June 19, 2024 1

The promote to keywords should be a separate proposal, as that applies to XPath and XQuery, and would be a new feature. We can decide to make this @as XSLT extension equivalent to using promote to if both proposals are accepted.

from qtspecs.

yamahito avatar yamahito commented on June 19, 2024

from qtspecs.

liamquin avatar liamquin commented on June 19, 2024

let $n as xs:integer := function($input as xs:integer) as xs:integer { $input + 3 }(12) return $n * 2;

from qtspecs.

michaelhkay avatar michaelhkay commented on June 19, 2024

We have "treat as" and "cast as" in XPath, but neither does exactly the same as the "as" attribute in XSLT (that is, so-called "function coercion"). We could introduce "coerce as" as a third option. But would anyone actually use it?

(I don't know whether "as" on its own would parse OK, it looks as if it would, but I've been wrong before.)

from qtspecs.

ChristianGruen avatar ChristianGruen commented on June 19, 2024

In BaseX, we introduced the keywords promote to to make the conversion of function arguments and return values explicit.

from qtspecs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.