Skip to content

Commit

Permalink
Added QNameList, fixed use of Any
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Mar 19, 2015
1 parent 7d714d1 commit ad1764e
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions langspec/schemas/xproc.rnc
Expand Up @@ -48,15 +48,20 @@ exclude-inline-prefixes.attr =
# maybe ("#all" | (PrefixList | "#default")+), but neither
# one of those is allowed by RELAX NG.
[
sa:model = "prefix list"
sa:model = "ExcludeInlinePrefixes"
]
ExcludeInlinePrefixes = text

[
sa:model = "prefix list"
sa:model = "PrefixList"
]
PrefixList = xsd:NMTOKENS

[
sa:model = "QNameList"
]
QNameList = xsd:NMTOKENS

[
sa:ignore = "yes"
]
Expand Down Expand Up @@ -156,7 +161,7 @@ InputDeclaration =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Any|(Document|Inline)+)? & (Documentation|PipeInfo)*)
(((\Empty|(Document|Inline)+)? & (Documentation|PipeInfo)*)|Any)
}

[
Expand All @@ -169,7 +174,7 @@ InputConnection =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Any|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)
(((\Empty|(Document|Inline)+)? & (Documentation|PipeInfo)*)|Any)
}

[
Expand Down Expand Up @@ -203,7 +208,7 @@ OutputConnection =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Any|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)
(((\Empty|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)|Any)
}

[
Expand Down Expand Up @@ -339,7 +344,7 @@ WithOptionSelect =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Pipe|Document|Any|Inline)? & (Namespaces|Documentation|PipeInfo)*)
(((\Empty|Pipe|Document|Inline)? & (Namespaces|Documentation|PipeInfo)*)|Any)
}

[
Expand All @@ -360,7 +365,7 @@ VariableSelect =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Pipe|Document|Any|Inline)? & (Namespaces|Documentation|PipeInfo)*)
(((\Empty|Pipe|Document|Inline)? & (Namespaces|Documentation|PipeInfo)*)|Any)
}

[
Expand Down Expand Up @@ -421,7 +426,7 @@ IterationSource =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Any|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)
(((\Empty|(Pipe|Document|Inline)+)? & (Documentation|PipeInfo)*)|Any)
}

# ============================================================
Expand All @@ -446,7 +451,7 @@ ViewportSource =
common.attributes,
inline.attributes,
use-when.attr?,
((Pipe|Document|Any|Inline)? & (Documentation|PipeInfo)*)
(((Pipe|Document|Inline)? & (Documentation|PipeInfo)*)|Any)
}

# ============================================================
Expand Down Expand Up @@ -475,7 +480,7 @@ XPathContext =
common.attributes,
inline.attributes,
use-when.attr?,
((\Empty|Pipe|Document|Any|Inline) & (Documentation|PipeInfo)*)
(((\Empty|Pipe|Document|Inline) & (Documentation|PipeInfo)*)|Any)
}

[
Expand Down Expand Up @@ -544,7 +549,7 @@ TryGroup =
Catch =
element catch {
name.ncname.attr?,
attribute code { xsd:QName+ }?,
attribute code { QNameList }?,
common.attributes,
use-when.attr?,
((Output|Log|Documentation|PipeInfo)*, Subpipeline)
Expand Down

0 comments on commit ad1764e

Please sign in to comment.