Skip to content

Commit

Permalink
Snapshot of work on cleaning up viewport-source/iteration-source/xpat…
Browse files Browse the repository at this point in the history
…h-context
  • Loading branch information
ndw committed Jun 10, 2015
1 parent c7ef1e8 commit 9c89619
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 171 deletions.
54 changes: 10 additions & 44 deletions langspec/schemas/xproc.rnc
Expand Up @@ -169,7 +169,7 @@ InputDeclaration =
]
InputConnection =
element input {
port.attr,
port.attr?,
select.attr?,
common.attributes,
inline.attributes,
Expand All @@ -189,7 +189,7 @@ Input = InputDeclaration | InputConnection
]
OutputDeclaration =
element output {
port.attr,
port.attr?,
sequence.attr?,
primary.attr?,
common.attributes,
Expand All @@ -202,7 +202,7 @@ OutputDeclaration =
]
OutputConnection =
element output {
port.attr,
port.attr?,
sequence.attr?,
primary.attr?,
common.attributes,
Expand All @@ -221,8 +221,8 @@ Output = OutputDeclaration | OutputConnection
]
Pipe =
element pipe {
attribute step { xsd:NCName },
port.attr,
attribute step { xsd:NCName }?,
port.attr?,
common.attributes,
use-when.attr?,
(Documentation|PipeInfo)*
Expand Down Expand Up @@ -266,7 +266,7 @@ Log =
element log {
common.attributes,
use-when.attr?,
port.attr,
port.attr?,
href.attr?,
(Documentation|PipeInfo)*
}
Expand Down Expand Up @@ -414,19 +414,7 @@ ForEach =
name.ncname.attr?,
common.attributes,
use-when.attr?,
((IterationSource? & (Output|Log|Documentation|PipeInfo)*), Subpipeline)
}

[
sa:class = "language-construct"
]
IterationSource =
element iteration-source {
select.attr?,
common.attributes,
inline.attributes,
use-when.attr?,
(((\Empty|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)|Any)
((Input? & (Output|Log|Documentation|PipeInfo)*), Subpipeline)
}

# ============================================================
Expand All @@ -440,18 +428,7 @@ Viewport =
attribute match { XSLTMatchPattern },
common.attributes,
use-when.attr?,
((ViewportSource? & Output? & Log? & Documentation* & PipeInfo*), Subpipeline)
}

[
sa:class = "language-construct"
]
ViewportSource =
element viewport-source {
common.attributes,
inline.attributes,
use-when.attr?,
(((Pipe|Document|Inline)? & (Documentation|PipeInfo)*)|Any)
((Input? & Output? & Log? & Documentation* & PipeInfo*), Subpipeline)
}

# ============================================================
Expand All @@ -465,24 +442,13 @@ Choose =
common.attributes,
use-when.attr?,
((Documentation|PipeInfo)*,
XPathContext?,
Input?,
Variable*,
(When|Documentation|PipeInfo)*,
Otherwise?,
(Documentation|PipeInfo)*)
}

[
sa:class = "language-construct"
]
XPathContext =
element xpath-context {
common.attributes,
inline.attributes,
use-when.attr?,
(((\Empty|Pipe|Document|Inline) & (Documentation|PipeInfo)*)|Any)
}

[
sa:class = "language-construct"
]
Expand All @@ -492,7 +458,7 @@ When =
common.attributes,
use-when.attr?,
((Documentation|PipeInfo)*,
XPathContext?,
Input?,
(Output|Log|Documentation|PipeInfo)*,
Subpipeline)
}
Expand Down

0 comments on commit 9c89619

Please sign in to comment.