Comments (4)
Why is that better than just making the node available?
from qtspecs.
The node is available anyway; capture="yes"
in this case is logically a no-op. The only question is, its presence suggests some kind of misunderstanding on the users' part, so should we flag it?
from qtspecs.
It's an interesting question. I can imagine enabling capture even when I'm using a rule that matches, say, a text node. Possibly because there are other rules that match trees and I'm being careless. But flagging things that suggest a misunderstanding of what an expression is going to do certainly has benefits. "Whaddya mean that's...oooohhh!"
from qtspecs.
Someone who writes <xsl:accumulator-rule match="node()[string-length(.) lt 5]" phase="end" capture="yes">
would not appreciate an error for matches on a text node, no?
from qtspecs.
Related Issues (20)
- Remove the `$position` argument from the `$action` function passed to folds HOT 26
- Drop the static typing feature HOT 1
- Bare brace ambiguity resolution in practice HOT 16
- Typos in fn:format-number
- The escape-solidus option should apply to xml-to-json HOT 1
- Grammar rules: redundancies HOT 1
- Nothing HOT 67
- unparsed-text-available() signature
- declare item type → item-type
- Names of private functions in XQuery library modules HOT 4
- Rendering of new vs. updated features HOT 3
- map:get and array:get HOT 34
- Occurrence indicator meaning "exactly one" HOT 8
- In the EBNF, use explicit separator syntax HOT 1
- Further improvements to BuiltInKeywords test needed HOT 4
- fn:round: `rounding-mode` → `mode`? HOT 1
- (type)switch: braces after `case` keyword HOT 3
- Unknown option: FORG0013 → XPTY0004 HOT 2
- XQFO: Editorial HOT 1
- Duplicate keys in map constructor HOT 3
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.