commit
b5f40cb1ce
|
@ -929,31 +929,21 @@
|
||||||
<template match="lvm:program-map" mode="lvmc:validate-ui">
|
<template match="lvm:program-map" mode="lvmc:validate-ui">
|
||||||
<param name="ui" />
|
<param name="ui" />
|
||||||
|
|
||||||
|
<variable name="knowns" as="xs:string*"
|
||||||
|
select="$ui//lvp:question/@id,
|
||||||
|
$ui//lvp:external/@id,
|
||||||
|
$ui//lvp:calc/@id,
|
||||||
|
for $id in $ui//lvp:meta/lvp:field/@id
|
||||||
|
return concat( 'meta:', $id )" />
|
||||||
|
|
||||||
|
|
||||||
<!-- get a list of unknown source mappings -->
|
<!-- get a list of unknown source mappings -->
|
||||||
<!-- TODO: this is a mess -->
|
<!-- TODO: this is a mess -->
|
||||||
<variable name="unknown-pre" select="
|
<variable name="unknown-pre" select="
|
||||||
.//lvm:pass[
|
.//lvm:pass[ not( @name = $knowns ) ],
|
||||||
not( @name=($ui//lvp:question/@id|$ui//lvp:external/@id) )
|
.//lvm:map[ @from and not( @from = $knowns ) ],
|
||||||
and not( @name=$ui//lvp:calc/@id )
|
.//lvm:from[ not( @name = $knowns ) ],
|
||||||
]
|
.//lvm:set[ @each and not( @each = $knowns ) ]
|
||||||
|
|
|
||||||
.//lvm:map[
|
|
||||||
@from
|
|
||||||
and not( @from=($ui//lvp:question/@id|$ui//lvp:external/@id) )
|
|
||||||
and not( @from=$ui//lvp:calc/@id )
|
|
||||||
]
|
|
||||||
|
|
|
||||||
.//lvm:from[
|
|
||||||
not( @name=($ui//lvp:question/@id|$ui//lvp:external/@id) )
|
|
||||||
and not( @name=$ui//lvp:calc/@id )
|
|
||||||
]
|
|
||||||
|
|
|
||||||
.//lvm:set[
|
|
||||||
@each
|
|
||||||
and not( @each=($ui//lvp:question/@id|$ui//lvp:external/@id) )
|
|
||||||
and not( @each=$ui//lvp:calc/@id )
|
|
||||||
]
|
|
||||||
" />
|
" />
|
||||||
|
|
||||||
<variable name="unknown"
|
<variable name="unknown"
|
||||||
|
|
Loading…
Reference in New Issue