| $par:CurrentPeriodEnd | xsd:date |
| xsd:date($par:refPeriodEnd) |
| $par:CurrentPeriodStart | xsd:date |
| xsd:date($par:refPeriodStart) |
| $par:PriorPeriod-1End | xsd:date |
| xsd:date($par:CurrentPeriodStart) |
| $par:PriorPeriod-1Start | xsd:date |
| xsd:date($par:CurrentPeriodStart) - xsd:yearMonthDuration('P1Y') |
| $par:PriorPeriod-2End | xsd:date |
| xsd:date($par:CurrentPeriodEnd) - xsd:yearMonthDuration(if($par:ReportingPeriodScope eq 'I') then 'P1Y' else 'P2Y') |
| $par:PriorPeriod-2Start | xsd:date |
| xsd:date($par:CurrentPeriodStart) - xsd:yearMonthDuration(if($par:ReportingPeriodScope eq 'I') then 'P1Y' else 'P2Y') |
| $par:ReportingPeriodScope | xsd:string |
| xsd:string('A') |
| $par:RegStartDurQuart | xsd:date |
| xsd:date($par:RegStartInsQuart) + xsd:dayTimeDuration('P1D') |
| $par:RegStartDurQuart-1End | xsd:date |
| if(fn:month-from-date($par:refPeriodEnd)>5) then xsd:date(fn:concat(xsd:string(fn:year-from-date($par:startQuart)-1),'-0',xsd:string(fn:month-from-date($par:startQuart)),'-',xsd:string(fn:day-from-date($par:startQuart)))) + xsd:dayTimeDuration('P1D') else xsd:date(fn:concat(xsd:string(fn:year-from-date($par:startQuart)-1),'-',xsd:string(fn:month-from-date($par:startQuart)),'-',xsd:string(fn:day-from-date($par:startQuart)))) + xsd:dayTimeDuration('P1D') |
| $par:RegStartDurYear | xsd:date |
| xsd:date(fn:concat(xsd:string(fn:year-from-date($par:refPeriodEnd) - 1),'-12-31')) + xsd:dayTimeDuration('P1D') |
| $par:RegStartDurYear-1End | xsd:date |
| xsd:date(fn:concat(xsd:string(fn:year-from-date($par:refPeriodEnd) - 2),'-12-31')) + xsd:dayTimeDuration('P1D') |
| $par:RegStartInsQuart | xsd:date |
| if ((fn:month-from-date($par:refPeriodEnd)=3) or (fn:month-from-date($par:refPeriodEnd)=12) or (fn:month-from-date($par:refPeriodEnd)=9)) then ($par:refPeriodEnd - xsd:yearMonthDuration('P3M')) else ($par:refPeriodEnd - xsd:yearMonthDuration('P3M') + xsd:dayTimeDuration('P1D')) |
| $par:RegStartInsQuart-1End | xsd:date |
| if(fn:month-from-date($par:refPeriodEnd)>5) then xsd:date(fn:concat(xsd:string(fn:year-from-date($par:startQuart)-1),'-0',xsd:string(fn:month-from-date($par:startQuart)),'-',xsd:string(fn:day-from-date($par:startQuart)))) else xsd:date(fn:concat(xsd:string(fn:year-from-date($par:startQuart)-1),'-',xsd:string(fn:month-from-date($par:startQuart)),'-',xsd:string(fn:day-from-date($par:startQuart)))) |
| $par:RegStartInsYear | xsd:date |
| xsd:date(fn:concat(xsd:string(fn:year-from-date($par:refPeriodEnd) - 1),'-12-31')) |
| $par:RegStartInsYear-1End | xsd:date |
| xsd:date(fn:concat(xsd:string(fn:year-from-date($par:refPeriodEnd) - 2),'-12-31')) |
| $base_resource | None |
| if (fn:doc-available('http://www.cbr.ru/Content/Document/File/136132/COA.xml')) then (fn:doc('http://www.cbr.ru/Content/Document/File/136132/COA.xml')) else (if (fn:doc-available(fn:concat(fn:substring-before(fn:static-base-uri(), 'www.cbr.ru'), 'COA.xml'))) then (fn:doc(fn:concat(fn:substring-before(fn:static-base-uri(), 'www.cbr.ru'), 'COA.xml'))) else (if (fn:doc-available($local_CoA_address)) then (fn:doc($local_CoA_address)) else (null))) |
| $local_CoA_address | xs:anyURI |
| xs:string('C:\') |
| $par:param_min1 | xsd:date |
| if ((fn:day-from-date($par:refPeriodEnd)=30) and (fn:month-from-date($par:refPeriodEnd)=6)) then ($par:refPeriodEnd - xsd:yearMonthDuration('P3M') + xsd:dayTimeDuration('P1D')) else ($par:refPeriodEnd - xsd:yearMonthDuration('P3M')) |
| $par:param_min2 | xsd:date |
| if ((fn:day-from-date($par:refPeriodEnd)=30) and ((fn:month-from-date($par:refPeriodEnd)=6)or(fn:month-from-date($par:refPeriodEnd)=9))) then ($par:refPeriodEnd - xsd:yearMonthDuration('P6M') + xsd:dayTimeDuration('P1D')) else ($par:refPeriodEnd - xsd:yearMonthDuration('P6M')) |
| $par:param_min3 | xsd:date |
| if ((fn:day-from-date($par:refPeriodEnd)=30) and (fn:month-from-date($par:refPeriodEnd)=9)) then ($par:refPeriodEnd - xsd:yearMonthDuration('P9M') + xsd:dayTimeDuration('P1D')) else ($par:refPeriodEnd - xsd:yearMonthDuration('P9M')) |
| $par:refPeriodEnd | xsd:date |
| if (exists(max(//xbrli:period/(xbrli:instant | xbrli:endDate)))) then max(//xbrli:period/(xbrli:instant | xbrli:endDate)) else xsd:date('2016-12-31') |
| $par:refPeriodStart | xsd:date |
| if (exists(//xbrli:period/xbrli:startDate)) then max(//xbrli:period/xbrli:startDate) else xsd:date('2016-01-01') |
| $par:startMonth | xsd:date |
| if ((fn:month-from-date($par:refPeriodEnd)=1) or (fn:month-from-date($par:refPeriodEnd)=3) or (fn:month-from-date($par:refPeriodEnd)=5) or (fn:month-from-date($par:refPeriodEnd)=7) or (fn:month-from-date($par:refPeriodEnd)=8) or (fn:month-from-date($par:refPeriodEnd)=10) or (fn:month-from-date($par:refPeriodEnd)=12)) then ($par:refPeriodEnd - xsd:yearMonthDuration('P1M'))else ($par:refPeriodEnd - xsd:yearMonthDuration('P1M') + xsd:dayTimeDuration(fn:concat('P',xsd:string(31-fn:day-from-date($par:refPeriodEnd)),'D'))) |
| $par:startQuart | xsd:date |
| if ((fn:month-from-date($par:refPeriodEnd)=3) or (fn:month-from-date($par:refPeriodEnd)=12) or (fn:month-from-date($par:refPeriodEnd)=9)) then ($par:refPeriodEnd - xsd:yearMonthDuration('P3M')) else ($par:refPeriodEnd - xsd:yearMonthDuration('P3M') + xsd:dayTimeDuration('P1D')) |
| $par:startRepYear | xsd:date |
| xsd:date(fn:concat(xsd:string(fn:year-from-date($par:refPeriodEnd) - 1),'-12-31')) |