|
@ -2,18 +2,18 @@ |
|
|
// stdlib candidates |
|
|
// stdlib candidates |
|
|
// ---------------------------------------------------------------------- |
|
|
// ---------------------------------------------------------------------- |
|
|
def "func:autocomma" { |
|
|
def "func:autocomma" { |
|
|
result if "position()!=last()" > , |
|
|
result if "position()!=last()" > , |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
def "func:exists" { |
|
|
def "func:exists" { |
|
|
param "xpath"; |
|
|
param "xpath"; |
|
|
|
|
|
|
|
|
choose { |
|
|
choose { |
|
|
when "$xpath" |
|
|
when "$xpath" |
|
|
result "true()"; |
|
|
result "true()"; |
|
|
otherwise |
|
|
otherwise |
|
|
result "false()"; |
|
|
result "false()"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------- |
|
|
// ---------------------------------------------------------------------- |
|
|