-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial xsl:record #1858
base: master
Are you sure you want to change the base?
Initial xsl:record #1858
Conversation
…n-function_identity Integration.
The proposed signature uses |
…rdered-maps 1771 Add option for deep-equal to consider map order
Actions from meeting 111
Reduce the indentation in the ToC
Relax the return type of the Invisible XML parsing function
1820 Attempt to add change markup in collapsed ToC
…text-item 1845 Revised design of methods to use . rather than $this
…n-function_identity Integration
1798 Function fn:function-identity
I suggest putting xsl:record under a separate section heading from xsl:map, it makes it easier to find the rules applying to each instruction. There's a need to change the rules for standard attributes such as [xsl:]version -- we can no longer simply say that if the element is in the XSLT namespace, the attribute isn't, and vice versa. Otherwise looks good. |
Needs extensions to the schema for XSLT 4.0. |
Added section; corected XSLT source transformation code.
I can see the motivation for I think I'd prefer it if we just reserved the names |
Yes, I share this concern. The design is very logical, but also rather unfamiliar. However, I'm not comfortable with reserving attribute names either. Perhaps an alternative is to put the attributes on a separate element, xsl:record-options, appearing as a child of xsl:record? |
I agree - we have a bit of a quandary, with no obvious single-element + options attributes + entry attributes solution possible .
This might be a possibility if it only applies to the Interestingly, in the absence of a contained sequence constructor (which probably will be the vast majority of use cases) we don't need the |
…ates-in-maps 1725b Further elaboration of duplicates handling in maps
…ions_filtered_by_type 1456 Lookup expressions filtered by type
Is there a compelling reason not to allow QName keys: <xsl:record xmlns:e="http://example.com" e:foo="Spoon!"/> |
Mainly consistency with record type declarations. You can't define a record type that expects non-string keys. That in turn is consistent with JSON objects. |
#HEADDESK, of course. Apologies for the noise, I was thinking of a map constructor. |
Added section; corected XSLT source transformation code.
Restrictions on standard attributes, change to type-checking wording, addition of streamability
An initial draft of the xsl:record instruction, for discussion