Comments (5)
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.
from qtspecs.
let $n as xs:integer := function($input as xs:integer) as xs:integer { $input + 3 }(12) return $n * 2;
from qtspecs.
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.
In BaseX, we introduced the keywords promote to
to make the conversion of function arguments and return values explicit.
from qtspecs.
Related Issues (20)
- XSLT: system-property('xsl:xpath-version')
- fn:format-dateTime: Properties
- fn:json-to-xml: `number-parser` option HOT 1
- `??type(T)` in lookup expressions - shortcuts
- for member allowing empty HOT 2
- Allow sequence constructor in extension instructions that are implemented with named templates HOT 1
- Add a new function `fn:html-doc` HOT 2
- XSLT: add xsl:switch to list of instructions within which whitespace is ignored
- Add decimal-divide function
- fn:apply() - contradiction in spec
- Could the labeling of grammar productions be improved? HOT 2
- Schema validation in XPath HOT 1
- Add xsl:value-of/@as attribute HOT 13
- Generalize for-each-pair to work with any number of input sequences HOT 2
- Further refinement of fn:round() HOT 1
- Declare named record types
- Line endings in unparsed-text-lines() HOT 1
- invisible-xml() return type HOT 2
- Build issue: Unsupported specref to [streamability-fn-distinct-ordered-nodes] HOT 4
- Appendix H of F&O should mention change for unrecognised option parameters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtspecs.