mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/region-edoc.git
synced 2026-01-24 01:45:38 +03:00
281 lines
15 KiB
HTML
281 lines
15 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://www.purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||
<xsl:output method="html" indent="yes"/>
|
||
|
||
<xsl:include href="assessmenthtml.xslt"/>
|
||
|
||
<!--For future use
|
||
module specific elements inclusions-->
|
||
<xsl:variable name="contentparamspath" select="concat('DMC-S1000DSTUDIO-AAA-D20-00-00-00AA-00PA-D_004-00_',$dmlanguage,'-',$dmcountry,'.xml')"/>
|
||
<xsl:variable name="contentparams" select="document($contentparamspath)"></xsl:variable>
|
||
<xsl:template name="getContentParam">
|
||
<xsl:param name="paramName"></xsl:param>
|
||
<xsl:value-of select="$contentparams//product[@id='ContentProfile1']/assign[@applicPropertyIdent = $paramName]/@applicPropertyValue" />
|
||
</xsl:template>
|
||
<!--global vars-->
|
||
<xsl:variable name="extproducer" select="//identAndStatusSection//identExtension/@extensionProducer" />
|
||
<xsl:variable name="extcode" select="//identAndStatusSection//identExtension/@extensionCode" />
|
||
<xsl:variable name="mic" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@modelIdentCode" />
|
||
<xsl:variable name="sysdif" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@systemDiffCode" />
|
||
<xsl:variable name="syscode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@systemCode" />
|
||
<xsl:variable name="subsyscode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@subSystemCode" />
|
||
<xsl:variable name="subsubsyscode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@subSubSystemCode" />
|
||
<xsl:variable name="assycode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@assyCode" />
|
||
<xsl:variable name="disassycode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@disassyCode" />
|
||
<xsl:variable name="disassycodevariant" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@disassyCodeVariant" />
|
||
<xsl:variable name="infocode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@infoCode" />
|
||
<xsl:variable name="infocodevariant" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@infoCodeVariant" />
|
||
<xsl:variable name="itemlocationcode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@itemLocationCode" />
|
||
<xsl:variable name="learncode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@learnCode" />
|
||
<xsl:variable name="learneventcode" select="dmodule/identAndStatusSection/dmAddress/dmIdent/dmCode/@learnEventCode" />
|
||
<xsl:variable name="dmissn" select="dmodule/identAndStatusSection/dmAddress/dmIdent/issueInfo/@issueNumber" />
|
||
<xsl:variable name="dminwork" select="dmodule/identAndStatusSection/dmAddress/dmIdent/issueInfo/@inWork" />
|
||
<xsl:variable name="dmcountry" select="//identAndStatusSection//language/@countryIsoCode" />
|
||
<xsl:variable name="dmlanguage" select="//identAndStatusSection//language/@languageIsoCode" />
|
||
<xsl:variable name="activedmcode">
|
||
|
||
</xsl:variable>
|
||
<xsl:variable name="this_dmc" >
|
||
<xsl:choose>
|
||
<xsl:when test="string-length($learncode) = 0 and string-length($learneventcode) = 0">
|
||
<xsl:value-of select="concat($mic,'-',$sysdif,'-',
|
||
$syscode,'-',$subsyscode,$subsubsyscode,'-',$assycode,'-',$disassycode,$disassycodevariant,'-',
|
||
$infocode,$infocodevariant,'-',$itemlocationcode)" />
|
||
</xsl:when>
|
||
<xsl:when test="string-length($learncode) > 0 and string-length($learneventcode) = 0">
|
||
<xsl:value-of select="concat($mic,'-',$sysdif,'-',
|
||
$syscode,'-',$subsyscode,$subsubsyscode,'-',$assycode,'-',$disassycode,$disassycodevariant,'-',
|
||
$infocode,$infocodevariant,'-',$itemlocationcode,'-',$learncode)" />
|
||
</xsl:when>
|
||
<xsl:when test="string-length($learncode) = 0 and string-length($learneventcode) > 0">
|
||
<xsl:value-of select="concat($mic,'-',$sysdif,'-',
|
||
$syscode,'-',$subsyscode,$subsubsyscode,'-',$assycode,'-',$disassycode,$disassycodevariant,'-',
|
||
$infocode,$infocodevariant,'-',$itemlocationcode,'-',$learneventcode)" />
|
||
</xsl:when>
|
||
<xsl:when test="string-length($learncode) > 0 and string-length($learneventcode) > 0">
|
||
<xsl:value-of select="concat($mic,'-',$sysdif,'-',
|
||
$syscode,'-',$subsyscode,$subsubsyscode,'-',$assycode,'-',$disassycode,$disassycodevariant,'-',
|
||
$infocode,$infocodevariant,'-',$itemlocationcode,'-',$learncode,$learneventcode)" />
|
||
</xsl:when>
|
||
</xsl:choose>
|
||
</xsl:variable>
|
||
|
||
<!--<xsl:variable name="global_dmc">
|
||
<xsl:value-of select="document('./urn_resource_map.xml')//target[parent::urn[contains(@name, $this_dmc)]]" />
|
||
</xsl:variable>-->
|
||
<xsl:template match="/">
|
||
|
||
<html>
|
||
<head>
|
||
<!-- Detailed layout -->
|
||
<meta http-equiv="X-UA-Compatible" content="IE=7" />
|
||
<!--<link rel="stylesheet" href="app/common_1.css" type="text/css" />-->
|
||
<link rel="stylesheet" href="app/assessment.css" type="text/css" />
|
||
|
||
<link rel="stylesheet" href="app/bower_components/normalize.css/normalize.css"></link>
|
||
<link rel="stylesheet" href="app/bower_components/normalize.css/jquery-ui.min.css"></link>
|
||
<link rel="stylesheet" href="app/bower_components/Select2/css/select2.css"></link>
|
||
<link rel="stylesheet" href="app/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css"></link>
|
||
<link rel="stylesheet" href="app/css/animate.css"></link>
|
||
<link rel="stylesheet" href="app/css/fonts.css"></link>
|
||
<link rel="stylesheet" href="app/css/styles_lm.css"></link>
|
||
<link rel="stylesheet" type="text/css" id="u0" href="app/js/tinymce/skins/lightgray/skin.min.css"></link>
|
||
<!--<link href="app/css/styles.css" rel="stylesheet" type="text/css"> </link>-->
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script type="text/javascript" src="app/Functions.js"></script>
|
||
|
||
|
||
|
||
<script type="text/javascript" src="app/APIWrapper.js"></script>
|
||
<!-- Sortable -->
|
||
<script type="text/javascript" src="app/bower_components/jquery/dist/jquery.min.js"></script>
|
||
<script type="text/javascript" src="app/js/jquery-ui.min.js"></script>
|
||
</head>
|
||
<body bgcolor="#FFFFFF" class="bodyText" onload="javascript:loadPage();javascript:setStartTime();" >
|
||
<div class="main">
|
||
<div style="display:none" class='language' id='{$dmlanguage}'></div>
|
||
<div class="container" id="container">
|
||
|
||
|
||
<div class="container_text">
|
||
<div>
|
||
<!--ЗАГРУЗКА РЕСУРСОВ-->
|
||
<!--<xsl:attribute name="onload">
|
||
<xsl:choose>
|
||
<xsl:when test="//multimediaObject">
|
||
<xsl:for-each select="//multimediaObject">
|
||
<xsl:if test="position()=1 ">loadJson('<xsl:value-of select="@infoEntityIdent"></xsl:value-of>.json')</xsl:if>
|
||
</xsl:for-each>
|
||
</xsl:when>
|
||
</xsl:choose>
|
||
</xsl:attribute>-->
|
||
<div id="S1000D_root" class="S1000D_root">
|
||
<xsl:apply-templates mode="S1000D" />
|
||
<xsl:call-template name="DMfootnotes" />
|
||
<xsl:if test="self::dmodule and not(descendant::process)">
|
||
<xsl:call-template name="DMend" /></xsl:if>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script type="text/javascript" src="app/common.js"></script>
|
||
</html>
|
||
</xsl:template>
|
||
<xsl:template match="dmodule" mode="S1000D">
|
||
<xsl:apply-templates />
|
||
</xsl:template>
|
||
<xsl:template match="identAndStatusSection">
|
||
<div id="S1000D_identandstatus" class="S1000D_mainstructure">
|
||
|
||
|
||
</div>
|
||
</xsl:template>
|
||
<xsl:template match="LEARNING|learning">
|
||
<xsl:apply-templates/>
|
||
</xsl:template>
|
||
|
||
<xsl:template match ="rdf:Description">
|
||
<xsl:variable name="section_pane_state">none</xsl:variable>
|
||
<div id="metadataDiv" style="display:{$section_pane_state}">
|
||
<table class="metadataPane">
|
||
<tr>
|
||
<td>
|
||
<b>
|
||
<xsl:value-of select ="dc:identifier" />
|
||
</b>
|
||
</td>
|
||
<td>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<h5>
|
||
<xsl:value-of select ="dc:subject" />
|
||
|
||
</h5>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<!-- <p>
|
||
<a href="javascript:void(toggle_visibility('metadataDiv'))">Дополнительная информация</a>
|
||
</p>-->
|
||
</xsl:template>
|
||
<xsl:template match="acronym">
|
||
<span><xsl:attribute name="title"><xsl:for-each select="acronymDefinition//text()"><xsl:value-of select="."></xsl:value-of></xsl:for-each></xsl:attribute>
|
||
<xsl:apply-templates select="acronymTerm"></xsl:apply-templates>
|
||
</span>
|
||
</xsl:template>
|
||
|
||
<xsl:template match="acronymTerm[not(parent::acronym)]">
|
||
<xsl:variable name="intref" select="@internalRefId"></xsl:variable>
|
||
<span>
|
||
<xsl:for-each select="//acronym[@id=$intref]">
|
||
<xsl:attribute name="title"><xsl:for-each select="acronymDefinition//text()"><xsl:value-of select="."></xsl:value-of></xsl:for-each></xsl:attribute>
|
||
</xsl:for-each>
|
||
<xsl:apply-templates></xsl:apply-templates>
|
||
</span>
|
||
</xsl:template>
|
||
|
||
<xsl:template name="DMfootnotes">
|
||
<xsl:variable name="footnotes_place">
|
||
<xsl:call-template name="getContentParam">
|
||
<xsl:with-param name="paramName" select="'format_footnoteplace'" />
|
||
</xsl:call-template>
|
||
</xsl:variable>
|
||
<xsl:variable name="footnotetableplace">
|
||
<xsl:call-template name="getContentParam">
|
||
<xsl:with-param name="paramName" select="'format_footnotetableplace'" />
|
||
</xsl:call-template>
|
||
</xsl:variable>
|
||
<xsl:if test="//footnote">
|
||
<div class="S1000DDMendfootnotes">
|
||
<xsl:choose>
|
||
<xsl:when test="$footnotes_place='dmend' and $footnotetableplace='dmend'">
|
||
<table class="S1000Dfootnotes">
|
||
<tbody>
|
||
<xsl:for-each select="//footnote">
|
||
<p>
|
||
<xsl:attribute name="id">
|
||
<xsl:value-of select="@id" />
|
||
</xsl:attribute>
|
||
<tr>
|
||
<td>
|
||
<xsl:number count="footnote" format="1" level="any" />
|
||
</td>
|
||
<td>
|
||
<xsl:apply-templates />
|
||
</td>
|
||
</tr>
|
||
</p>
|
||
</xsl:for-each>
|
||
</tbody>
|
||
</table>
|
||
</xsl:when>
|
||
<xsl:when test="$footnotes_place='dmend' and $footnotetableplace!='dmend'">
|
||
<table class="S1000Dfootnotes">
|
||
<tbody>
|
||
<xsl:for-each select="//footnote[not(parent::table)]">
|
||
<p>
|
||
<tr>
|
||
<td>
|
||
<xsl:number count="footnote" format="1" level="any" />
|
||
</td>
|
||
<td>
|
||
<xsl:apply-templates />
|
||
</td>
|
||
</tr>
|
||
</p>
|
||
</xsl:for-each>
|
||
</tbody>
|
||
</table>
|
||
</xsl:when>
|
||
</xsl:choose>
|
||
</div>
|
||
</xsl:if>
|
||
</xsl:template>
|
||
|
||
<!-- Caution -->
|
||
|
||
<xsl:template match="caption">
|
||
<span>
|
||
<xsl:variable name="captionst">
|
||
<xsl:choose>
|
||
<xsl:when test="@captionType='secondary'">
|
||
<xsl:value-of select="'font-weight:bold;background-color:#000000;'"/>
|
||
<xsl:if test="@color!='co09' and @color">
|
||
<xsl:choose><xsl:when test="@color='co01'"><xsl:value-of select="'color:#00FF00'"/></xsl:when><xsl:when test="@color='co02'"><xsl:value-of select="'color:#FF9900'"/></xsl:when><xsl:when test="@color='co03'"><xsl:value-of select="'color:#FFFF00'"/></xsl:when><xsl:when test="@color='co04'"><xsl:value-of select="'color:#ff3434'"/></xsl:when><xsl:when test="@color='co07'"><xsl:value-of select="'color:#FFFFFF'"/></xsl:when><xsl:when test="@color='co08'"><xsl:value-of select="'color:#CCCCCC'"/></xsl:when><xsl:when test="@color='co51'"><xsl:value-of select="'color:#0000FF'"/></xsl:when><xsl:when test="@color='co52'"><xsl:value-of select="'color:#FF6600'"/></xsl:when><xsl:when test="@color='co53'"><xsl:value-of select="'color:#FFFFCC'"/></xsl:when><xsl:when test="@color='co54'"><xsl:value-of select="'color:#00FFFF'"/></xsl:when><xsl:when test="@color='co55'"><xsl:value-of select="'color:#FF00FF'"/></xsl:when><xsl:when test="@color='co56'"><xsl:value-of select="'color:#CCFFFF'"/></xsl:when><xsl:otherwise><xsl:value-of select="'color:#FFFFFF'"/></xsl:otherwise></xsl:choose>
|
||
</xsl:if>
|
||
|
||
</xsl:when>
|
||
<xsl:otherwise>
|
||
<xsl:if test="@color!='co09' and @color">
|
||
<xsl:value-of select="'font-weight:bold;color:#000000;'"/>
|
||
<xsl:choose><xsl:when test="@color='co01'"><xsl:value-of select="'background-color:#00FF00'"/></xsl:when><xsl:when test="@color='co02'"><xsl:value-of select="'background-color:#FF9900'"/></xsl:when><xsl:when test="@color='co03'"><xsl:value-of select="'background-color:#FFFF00'"/></xsl:when><xsl:when test="@color='co04'"><xsl:value-of select="'background-color:#ff3434'"/></xsl:when><xsl:when test="@color='co07'"><xsl:value-of select="'background-color:#FFFFFF'"/></xsl:when><xsl:when test="@color='co08'"><xsl:value-of select="'background-color:#CCCCCC'"/></xsl:when><xsl:when test="@color='co51'"><xsl:value-of select="'background-color:#0000FF'"/></xsl:when><xsl:when test="@color='co52'"><xsl:value-of select="'background-color:#FF6600'"/></xsl:when><xsl:when test="@color='co53'"><xsl:value-of select="'background-color:#FFFFCC'"/></xsl:when><xsl:when test="@color='co54'"><xsl:value-of select="'background-color:#00FFFF'"/></xsl:when><xsl:when test="@color='co55'"><xsl:value-of select="'background-color:#FF00FF'"/></xsl:when><xsl:when test="@color='co56'"><xsl:value-of select="'background-color:#CCFFFF'"/></xsl:when></xsl:choose>
|
||
</xsl:if>
|
||
|
||
</xsl:otherwise>
|
||
</xsl:choose>
|
||
</xsl:variable>
|
||
<xsl:attribute name="style"><xsl:value-of select="$captionst"/></xsl:attribute>
|
||
|
||
|
||
|
||
<xsl:apply-templates/>
|
||
|
||
</span>
|
||
|
||
</xsl:template>
|
||
|
||
</xsl:stylesheet>
|