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.5 Syntax: allow p:inline to be optional. #38
Comments
http://www.w3.org/TR/xproc-v2-req/#syntax To make things easier to use and author we are proposing new p:inline syntax behaviour where p:inline is optional.
would be
elements that can contain p:inline are;
I think the crux of this change is what are the heuristics to discriminate the following potential sibling elements
That is if we intended to inline an element from XProc own namespace, clearly the following would not work
and would have to resort to
This is exactly the kind of edge case that we should ask authors to use when they mean 'something else'. So the heuristic roughly is; Any element which can contain a p:inline can alternately contain inline content (as long as its not in XProc own namespace) which will be wrapped in a document node and treated exactly as its set out in XProc spec section 5.12. If the author wants to exclude inline prefixes then they will need to explicitly use p:inline. Similarly, where it is intended to inline an element from XProc's own namespace, such as (p:empty|p:data|p:namespaces|p:pipeinfo|p:documentation) then an explicit p:inline will be required, otherwise an appropriate error will be thrown. Lastly, if the author intends to include multiple inline document nodes then multiple explicit p:inline(s) would then be required with no mixing of implicit and explicit p:inline behaviour allowed. |
That all sounds reasonable and correct to me. |
I like the proposal. |
note- probably need to reparse/discuss default element ns for an element that defines no ns |
publishing properly http://xquery.github.io/xproc-specification/langspec/xproc20/head/ now with diffs |
(I've learned how to push github around with this issue ... apologies for the churn ... I will leave the various commits here (instead of squashing them into one) as a testament to my ignorance.) spec with changes diff for discussion at 12/11/14 meeting |
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:
Allow p:inline to be optional.
The text was updated successfully, but these errors were encountered: