-
Notifications
You must be signed in to change notification settings - Fork 6
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
2.7.10 Syntax: add an AVT @value attribute to options, parameters, and variables #43
Comments
On further reflection, I'm not sure this is a good idea. There's no parallel in XSLT, for example, and I've never heard anyone complaining about it. Seems to me that it could be quite confusing. |
If I may bring my user point of view: a place where I think AVTs would be really handy is in options syntactic shortcut attributes, in order to reduce the verbosity of For instance: <p:add-attribute attribute-name="href" match="*">
<p:input port="source">
<p:inline>
<c:request method="get"/>
</p:inline>
</p:input>
<p:with-option name="attribute-value"
select="concat('http://en.wiktionary.org/w/api.php?action=query&titles=',
encode-for-uri(.),
'&format=xml&prop=extracts')" />
</p:add-attribute> becomes <p:add-attribute attribute-name="href" match="*" attribute-value="http://en.wiktionary.org/w/api.php?action=query&titles={encode-for-uri(.)}&format=xml&prop=extracts">
<p:input port="source">
<c:request method="get"/>
</p:input>
</p:add-attribute> (ok, I cheat by using the inline syntax shortcut already ;) Of course, the real issue there is that you lose backward compatibility with XProc 1.0... Otherwise, for |
There's no question of doing AVTs in shortcut options (and possibly other places). There's a separate issue for that, #33. That's absolutely required. This issue is really just about a |
Oh, sorry I missed that one.
👍 Meh too |
At the 25 March telcon, we decided to close this issue without action. http://www.w3.org/XML/XProc/2015/03/25-minutes.html |
XProc 1.0 offers relatively few default behaviors, requiring instead that pipelines specify every construct fully. User experience has demonstrated that this leads to very verbose pipelines and has been a constant source of complaint. XProc 2.0 will introduce a variety of syntactic simplifications as an aid to readability and usability, including but not limited to:
Add an AVT value attribute to options, parameters, and variables (to be used instead of select)
The text was updated successfully, but these errors were encountered: