Search is not available for this dataset
content
stringlengths
0
376M
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="node"/> <xsl:output method="text"/> <xsl:template match="/"> <xsl:text>node,library,cell,view,name</xsl:text> <xsl:text>&#10;</xsl:text> <xsl:for-each select="//*[@name!='']"> <xsl:sort select="concat(name(),'-',@name)"/> <xsl:text>[</xsl:text> <xsl:value-of select="$node"/> <xsl:text>-</xsl:text> <xsl:value-of select="name()"/> <xsl:text>]</xsl:text> <xsl:if test="name()=$node"> <xsl:value-of select="name()"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::library/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::cell/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::view/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="@name"/> <xsl:text>&#10;</xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<reponame>cjungmann/schemafw<filename>install/web_includes/sfw_associate.xsl <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" version="1.0" indent="yes" omit-xml-declaration="yes" encoding="UTF-8"/> <xsl:template match="field[@type='assoc'][@result]"> <xsl:variable name="an_result" select="ancestor::*[@merged]" /> <xsl:variable name="so_result" select="/*/*[local-name($an_result)='schema'][@rndx][@merged=$an_result/@merged]" /> <xsl:variable name="sresult" select="($an_result|$so_result)[not(@type='update')]" /> <xsl:variable name="row" select="$sresult/*[local-name()=$sresult/@row-name]" /> <xsl:apply-templates select="$row" mode="build_with_associated_row"> <xsl:with-param name="field" select="." /> </xsl:apply-templates> </xsl:template> <!-- This should a field in a non-merged result/schema for the root-document. It is likely for a table, and should get a nodeset rather than a node. --> <xsl:template match="field[@type='assoc'][@result][@data-id][not(ancestor::*/@merge-type)]"> <xsl:variable name="idname"> <xsl:apply-templates select=".." mode="get_id_field_name" /> </xsl:variable> <xsl:variable name="rowname" select="ancestor::*[@rndx]/@row-name" /> <xsl:variable name="result" select="ancestor::*[@rndx]" /> <xsl:variable name="row" select="$result/*[@*[local-name()=$idname] = current()/@data-id]" /> <xsl:apply-templates select="$row" mode="build_with_associated_row"> <xsl:with-param name="field" select="." /> </xsl:apply-templates> </xsl:template> <xsl:template match="*" mode="build_with_associated_row"> <xsl:param name="field" /> <xsl:variable name="alist"> <xsl:apply-templates select="$field" mode="get_association_list"> <xsl:with-param name="data" select="." /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="dresult" select="/*/*[@rndx][local-name()=$field/@result]" /> <xsl:variable name="aresult" select="/*/*[local-name()=$dresult[@type='association']/@result]" /> <xsl:call-template name="transform_associated_references"> <xsl:with-param name="result" select="$aresult|$dresult[not($aresult)]" /> <xsl:with-param name="field" select="$field" /> <xsl:with-param name="str" select="$alist" /> </xsl:call-template> </xsl:template> <!-- <xsl:template match="field[@type='assoc'][@result]"> --> <!-- <xsl:variable name="result" select="/*/*[@rndx][local-name()=current()/@result]" /> --> <!-- <xsl:variable name="row" select="$result/*[local-name()=$result/@row-name]" /> --> <!-- <xsl:apply-templates select="." mode="build_associated_row"> --> <!-- <xsl:with-param name="row" --> <!-- select="$result/*[local-name()=$result/@row-name]" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:template> --> <!-- Call this template when building a host to assoc-type fields so the framework can find the approriate field and host element for updates. --> <xsl:template match="field[@type='assoc']" mode="add_assoc_attribute"> <xsl:attribute name="data-sfw-assoc"> <xsl:value-of select="@name" /> </xsl:attribute> </xsl:template> <xsl:template match="field[@type='assoc']" mode="add_class"> <xsl:variable name="cname"> <xsl:text>assoc</xsl:text> <xsl:if test="@active"> active</xsl:if> </xsl:variable> <xsl:attribute name="class"><xsl:value-of select="$cname" /></xsl:attribute> </xsl:template> <xsl:template match="field[@type='assoc']" mode="construct_input"> <xsl:param name="data" /> <xsl:element name="div"> <xsl:apply-templates select="." mode="add_class" /> <xsl:if test="@active"> <xsl:attribute name="data-sfw-class">assoc</xsl:attribute> <xsl:attribute name="data-sfw-input">assoc</xsl:attribute> <xsl:apply-templates select="." mode="add_assoc_attribute" /> <xsl:apply-templates select="@*" mode="add_on_click_attribute" /> </xsl:if> <xsl:apply-templates select="." mode="build_associated_row"> <xsl:with-param name="row" select="$data" /> </xsl:apply-templates> </xsl:element> </xsl:template> <xsl:template match="field[@type='assoc'][@style='table']" mode="construct_input"> <xsl:param name="data" /> <xsl:if test="buttons"> <xsl:apply-templates select="buttons" mode="construct_buttons"> <xsl:with-param name="host-type" select="'div'" /> </xsl:apply-templates> </xsl:if> <xsl:element name="table"> <xsl:apply-templates select="." mode="add_class" /> <xsl:if test="@active"> <xsl:attribute name="data-sfw-class">assoc</xsl:attribute> <xsl:attribute name="data-sfw-input">input</xsl:attribute> <xsl:apply-templates select="@*" mode="add_on_click_attribute" /> </xsl:if> <xsl:element name="tbody"> <xsl:apply-templates select="." mode="add_assoc_attribute" /> <xsl:apply-templates select="." mode="build_associated_row"> <xsl:with-param name="row" select="$data" /> </xsl:apply-templates> </xsl:element> </xsl:element> </xsl:template> <!-- Returns a csv string of integer values that reference elements of another result. --> <xsl:template match="field[@type='assoc']" mode="get_association_list"> <xsl:param name="data" /> <xsl:variable name="aresult" select="/*/*[local-name()=current()/@result]" /> <xsl:choose> <xsl:when test="not($aresult)">Failed to find associated result.</xsl:when> <xsl:when test="$aresult[@type='association']"> <xsl:variable name="idval"> <xsl:apply-templates select="." mode="get_id_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="krow" select="key(@xslkey, $idval)" /> <xsl:variable name="drow" select="$aresult[not($krow)]/*[local-name()=$aresult/@row-name][@id=$idval]" /> <xsl:variable name="row" select="$krow|$drow" /> <xsl:value-of select="$row/@*[local-name()=current()/@name]" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$data/@*[local-name()=current()/@name]" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="field[@type='assoc']" mode="final_build_associated_row"> <xsl:param name="row" /> <xsl:variable name="alist"> <xsl:apply-templates select="." mode="get_association_list"> <xsl:with-param name="data" select="$row" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="ref_result" select="/*/*[local-name()=current()/@result]" /> <xsl:variable name="aaresult" select="/*/*[local-name()=$ref_result[@type='association']/@result]" /> <xsl:call-template name="transform_associated_references"> <xsl:with-param name="result" select="$aaresult|$ref_result[not($aaresult)]" /> <xsl:with-param name="field" select="." /> <xsl:with-param name="str" select="$alist" /> </xsl:call-template> </xsl:template> <xsl:template match="field[@type='assoc']" mode="build_associated_row"> <xsl:param name="row" /> <xsl:apply-templates select="." mode="final_build_associated_row"> <xsl:with-param name="row" select="$row" /> </xsl:apply-templates> </xsl:template> <!-- Handles special case of assoc contents in a table cell rather row. --> <xsl:template match="field[@type='assoc'][@data-id]" mode="build_associated_row"> <xsl:param name="row" /> <xsl:variable name="idname"> <xsl:apply-templates select=".." mode="get_id_field_name" /> </xsl:variable> <xsl:variable name="srow" select="$row[@*[local-name()=$idname]=current()/@data-id]" /> <xsl:apply-templates select="." mode="final_build_associated_row"> <xsl:with-param name="row" select="$srow" /> </xsl:apply-templates> </xsl:template> <xsl:template match="field[@type='assoc'][@style='table']" mode="construct_assoc_input"> <xsl:param name="data" /> <!-- Get parts from construct_input that work with transform_row --> <table class="Schema"> <tbody> <xsl:apply-templates select="." mode="transform_row"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </tbody> </table> </xsl:template> <!-- Primary template for rendering the associated contents of a field. The query that includes this field should select a NULL value for the the field name and an appropriate schema/field instruction. For rows with multiple non-id attributes, include a template instruction to the field instruction to dictate which attributes to include and in what order. --> <xsl:template match="field[@type='assoc']" mode="build_associations"> <xsl:param name="data" /> <xsl:variable name="lresult" select="/*/*[local-name()=current()/@result]" /> <xsl:variable name="idval"> <xsl:apply-templates select="." mode="get_id_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="kval"> <xsl:apply-templates select="$lresult" mode="get_by_xsl_key"> <xsl:with-param name="id" select="$idval" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="ival" select="$lresult/*[local-name()=../@row-name][@id=$idval]/@*[2]" /> <span> <xsl:if test="$kval"><xsl:value-of select="concat('kval=', $kval,' ')" /></xsl:if> <xsl:value-of select="concat('ival=', $ival)" /> </span> <!-- <span><xsl:value-of select="concat('kval=', $kval, ', rval=', $ival)" /></span> --> <!-- <xsl:apply-templates select="$kval|$ival" mode="build_assoc"> --> <!-- <xsl:with-param name="field" select="." /> --> <!-- </xsl:apply-templates> --> <xsl:apply-templates select="." mode="build_associated_row"> <xsl:with-param name="row" select="$data" /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx][@result]/*" mode="build_assoc"> <xsl:param name="field" /> <xsl:variable name="val"> <xsl:choose> <xsl:when test="$field/@xslkey"> <xsl:value-of select="$field/@xslkey" /> </xsl:when> <xsl:otherwise> <xsl:text>no key</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <span><xsl:value-of select="concat('val is ', $val)" /></span> </xsl:template> <!-- Default transform_row template. Override this template with a following template with more specific field match. --> <xsl:template match="field[@type='assoc'][@style='table']" mode="transform_row"> <xsl:param name="id" /> <xsl:param name="row" /> <xsl:element name="tr"> <xsl:if test="$id"> <xsl:attribute name="data-id"><xsl:value-of select="$id" /></xsl:attribute> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@template" /> <xsl:with-param name="row" select="$row" /> <xsl:with-param name="enclose" select="'td'" /> </xsl:call-template> </xsl:if> </xsl:element> </xsl:template> <xsl:template match="field[@type='assoc'][@style='span']" mode="transform_row"> <xsl:param name="id" /> <xsl:param name="row" /> <xsl:element name="span"> <xsl:if test="$id"> <xsl:attribute name="data-id"><xsl:value-of select="$id" /></xsl:attribute> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@template" /> <xsl:with-param name="row" select="$row" /> </xsl:call-template> </xsl:if> </xsl:element> </xsl:template> <xsl:template match="field[@type='assoc'][@style='csv']" mode="transform_row"> <xsl:param name="id" /> <xsl:param name="row" /> <xsl:param name="more" /> <xsl:variable name="val"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@template" /> <xsl:with-param name="row" select="$row" /> </xsl:call-template> </xsl:variable> <xsl:value-of select="normalize-space($val)" /> <xsl:if test="$more">, </xsl:if> </xsl:template> <xsl:template name="transform_associated_references"> <xsl:param name="result" /> <xsl:param name="field" /> <xsl:param name="str" /> <xsl:variable name="c_id" select="substring-before($str,',')" /> <xsl:variable name="s_id" select="substring($str,1 div boolean(string-length($c_id)=0))" /> <xsl:variable name="id_val" select="concat($c_id,$s_id)" /> <xsl:variable name="more" select="string-length($c_id)&gt;0" /> <xsl:variable name="row" select="$result/*[local-name()=../@row-name][@id=$id_val]" /> <xsl:apply-templates select="$field" mode="transform_row"> <xsl:with-param name="id" select="$id_val" /> <xsl:with-param name="row" select="$row" /> <xsl:with-param name="more" select="$more" /> </xsl:apply-templates> <xsl:if test="$more"> <xsl:call-template name="transform_associated_references"> <xsl:with-param name="result" select="$result" /> <xsl:with-param name="field" select="$field" /> <xsl:with-param name="str" select="substring-after($str,',')" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="*[parent::*[@rndx][@type='ref-lists']]" mode="resolve_references"> <xsl:param name="field" /> <xsl:call-template name="transform_associated_references"> <xsl:with-param name="result" select=".." /> <xsl:with-param name="field" select="$field" /> <xsl:with-param name="str" select="@*[local-name()=$field/@name]" /> </xsl:call-template> </xsl:template> <!-- Helper template to get a CSV list of integers from the association table/element. --> <xsl:template match="field[@type='assoc']" mode="get_int_list"> <xsl:param name="data" /> <xsl:variable name="id_value"> <xsl:apply-templates select="." mode="get_id_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="lresult" select="/*/*[local-name()=current()/@result]" /> <xsl:variable name="associated_row" select="$lresult/*[local-name()=../@row-name][@id=$id_value]" /> <xsl:value-of select="$associated_row/@*[local-name()=current()/@name]" /> </xsl:template> <!-- Special handling for associated fields, to override matching template in sfw_form.xsl. --> <xsl:template match="field[@type='assoc']" mode="display_value"> <xsl:param name="data" /> </xsl:template> <!-- Special handling for associated fields, to override matching template in sfw_form.xsl. --> <xsl:template match="field[@type='assoc'][@style='table']" mode="display_value"> <xsl:param name="data" /> <table> <xsl:apply-templates select="." mode="build_associations"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </table> </xsl:template> </xsl:stylesheet>
<filename>Circuit/Default Configuration/SystemBOM.xsl<gh_stars>10-100 <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <HTML> <BODY> <TABLE style="font:8pt Segoe UI" border="1" CELLSPACING="0" CELLPADDING="1" BGCOLOR="#FFFFFF"> <THEAD style="font:bold; background-color:#C0C0C0"> <TR valign="top"> <xsl:for-each select="/GRID/COLUMNS/COLUMN"> <TD align="left"> <xsl:attribute name="width"><xsl:value-of select="@Width"/></xsl:attribute> <xsl:value-of select="@Caption"/> </TD> </xsl:for-each> </TR> </THEAD> <xsl:for-each select="GRID/ROWS/ROW"> <TR valign="top"> <TD align="left"> <xsl:value-of select="@Address1"/> <xsl:if test="@Address1[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Address2"/> <xsl:if test="@Address2[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Address3"/> <xsl:if test="@Address3[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Address4"/> <xsl:if test="@Address4[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ApprovedBy"/> <xsl:if test="@ApprovedBy[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Author"/> <xsl:if test="@Author[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@CheckedBy"/> <xsl:if test="@CheckedBy[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Comment"/> <xsl:if test="@Comment[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@CompanyName"/> <xsl:if test="@CompanyName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Component_Kind"/> <xsl:if test="@Component_Kind[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ComponentKind"/> <xsl:if test="@ComponentKind[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@CurrentDate"/> <xsl:if test="@CurrentDate[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@CurrentTime"/> <xsl:if test="@CurrentTime[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Date"/> <xsl:if test="@Date[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Description"/> <xsl:if test="@Description[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Designator"/> <xsl:if test="@Designator[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Designator_X_Mil_"/> <xsl:if test="@Designator_X_Mil_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Designator_X_mm_"/> <xsl:if test="@Designator_X_mm_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Designator_Y_Mil_"/> <xsl:if test="@Designator_Y_Mil_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Designator_Y_mm_"/> <xsl:if test="@Designator_Y_mm_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@DesignItemId"/> <xsl:if test="@DesignItemId[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Document"/> <xsl:if test="@Document[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@DocumentFullPathAndName"/> <xsl:if test="@DocumentFullPathAndName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@DocumentName"/> <xsl:if test="@DocumentName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@DocumentNumber"/> <xsl:if test="@DocumentNumber[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@DrawnBy"/> <xsl:if test="@DrawnBy[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Engineer"/> <xsl:if test="@Engineer[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Footprint"/> <xsl:if test="@Footprint[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Height_Mil_"/> <xsl:if test="@Height_Mil_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Height_mm_"/> <xsl:if test="@Height_mm_[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ImagePath"/> <xsl:if test="@ImagePath[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Index"/> <xsl:if test="@Index[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ItemGUID"/> <xsl:if test="@ItemGUID[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@LatestRevisionDate"/> <xsl:if test="@LatestRevisionDate[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@LatestRevisionNote"/> <xsl:if test="@LatestRevisionNote[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Library_Name"/> <xsl:if test="@Library_Name[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Library_Reference"/> <xsl:if test="@Library_Reference[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@LibRef"/> <xsl:if test="@LibRef[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@LogicalDesignator"/> <xsl:if test="@LogicalDesignator[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Model_Footprint"/> <xsl:if test="@Model_Footprint[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Model_Signal_Integrity"/> <xsl:if test="@Model_Signal_Integrity[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Model_Simulation"/> <xsl:if test="@Model_Simulation[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Models"/> <xsl:if test="@Models[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ModifiedDate"/> <xsl:if test="@ModifiedDate[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Organization"/> <xsl:if test="@Organization[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@PackageDescription"/> <xsl:if test="@PackageDescription[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@PackageReference"/> <xsl:if test="@PackageReference[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@PartType"/> <xsl:if test="@PartType[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@PCB3D"/> <xsl:if test="@PCB3D[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@PhysicalPath"/> <xsl:if test="@PhysicalPath[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Pins"/> <xsl:if test="@Pins[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Project"/> <xsl:if test="@Project[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@ProjectName"/> <xsl:if test="@ProjectName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Published"/> <xsl:if test="@Published[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Publisher"/> <xsl:if test="@Publisher[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Quantity"/> <xsl:if test="@Quantity[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Revision"/> <xsl:if test="@Revision[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@RevisionGUID"/> <xsl:if test="@RevisionGUID[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Rule"/> <xsl:if test="@Rule[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@SheetNumber"/> <xsl:if test="@SheetNumber[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@SheetTotal"/> <xsl:if test="@SheetTotal[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Signal_Integrity"/> <xsl:if test="@Signal_Integrity[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Simulation"/> <xsl:if test="@Simulation[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@SourceLibraryName"/> <xsl:if test="@SourceLibraryName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Sub_Parts"/> <xsl:if test="@Sub_Parts[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Time"/> <xsl:if test="@Time[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Title"/> <xsl:if test="@Title[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@UniqueIdName"/> <xsl:if test="@UniqueIdName[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@UniqueIdPath"/> <xsl:if test="@UniqueIdPath[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@Variant"/> <xsl:if test="@Variant[.='']">&#160;</xsl:if> </TD> <TD align="left"> <xsl:value-of select="@VaultGUID"/> <xsl:if test="@VaultGUID[.='']">&#160;</xsl:if> </TD> </TR> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template> </xsl:stylesheet>
<filename>xsl/edif_012_page.csv.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:apply-templates select="edif"/> </xsl:template> <xsl:template match="edif"> <xsl:variable name="lib" select="design/cellref/libraryref/@name"/> <xsl:variable name="cell" select="design/cellref/@name"/> <xsl:apply-templates select="library[@name=$lib]/cell[@name=$cell]/view/contents"/> </xsl:template> <xsl:template match="contents"> <xsl:text>page,@page,instance,net</xsl:text> <xsl:text>,pagesize-xs,pagesize-ys,pagesize-xe,pagesize-ye</xsl:text> <xsl:text>.boundbox-xs,boundbox-ys,boundbox-xe,boundbox-ye</xsl:text> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="page"/> </xsl:template> <xsl:template match="page"> <xsl:value-of select="@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="@name" disable-output-escaping="yes"/> <xsl:text>,</xsl:text> <xsl:if test="instance">true</xsl:if> <xsl:text>,</xsl:text> <xsl:if test="net">true</xsl:if> <xsl:text>,</xsl:text> <xsl:call-template name="_pt"> <xsl:with-param name="pt" select="pagesize/rectangle/pt[1]"/> </xsl:call-template> <xsl:text>,</xsl:text> <xsl:call-template name="_pt"> <xsl:with-param name="pt" select="pagesize/rectangle/pt[2]"/> </xsl:call-template> <xsl:text>,</xsl:text> <xsl:call-template name="_pt"> <xsl:with-param name="pt" select="boundingbox/rectangle/pt[1]"/> </xsl:call-template> <xsl:text>,</xsl:text> <xsl:call-template name="_pt"> <xsl:with-param name="pt" select="boundingbox/rectangle/pt[2]"/> </xsl:call-template> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template name="_pt"> <xsl:param name="pt" select="true()"/> <xsl:value-of select="substring-before($pt,' ')"/> <xsl:text>,</xsl:text> <xsl:value-of select="substring-after($pt,' ')"/> </xsl:template> </xsl:stylesheet>
<filename>XSLT/hello.xsl <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:apply-templates select="message"/> </xsl:template> <xsl:template match="message"> <html> <body> <h1> <xsl:value-of select="."/> </h1> </body> </html> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <xsl:for-each select="CIM//INSTANCE"> <DIV STYLE="padding:.3in .1in .3in .3in; font-family:Arial Black; background-color:maroon"> <TABLE> <TR> <TD COLSPAN="2"> <DIV STYLE="margin:2px; padding:0em .5em; background-color:teal; color:white"> Processor Load : <xsl:value-of select="PROPERTY[@NAME='LoadPercentage']/VALUE"/>%<BR/> <OBJECT classid="clsid:0713E8D2-850A-101B-AFC0-4210102A8DA7" id="ProgressBar1" height="15" width="265"> <PARAM NAME="_ExtentX" VALUE="7011"/> <PARAM NAME="_ExtentY" VALUE="397"/> <PARAM NAME="_Version" VALUE="327682"/> <PARAM NAME="BorderStyle" VALUE="0"/> <PARAM NAME="Appearance" VALUE="1"/> <PARAM NAME="MousePointer" VALUE="0"/> <PARAM NAME="Enabled" VALUE="1"/> <PARAM NAME="OLEDropMode" VALUE="0"/> <PARAM NAME="Min" VALUE="0"/> <PARAM NAME="Max" VALUE="100"/> </OBJECT> </DIV> </TD> </TR> <TR></TR> </TABLE> </DIV> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Call-a-function/XSLT/call-a-function.xslt <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <demo> <!-- XSLT 1.0 actually defines two function-like constructs that are used variously depending on the context. --> <xsl:call-template name="xpath-function-demos"/> <xsl:call-template name="xslt-template-demos"/> </demo> </xsl:template> <xsl:template name="xpath-function-demos"> <!-- A 'function' in XSLT 1.0 is a function that can be called from an XPath 1.0 expression (such as from "select" or "test" attribute of several XSLT elements). The following demos apply to these functions. --> <!-- Calling function that requires no arguments --> <!-- false() always returns a boolean false value --> <line>This test is <xsl:if test="false()">NOT</xsl:if> OK.</line> <!-- Calling a function with a fixed number of arguments --> <!-- not() takes exactly 1 argument. starts-with() takes exactly 2 arguments. --> <line>'haystack' does <xsl:if test="not(starts-with('haystack', 'hay'))">NOT</xsl:if> start with 'hay'.</line> <!-- Calling a function with optional arguments --> <!-- If the third argument of substring() is omitted, the length of the string is assumed. --> <line>'<xsl:value-of select="substring('haystack', 1, 3)"/>' = 'hay'</line> <line>'<xsl:value-of select="substring('haystack', 4)"/>' = 'stack'</line> <!-- Calling a function with a variable number of arguments --> <!-- concat() accepts two or more arguments. --> <line>'<xsl:value-of select="concat('abcd', 'efgh')"/>' = 'abcdefgh'</line> <line>'<xsl:value-of select="concat('ij', 'kl', 'mn', 'op')"/>' = 'ijklmnop'</line> <!-- Aggregate functions such as sum() and count() accept nodesets. This isn't quite the same as varargs but are probably worth mentioning. --> <line>The number of root elements in the input document is <xsl:value-of select="count(/*)"/> (should be 1).</line> <!-- Calling a function with named arguments --> <!-- XPath 1.0 uses only positional parameters. --> <!-- Using a function in statement context --> <!-- In general, XPath 1.0 functions have no side effects, so calling them as statements is useless. While implementations often allow writing extensions in imperative languages, the semantics of calling a function with side effects are, at the very least, implementation-dependent. --> <!-- Using a function in first-class context within an expression --> <!-- Functions are not natively first-class values in XPath 1.0. --> <!-- Obtaining the return value of a function --> <!-- The return value of the function is handled as specified by the various contexts in which an XPath expression is used. The return value can be stored in a "variable" (no destructive assignment is allowed), passed as a parameter to a function or a template, used as a conditional in an <xsl:if/> or <xsl:when/>, interpolated into text using <xsl:value-of/> or into an attribute value using brace syntax, and so forth. --> <!-- Here, concat() is interpolated into an attribute value using braces ({}). --> <line foo="{concat('Hello, ', 'Hello, ', 'Hello')}!">See attribute.</line> <!-- Distinguishing built-in functions and user-defined functions --> <!-- Given that functions aren't first-class here, the origin of any given function is known before run time. Incidentally, functions defined by the standard are generally unprefixed while implementation-specific extensions (and user extensions, if available) must be defined within a separate namespace and prefixed. --> <!-- Distinguishing subroutines and functions --> <!-- There are no "subroutines" in this sense—everything that looks like a subroutine has some sort of return or result value. --> <!-- Stating whether arguments are passed by value or by reference --> <!-- There is no meaningful distinction since there is no mechanism by which to mutate values. --> <!-- Is partial application possible and how --> <!-- Not natively. --> </xsl:template> <xsl:template name="xslt-template-demos"> <!-- A 'template' in XSLT 1.0 is a subroutine-like construct. When given a name (and, optionally, parameters), it can be called from within another template using the <xsl:call-template/> element. (An unnamed template is instead called according to its match and mode attributes.) The following demos apply to named templates. --> <!-- Unlike with functions, there are no built-in named templates to speak of. The ones used here are defined later in this transform. --> <!-- Answers for these prompts are the same as with XPath functions (above): Using a function in statement context Distinguishing subroutines and functions Stating whether arguments are passed by value or by reference Is partial application possible and how --> <!-- Calling function that requires no arguments --> <xsl:call-template name="nullary-demo"/> <!-- Note that even if a template has no parameters, it has access to the current node (.) as of the time of the call. This <xsl:apply-templates/> runs a matching template above that calls the template "nullary-context-demo" with no parameters. Another way to manipulate a template's idea of which node is current is by calling from inside a <xsl:for-each/> loop. --> <xsl:apply-templates select="/*" mode="nullary-context-demo-mode"/> <!-- A template parameter is made optional in the definition of the template by supplying an expression as its select attribute, which is evaluated and used as its value if the parameter is omitted. Note, though, that all template parameters have an implicit default value, the empty string, if the select attribute is not specified. Therefore, all template parameters are always optional, even when semantically they should not be. --> <!-- Calling a function with a fixed number of arguments --> <working note="When all parameters are supplied"> <xsl:call-template name="ternary-demo"> <xsl:with-param name="a" select="4"/> <xsl:with-param name="b">3</xsl:with-param> <xsl:with-param name="c" select="2 + 3"/> </xsl:call-template> </working> <broken note="When the third parameter 'c' is omitted"> <xsl:call-template name="ternary-demo"> <xsl:with-param name="a" select="4"/> <xsl:with-param name="b">3</xsl:with-param> </xsl:call-template> </broken> <!-- Calling a function with optional arguments --> <!-- With the optional third parameter --> <working name="When all parameters are supplied"> <xsl:call-template name="binary-or-ternary-demo"> <xsl:with-param name="a" select="4"/> <xsl:with-param name="b" select="3"/> <xsl:with-param name="c" select="5"/> </xsl:call-template> </working> <!-- Without the optional third parameter (which defaults to 0) --> <working name="When 'a' and 'b' are supplied but 'c' is defaulted to 0"> <xsl:call-template name="binary-or-ternary-demo"> <xsl:with-param name="a" select="4"/> <xsl:with-param name="b" select="3"/> </xsl:call-template> </working> <!-- Calling a function with a variable number of arguments --> <!-- Templates are not varargs-capable. Variable numbers of arguments usually appear in the form of a nodeset which is then bound to a single parameter name. --> <!-- Calling a function with named arguments --> <!-- Other than what comes with the current context, template arguments are always named and can be supplied in any order. Templates do not support positional arguments. Additionally, even arguments not specified by the template may be passed; they are silently ignored. --> <!-- Using a function in first-class context within an expression --> <!-- Templates are not first-class values in XSLT 1.0. --> <!-- Obtaining the return value of a function --> <!-- The output of a template is interpolated into the place of the call. Often, this is directly into the output of the transform, as with most of the above examples. However, it is also possible to bind the output as a variable or parameter. This is useful for using templates to compute parameters for other templates or for XPath functions. --> <!-- Which is the least of 34, 78, 12, 56? --> <xsl:variable name="lesser-demo-result"> <!-- The variable is bound to the output of this call --> <xsl:call-template name="lesser-value"> <xsl:with-param name="a"> <!-- A call as a parameter to another call --> <xsl:call-template name="lesser-value"> <xsl:with-param name="a" select="34"/> <xsl:with-param name="b" select="78"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="b"> <!-- and again --> <xsl:call-template name="lesser-value"> <xsl:with-param name="a" select="12"/> <xsl:with-param name="b" select="56"/> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:variable> <!-- The variable is used here in an XPath expression --> <line> <xsl:value-of select="concat('And the answer, which should be 12, is ', $lesser-demo-result, ', of course.')"/> </line> <!-- Distinguishing built-in functions and user-defined functions --> <!-- Virtually all templates are user-defined. --> </xsl:template> <!-- Templates supporting template demos above --> <xsl:template match="/*" mode="nullary-context-demo-mode"> <xsl:call-template name="nullary-context-demo"/> </xsl:template> <xsl:template name="nullary-demo"> <line>No parameters needed here!</line> </xsl:template> <xsl:template name="nullary-context-demo"> <!-- When a template is called it has access to the current node of the caller --> <xsl:for-each select="self::*"> <line>The context element here is named "<xsl:value-of select="local-name()"/>"</line> </xsl:for-each> </xsl:template> <xsl:template name="ternary-demo"> <!-- This demo requires, at least semantically, all three parameters. --> <xsl:param name="a"/> <xsl:param name="b"/> <xsl:param name="c"/> <line>(<xsl:value-of select="$a"/> * <xsl:value-of select="$b"/>) + <xsl:value-of select="$c"/> = <xsl:value-of select="($a * $b) + $c"/></line> </xsl:template> <xsl:template name="binary-or-ternary-demo"> <!-- This demo requires the first two parameters, but defaults the third to 0 if it is not supplied. --> <xsl:param name="a"/> <xsl:param name="b"/> <xsl:param name="c" select="0"/> <line>(<xsl:value-of select="$a"/> * <xsl:value-of select="$b"/>) + <xsl:value-of select="$c"/> = <xsl:value-of select="($a * $b) + $c"/></line> </xsl:template> <xsl:template name="lesser-value"> <xsl:param name="a"/> <xsl:param name="b"/> <xsl:choose> <xsl:when test="number($a) &lt; number($b)"> <xsl:value-of select="$a"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$b"/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<gh_stars>1-10 <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <!-- The elements of this stylesheet support various template calls in other stylesheets (like sfw_table.xsl). These templates can be overridden by importing another stylesheet that includes templates with the same signature as the one to be replaced. Like this: <xsl:stylesheet ...etc> <xsl:import href="sfw_utilties.xsl" /> <xsl:import href="sfw_utility_overrides.xsl" /> --> <xsl:import href="sfw_generics.xsl" /> <xsl:import href="sfw_variables.xsl" /> <xsl:import href="sfw_resolver.xsl" /> <xsl:variable name="vars" select="/*/*[@rndx][@type='variables']" /> <xsl:variable name="alt_vars" select="/*/*[@rndx][not(@type)][count(*[local-name()=../@row-name])=1]" /> <xsl:template match="field" mode="classify"> <xsl:choose> <xsl:when test="@data-class"><xsl:value-of select="@data-class" /></xsl:when> <xsl:when test="substring(@type,(string-length(@type)-3))='INT' or @type='INTEGER'">INT_CLASS</xsl:when> <xsl:when test="@type='DECIMAL' or @type='NUMERIC'">DEC_CLASS</xsl:when> <xsl:when test="contains(@type,'TIME') or contains(@type,'DATE')">TIME_CLASS</xsl:when> <xsl:when test="@type='FLOAT' or @type='DOUBLE'">FLOAT_CLASS</xsl:when> <xsl:otherwise>STRING_CLASS</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="field" mode="def_css_class"> <xsl:variable name="class"> <xsl:apply-templates select="." mode="classify" /> </xsl:variable> <xsl:choose> <xsl:when test="$class='INT_CLASS' or $class='DEC_CLASS' or $class='FLOAT_CLASS'">def_right</xsl:when> <xsl:when test="$class='TIME_CLASS'">def_center</xsl:when> <xsl:otherwise>def_left</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="*[@rndx]" mode="get_idname"> <xsl:variable name="fname"> <xsl:apply-templates select="schema" mode="get_id_field_name" /> </xsl:variable> <xsl:variable name="attr" select="*[../@row-name][1]/@*[1]" /> <xsl:choose> <xsl:when test="schema"><xsl:value-of select="$fname" /></xsl:when> <xsl:when test="$attr"><xsl:value-of select="local-name($attr)" /></xsl:when> <xsl:otherwise>id</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="*[@rndx]" mode="get_idval"> <xsl:param name="row" /> <xsl:variable name="idname"> <xsl:apply-templates select="." mode="get_idname" /> </xsl:variable> <xsl:value-of select="$row/@*[local-name()=$idname]" /> </xsl:template> <xsl:template match="@*" mode="gen_path"> <xsl:value-of select="concat('[@', local-name(), '=', $apos, ., $apos, ']')" /> </xsl:template> <xsl:template match="*" mode="gen_path"> <xsl:variable name="par" select="parent::*" /> <xsl:if test="$par"> <xsl:apply-templates select="$par" mode="gen_path" /> </xsl:if> <xsl:value-of select="concat('/', local-name())" /> </xsl:template> <xsl:template match="*[local-name()=../@row-name]" mode="gen_path"> <xsl:variable name="par" select="parent::*" /> <xsl:if test="$par"> <xsl:apply-templates select="$par" mode="gen_path" /> </xsl:if> <xsl:variable name="idname"> <xsl:apply-templates select=".." mode="get_idname" /> </xsl:variable> <xsl:value-of select="concat('/', local-name())" /> <xsl:apply-templates select="@*[local-name()=$idname]" mode="gen_path" /> </xsl:template> <xsl:template match="*[@rndx]" mode="gen_path"> <xsl:variable name="par" select="parent::*" /> <xsl:if test="$par"> <xsl:apply-templates select="$par" mode="gen_path" /> </xsl:if> <xsl:value-of select="concat('/', local-name())" /> <xsl:apply-templates select="@rndx" mode="gen_path" /> <xsl:apply-templates select="@merged" mode="gen_path" /> </xsl:template> <xsl:template match="*" mode="add_result_attribute"> <xsl:variable name="result_inst" select="ancestor-or-self::*[@result]/@result" /> <xsl:variable name="result" select="ancestor-or-self::*[@rndx]" /> <xsl:variable name="val"> <xsl:choose> <xsl:when test="$result_inst"> <xsl:value-of select="$result_inst[1]" /> </xsl:when> <xsl:when test="$result"> <xsl:apply-templates select="$result" mode="gen_path" /> </xsl:when> </xsl:choose> </xsl:variable> <xsl:if test="$val"> <xsl:attribute name="data-result"><xsl:value-of select="$val" /></xsl:attribute> </xsl:if> </xsl:template> <xsl:template match="*[@rndx]" mode="add_data_attribute"> <xsl:param name="name" /> <xsl:variable name="s_val" select="schema/@*[local-name()=$name]"/> <xsl:variable name="r_val" select="@*[not($s_val)][local-name()=$name]"/> <xsl:variable name="d_val" select="/*[not($s_val|$r_val)]/@*[local-name()=$name]"/> <xsl:variable name="val" select="$d_val | $r_val | $s_val" /> <xsl:if test="$val"> <xsl:variable name="aname" select="concat('data-',$name)" /> <xsl:attribute name="{$aname}"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="$val" /> </xsl:call-template> </xsl:attribute> </xsl:if> </xsl:template> <xsl:template match="@*" mode="add_resolved_attribute"> <xsl:variable name="name" select="local-name()" /> <xsl:attribute name="{$name}"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="." /> </xsl:call-template> </xsl:attribute> </xsl:template> <xsl:template match="@*" mode="add_resolved_data_attribute"> <xsl:variable name="name" select="concat('data-', local-name())" /> <xsl:attribute name="{$name}"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="." /> </xsl:call-template> </xsl:attribute> </xsl:template> <xsl:template match="@*" mode="resolve_url"> <xsl:variable name="excl" select="number(substring(.,1,1)='!')" /> <xsl:variable name="ques" select="number(substring(.,($excl+1),1)='?')" /> <xsl:variable name="strpos" select="(1 + $excl)" /> <xsl:variable name="pre"> <xsl:if test="$ques='1'"> <xsl:value-of select="ancestor-or-self::*/@script" /> </xsl:if> </xsl:variable> <xsl:if test="$excl='1'">!</xsl:if> <xsl:value-of select="$pre" /> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="substring(.,$strpos)" /> <xsl:with-param name="escape" select="1" /> </xsl:call-template> </xsl:template> <xsl:template match="@*" mode="add_url_attribute"> <xsl:variable name="aname" select="concat('data-url-',local-name())" /> <xsl:attribute name="{$aname}"> <xsl:apply-templates select="." mode="resolve_url" /> </xsl:attribute> </xsl:template> <xsl:template name="build_sfw_class_attribute"> <xsl:param name="schema" select="/.." /> <xsl:param name="sfw_class" /> <xsl:attribute name="data-sfw-class"> <xsl:choose> <xsl:when test="$sfw_class"> <xsl:value-of select="$sfw_class" /> </xsl:when> <xsl:when test="$schema and $schema/@type"> <xsl:value-of select="$schema/@type" /> </xsl:when> <xsl:when test="$gview and $gview/@type"> <xsl:value-of select="$gview/@type" /> </xsl:when> <xsl:when test="not(../@merged) and /*/@mode-type"> <xsl:value-of select="/*/@mode-type" /> </xsl:when> <xsl:when test="../@merged and $mode-type"> <xsl:value-of select="$mode-type" /> </xsl:when> <xsl:otherwise>table</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:template> <xsl:template match="schema" mode="add_sfw_class_attribute"> <xsl:param name="sfw_class" /> <xsl:call-template name="build_sfw_class_attribute"> <xsl:with-param name="schema" select="." /> <xsl:with-param name="sfw_class" select="$sfw_class" /> </xsl:call-template> </xsl:template> <xsl:template match="*[@rndx]" mode="add_sfw_class_attribute"> <xsl:param name="sfw_class" /> <xsl:call-template name="build_sfw_class_attribute"> <xsl:with-param name="schema" select="@schema" /> <xsl:with-param name="sfw_class" select="$sfw_class" /> </xsl:call-template> </xsl:template> <!-- add generic attributes with html- prefix to current element: --> <xsl:template match="@*" mode="add_html_attribute"> <xsl:param name="skip" /> <xsl:if test="starts-with(local-name(), 'html-')"> <xsl:variable name="tag" select="substring(local-name(),6)" /> <xsl:variable name="omit"> <xsl:if test="$skip"> <xsl:variable name="_tag_" select="concat(' ',$tag,' ')" /> <xsl:if test="contains($skip, $_tag_)">true</xsl:if> </xsl:if> </xsl:variable> <xsl:if test="not($omit='true')"> <xsl:attribute name="{$tag}"> <xsl:value-of select="." /> </xsl:attribute> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="button/@*" mode="add_button_attribute"> <xsl:param name="skip-data-prefix" /> <xsl:variable name="tname" select="concat(' ',local-name(),' ')" /> <xsl:variable name="skip-prefix" select="contains($skip-data-prefix,$tname)" /> <xsl:variable name="name"> <xsl:choose> <xsl:when test="$skip-prefix"> <xsl:value-of select="local-name()" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('data-', local-name())" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:attribute name="{$name}"> <xsl:choose> <xsl:when test="local-name()='task'"> <xsl:apply-templates select="." mode="resolve_url" /> </xsl:when> <xsl:otherwise> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="." /> </xsl:call-template> </xsl:otherwise> </xsl:choose> <!-- <xsl:call-template name="resolve_refs"> --> <!-- <xsl:with-param name="str"> --> <!-- <xsl:if test="local-name()='task'"> --> <!-- <xsl:apply-templates select="." mode="fix_srm_selfref"/> --> <!-- </xsl:if> --> <!-- <xsl:value-of select="." /> --> <!-- </xsl:with-param> --> <!-- </xsl:call-template> --> </xsl:attribute> </xsl:template> <xsl:template match="button/@url" mode="add_button_attribute"> <xsl:attribute name="data-url"> <xsl:apply-templates select="." mode="resolve_url" /> </xsl:attribute> </xsl:template> <xsl:template match="@*" mode="make_jump_link"> <xsl:variable name="url"> <xsl:apply-templates select="." mode="resolve_url" /> </xsl:variable> <p>Click <xsl:element name="a"> <xsl:attribute name="href"><xsl:value-of select="$url" /></xsl:attribute> </xsl:element> if you are not taken there. </p> </xsl:template> <xsl:template match="button" mode="skip_check">0</xsl:template> <xsl:template match="button" mode="construct_button"> <xsl:variable name="skip"> <xsl:apply-templates select="." mode="skip_check" /> </xsl:variable> <xsl:if test="not(number($skip))"> <xsl:element name="button"> <xsl:attribute name="type">button</xsl:attribute> <xsl:apply-templates select="@*[not(local-name()='label')]" mode="add_button_attribute"> <xsl:with-param name="skip-data-prefix" select="' name value disabled '" /> </xsl:apply-templates> <xsl:apply-templates select="@label" mode="resolve_refs" /> </xsl:element> </xsl:if> </xsl:template> <!-- Recursive template to create button rows. Print 1. parent, 2. self, 3. self/buttons --> <xsl:template match="*" mode="construct_button_row"> <xsl:param name="class" /> <xsl:param name="host-type" select="'tr'" /> <xsl:if test="not(local-name()='buttons')"> <xsl:variable name="par" select="parent::*" /> <xsl:if test="$par"> <xsl:apply-templates select="$par" mode="construct_button_row"> <xsl:with-param name="class" select="$class" /> <xsl:with-param name="host-type" select="$host-type" /> </xsl:apply-templates> </xsl:if> </xsl:if> <xsl:variable name="host_class"> <xsl:text>button_row</xsl:text> <xsl:if test="$host-type='tr'"> <xsl:value-of select="concat(' headfix_', local-name(..),'_',local-name())" /> </xsl:if> <xsl:value-of select="concat(' sfwid_', generate-id())" /> <xsl:if test="$class"> <xsl:value-of select="concat(' ', $class)" /> </xsl:if> </xsl:variable> <xsl:variable name="buttons" select="button" /> <xsl:if test="count($buttons)&gt;0"> <xsl:choose> <xsl:when test="$host-type='tr'"> <tr class="{$host_class}"> <td colspan="99" style="background-color #66FF66"> <xsl:apply-templates select="$buttons" mode="construct_button" /> </td> </tr> </xsl:when> <xsl:otherwise> <p class="{$host_class}"> <xsl:apply-templates select="$buttons" mode="construct_button" /> </p> </xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="not(local-name()='buttons')"> <xsl:apply-templates select="buttons" mode="construct_button_row"> <xsl:with-param name="class" select="$class" /> <xsl:with-param name="host-type" select="$host-type" /> </xsl:apply-templates> </xsl:if> </xsl:template> <xsl:template name="construct_title"> <xsl:param name="str" /> <h2> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="$str" /> </xsl:call-template> </h2> </xsl:template> <xsl:template match="schema" mode="show_intro"> <xsl:param name="class" /> <xsl:param name="host-type" select="'tr'" /> <xsl:variable name="i_sch" select="intro" /> <xsl:variable name="i_doc" select="/*[not($i_sch)]/@intro" /> <xsl:variable name="intro" select="$i_sch|$i_doc" /> <xsl:if test="string-length($intro)"> <xsl:variable name="host_class"> <xsl:if test="$host-type='tr'"> <xsl:value-of select="concat(' headfix_', local-name(..),'_',local-name())" /> </xsl:if> <xsl:if test="$class"> <xsl:value-of select="concat(' ', $class)" /> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="$host-type='tr'"> <tr class="{$host_class}"> <td colspan="99"> <xsl:value-of select="$intro" /> </td> </tr> </xsl:when> <xsl:otherwise> <div class="{$host_class}"> <xsl:value-of select="$intro" /> </div> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- Recursive template to create button lines. Print 1. parent, 2. self, 3. self/buttons --> <xsl:template match="*" mode="construct_buttons"> <xsl:param name="class" /> <xsl:param name="host-type" select="'tr'" /> <xsl:if test="not(local-name()='buttons')"> <xsl:variable name="par" select="parent::*" /> <xsl:if test="$par[@buttons | @button]"> <xsl:apply-templates select="$par" mode="construct_buttons"> <xsl:with-param name="class" select="$class" /> <xsl:with-param name="host-type" select="$host-type" /> </xsl:apply-templates> </xsl:if> </xsl:if> <xsl:variable name="host_class"> <xsl:text>button_row</xsl:text> <xsl:if test="$host-type='tr'"> <xsl:value-of select="concat(' headfix_', local-name(..),'_',local-name())" /> </xsl:if> <xsl:value-of select="concat(' sfwid_', generate-id())" /> <xsl:if test="$class"> <xsl:value-of select="concat(' ', $class)" /> </xsl:if> </xsl:variable> <xsl:variable name="buttons" select="button" /> <xsl:if test="count($buttons)&gt;0"> <xsl:choose> <xsl:when test="$host-type='tr'"> <tr class="{$host_class}"> <td colspan="99" style="background-color #66FF66"> <xsl:apply-templates select="$buttons" mode="construct_button" /> </td> </tr> </xsl:when> <xsl:otherwise> <xsl:element name="{$host-type}"> <xsl:attribute name="class"> <xsl:value-of select="$host_class" /> </xsl:attribute> <xsl:apply-templates select="$buttons" mode="construct_button" /> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="not(local-name()='buttons')"> <xsl:apply-templates select="buttons" mode="construct_buttons"> <xsl:with-param name="class" select="$class" /> <xsl:with-param name="host-type" select="$host-type" /> </xsl:apply-templates> </xsl:if> </xsl:template> <xsl:template match="*" mode="add_tag_attribute"> <xsl:variable name="tag" select="ancestor-or-self::*[@tag]" /> <xsl:attribute name="get_value_from_row">yes</xsl:attribute> <xsl:if test="$tag and count($tag) &gt; 0"> <xsl:attribute name="data-tag"><xsl:value-of select="$tag[1]/@tag" /></xsl:attribute> </xsl:if> </xsl:template> <!-- <xsl:template match="*" mode="get_value_from_row"> --> <!-- <xsl:param name="name" /> --> <!-- <xsl:value-of select="current()/@*[local-name()=$name]" /> --> <!-- </xsl:template> --> <!-- <xsl:template name="get_var_value"> --> <!-- <xsl:param name="name" /> --> <!-- <xsl:variable name="prime"> --> <!-- <xsl:apply-templates select="$vars" mode="get_var_value"> --> <!-- <xsl:with-param name="name" select="$name" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:variable> --> <!-- <xsl:choose> --> <!-- <xsl:when test="string-length($prime)"> --> <!-- <xsl:value-of select="$prime" /> --> <!-- </xsl:when> --> <!-- <xsl:when test="count($alt_vars) &gt; 0"> --> <!-- <xsl:apply-templates select="$alt_vars" mode="get_var_value"> --> <!-- <xsl:with-param name="name" select="$name" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:when> --> <!-- </xsl:choose> --> <!-- </xsl:template> --> <!-- <xsl:template name="get_data_value"> --> <!-- <xsl:param name="name" /> --> <!-- <xsl:variable name="results" select="/*/*[@rndx and not(@type='variables')]" /> --> <!-- <xsl:variable name="formrs" --> <!-- select="$results[count(*[local-name()=../@row-name])=1]" /> --> <!-- <xsl:variable name="rows" select="$formrs/*[local-name()=../@row-name]" /> --> <!-- <xsl:variable name="attrs" select="$rows/@*[local-name()=$name]" /> --> <!-- <xsl:if test="count($attrs)"> --> <!-- <xsl:value-of select="$attrs[1]" /> --> <!-- </xsl:if> --> <!-- </xsl:template> --> <!-- <xsl:template match="*[@rndx]" mode="get_var_value"> --> <!-- <xsl:param name="name" /> --> <!-- <xsl:variable name="row" select="*[local-name()=current()/@row-name]" /> --> <!-- <xsl:if test="$row"> --> <!-- <xsl:variable name="val" select="$row[1]/@*[local-name()=$name]" /> --> <!-- <xsl:if test="$val"> --> <!-- <xsl:value-of select="$val" /> --> <!-- </xsl:if> --> <!-- </xsl:if> --> <!-- </xsl:template> --> <!-- <xsl:template name="add_enclose_attributes"> --> <!-- <xsl:param name="hints" /> --> <!-- <xsl:variable name="c_hint" select="substring-before($hints,'|')" /> --> <!-- <xsl:variable name="s_hint" select="substring($hints,1 div boolean(string-length($c_hint)=0))" /> --> <!-- <xsl:variable name="hint" select="concat($c_hint,$s_hint)" /> --> <!-- <xsl:variable name="name" select="normalize-space(substring-before($hint,'='))" /> --> <!-- <xsl:variable name="val" select="substring-after($hint,'=')" /> --> <!-- <xsl:attribute name="{$name}"> --> <!-- <xsl:value-of select="$val" /> --> <!-- </xsl:attribute> --> <!-- <xsl:if test="string-length($c_hint)&gt;0"> --> <!-- <xsl:call-template name="add_enclose_attributes"> --> <!-- <xsl:with-param name="hints" select="substring-after($hints,'|')" /> --> <!-- </xsl:call-template> --> <!-- </xsl:if> --> <!-- </xsl:template> --> <!-- <xsl:template name="enclose_val"> --> <!-- <xsl:param name="str" /> --> <!-- <xsl:param name="tag" /> --> <!-- <xsl:param name="hints" /> --> <!-- <xsl:element name="{$tag}"> --> <!-- <xsl:if test="string-length($hints)&gt;0"> --> <!-- <xsl:call-template name="add_enclose_attributes"> --> <!-- <xsl:with-param name="hints" select="$hints" /> --> <!-- </xsl:call-template> --> <!-- </xsl:if> --> <!-- <xsl:value-of select="$str" /> --> <!-- </xsl:element> --> <!-- </xsl:template> --> </xsl:stylesheet>
<xsl:choose> <xsl:when test="condition1"> <!-- included if condition1 evaluates to true (like C `if`) --> </xsl:when> <xsl:when test="condition2"> <!-- included if all previous conditions evaluated to false and condition2 evaluates to true (like C `else if`) --> </xsl:when> <-- ... --> <xsl:otherwise> <!-- included if all previous conditions evaluated to false (like C `else`) --> <!-- (The `otherwise` element is optional) --> </xsl:otherwise> </xsl:choose>
<?xml version="1.0"?> <!-- TODO: qualifier flavors here + extend XML translator to generate WMI-specific flavors too--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <!-- Root template selects all children of the CIM/DECLARATIONS tag --> <xsl:template match="/"> <xsl:apply-templates select="CIM//CLASS"/> <xsl:apply-templates select="CIM//INSTANCE"/> </xsl:template> <!-- QUALIFIER template formats a list of qualifier name/value pairs --> <xsl:template match="QUALIFIER"> <xsl:if match="QUALIFIER[0]">[</xsl:if> <xsl:value-of select="@NAME"/>(<xsl:apply-templates/>) <xsl:if match="QUALIFIER[$not$ end()]">,</xsl:if> <xsl:if match="QUALIFIER[end()]">]</xsl:if> </xsl:template> <!-- VALUE template formats a non-array property or qualifier value --> <xsl:template match="VALUE"> <xsl:if match="PROPERTY/VALUE">=</xsl:if> <xsl:choose> <xsl:when match="*[@TYPE='string']/VALUE">"<xsl:value-of/>"</xsl:when> <xsl:when match="*[@TYPE='datetime']/VALUE">"<xsl:value-of/>"</xsl:when> <xsl:when match="*[@TYPE='char16']/VALUE">'<xsl:value-of/>'</xsl:when> <xsl:otherwise><xsl:value-of/></xsl:otherwise> </xsl:choose> <xsl:if match="VALUE[$not$ end()]">,</xsl:if> </xsl:template> <!-- VALUE.ARRAY template formats a single element from an array --> <!-- property or qualifier value --> <xsl:template match="VALUE.ARRAY"> {<xsl:apply-templates/>} </xsl:template> <!-- VALUE.INDEXED template formats a single element from an array --> <!-- property or qualifier value --> <xsl:template match="VALUE.INDEXED"> <xsl:if match="VALUE.INDEXED[0]">{</xsl:if> <xsl:choose> <xsl:when match="*[@TYPE='string']/VALUE.INDEXED"><SPAN CLASS="mofstring">"<xsl:value-of/>"</SPAN></xsl:when> <xsl:when match="*[@TYPE='datetime']/VALUE.INDEXED"><SPAN CLASS="mofstring">"<xsl:value-of/>"</SPAN></xsl:when> <xsl:when match="*[@TYPE='char16']/VALUE.INDEXED"><SPAN CLASS="mofchar">'<xsl:value-of/>'</SPAN></xsl:when> <xsl:otherwise><SPAN CLASS="mofvalue"><xsl:value-of/></SPAN></xsl:otherwise> </xsl:choose> <xsl:if match="VALUE.INDEXED[$not$ end()]">,</xsl:if> <xsl:if match="VALUE.INDEXED[end()]">}</xsl:if> </xsl:template> <!-- VALUE.REFERENCE template formats a reference property value --> <xsl:template match="VALUE.REFERENCE"> = "<xsl:apply-templates/>" </xsl:template> <xsl:template match="VALUE.REFERENCE/CLASSPATH"> <xsl:apply-templates match="NAMESPACEPATH"/>:<xsl:value-of match="CLASSNAME"/> </xsl:template> <xsl:template match="VALUE.REFERENCE/INSTANCEPATH"> <xsl:apply-templates match="NAMESPACEPATH"/>:<xsl:value-of match="CLASSNAME"/>.<xsl:apply-templates match="KEYBINDING"/> </xsl:template> <!-- NAMESPACEPATH template formats a reference property value --> <xsl:template match="NAMESPACEPATH"> <xsl:if match="NAMESPACEPATH[HOST]">//<xsl:value-of match="HOST"/></xsl:if><xsl:apply-templates match="NAMESPACE"/> </xsl:template> <xsl:template match="NAMESPACE">/<xsl:value-of select="@NAME"/><xsl:apply-templates match="NAMESPACE"/></xsl:template> <!-- KEYBINDING template formats a reference property value --> <xsl:template match="KEYBINDING"> <xsl:value-of select="@NAME"/>=<xsl:apply-templates/><xsl:if match="KEYBINDING[$not$ end()]">,</xsl:if> </xsl:template> <xsl:template match="KEYVALUE"> <xsl:choose> <xsl:when match="*[@TYPE='numeric']/VALUE"><SPAN CLASS="mofvalue"><xsl:value-of/></SPAN></xsl:when> <xsl:when match="*[@TYPE='boolean']/VALUE"><SPAN CLASS="mofvalue"><xsl:value-of/></SPAN></xsl:when> <xsl:otherwise><SPAN CLASS="mofstring">"<xsl:value-of/>"</SPAN></xsl:otherwise> </xsl:choose> </xsl:template> <!-- INSTANCE template formats a single CIM non-association instance --> <xsl:template match="INSTANCE"> <TABLE WIDTH="100%"> <TR><TD BGCOLOR="red"><FONT SIZE="+2"><STRONG> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@CLASSNAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@CLASSNAME"/> </A> instance </STRONG> </FONT></TD></TR> </TABLE> <FONT SIZE="-1">Key values are denoted with *</FONT> <P/> <xsl:if match="INSTANCE[PROPERTY $or$ PROPERTY.ARRAY]"> <STRONG>Properties:</STRONG> <UL><TABLE> <xsl:apply-templates select="PROPERTY"/> <xsl:apply-templates select="PROPERTY.ARRAY"/> </TABLE></UL> </xsl:if> <xsl:if match="INSTANCE[PROPERTY.REFERENCE]"> <STRONG>References:</STRONG> <UL><TABLE> <xsl:apply-templates select="PROPERTY.REFERENCE"/> </TABLE></UL> </xsl:if> <xsl:if match="INSTANCE[METHOD]"> <STRONG>Methods:</STRONG> <UL><TABLE> <xsl:apply-templates select="METHOD"/> </TABLE></UL> </xsl:if> <!-- Associated object code. This needs some work for instances <P/> <STRONG>Associations:</STRONG> <P> <xsl:for-each select="ancestor(CIM)//INSTANCE/PROPERTY.REFERENCE[@REFERENCECLASS = context()/@NAME]"> <LI/> <B><xsl:value-of select="./@REFERENCECLASS"/></B> is associated to <xsl:for-each select="ancestor(CLASS)/PROPERTY.REFERENCE[@NAME != context()/@NAME]"> <B><A HREF="#" LANGUAGE="javascript" ID="Associated"> <xsl:attribute name="onclick"> return parent.options.control.GetClass("<xsl:value-of select="./@REFERENCECLASS"/>") </xsl:attribute> <xsl:value-of select="./@REFERENCECLASS"/></A></B> </xsl:for-each> as the <xsl:value-of select="./@NAME"/> property of the <B><A HREF="#" LANGUAGE="javascript" ID="Reference"> <xsl:attribute name="onclick"> return parent.options.control.GetClass("<xsl:value-of select="ancestor(CLASS)/@NAME"/>") </xsl:attribute> <xsl:value-of select="ancestor(CLASS)/@NAME"/></A></B> association.<P/> </xsl:for-each> </P> --> </xsl:template> <!-- CLASS template formats a single CIM non-association class --> <xsl:template match="CLASS"> <TABLE WIDTH="100%"> <TR><TD BGCOLOR="red"><FONT SIZE="+2"><STRONG> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </STRONG> <xsl:if match="*[@SUPERCLASS]"> : <xsl:value-of select="@SUPERCLASS"/> </xsl:if> </FONT></TD></TR> </TABLE> <FONT SIZE="-1">Key values are denoted with *</FONT> <P/> <xsl:if match="CLASS[PROPERTY $or$ PROPERTY.ARRAY]"> <STRONG>Properties:</STRONG> <UL><TABLE> <xsl:apply-templates select="PROPERTY"/> <xsl:apply-templates select="PROPERTY.ARRAY"/> </TABLE></UL> </xsl:if> <xsl:if match="CLASS[PROPERTY.REFERENCE]"> <STRONG>References:</STRONG> <UL><TABLE> <xsl:apply-templates select="PROPERTY.REFERENCE"/> </TABLE></UL> </xsl:if> <xsl:if match="CLASS[METHOD]"> <STRONG>Methods:</STRONG> <UL><TABLE> <xsl:apply-templates select="METHOD"/> </TABLE></UL> </xsl:if> <!-- Associated object code. Needs context() support to work <P/> <STRONG>Associations:</STRONG> <P> <xsl:for-each select="ancestor(CIM)//CLASS/PROPERTY.REFERENCE[@REFERENCECLASS = context()/@NAME]"> <LI/> <B><xsl:value-of select="./@REFERENCECLASS"/></B> is associated to <xsl:for-each select="ancestor(CLASS)/PROPERTY.REFERENCE[@NAME != context()/@NAME]"> <B><A HREF="#" LANGUAGE="javascript" ID="Associated"> <xsl:attribute name="onclick"> return parent.options.control.GetClass("<xsl:value-of select="./@REFERENCECLASS"/>") </xsl:attribute> <xsl:value-of select="./@REFERENCECLASS"/></A></B> </xsl:for-each> as the <xsl:value-of select="./@NAME"/> property of the <B><A HREF="#" LANGUAGE="javascript" ID="Reference"> <xsl:attribute name="onclick"> return parent.options.control.GetClass("<xsl:value-of select="ancestor(CLASS)/@NAME"/>") </xsl:attribute> <xsl:value-of select="ancestor(CLASS)/@NAME"/></A></B> association.<P/> </xsl:for-each> </P> --> </xsl:template> <!-- REFERENCE template formats a single CIM reference property --> <xsl:template match="PROPERTY.REFERENCE"> <TR><TD WIDTH="100"> <A HREF="#" LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="onclick"> return parent.options.control.GetClass("<xsl:value-of select="@REFERENCECLASS"/>") </xsl:attribute> <xsl:value-of select="@REFERENCECLASS"/> </A> </TD><TD> <xsl:for-each select="QUALIFIER[@NAME = 'key']">*</xsl:for-each> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD><TD> <xsl:apply-templates select="VALUE.REFERENCE"/> </TD></TR> </xsl:template> <!-- PROPERTY template formats a single CIM non-array property --> <xsl:template match="PROPERTY"> <TR><TD WIDTH="100"> <xsl:value-of select="@TYPE"/> </TD><TD> <xsl:for-each select="QUALIFIER[@NAME = 'key']">*</xsl:for-each> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD><TD> <xsl:apply-templates select="VALUE"/> </TD></TR> </xsl:template> <!-- PROPERTY.ARRAY template formats a single CIM array property --> <xsl:template match="PROPERTY.ARRAY"> <TR><TD WIDTH="100"> <xsl:value-of select="@TYPE"/> </TD><TD> <xsl:for-each select="QUALIFIER[@NAME = 'key']">*</xsl:for-each> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> [<xsl:value-of select="ARRAYSIZE"/>] </TD><TD> <xsl:apply-templates select="VALUE.INDEXED"/> </TD></TR> </xsl:template> <!-- METHOD template formats a single CIM method --> <xsl:template match="METHOD"> <TR><TD WIDTH="100"> <xsl:value-of select="@TYPE"/> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD><TD>(</TD></TR> <xsl:apply-templates select="PARAMETER"/> <xsl:apply-templates select="PARAMETER.ARRAY"/> <xsl:apply-templates select="PARAMETER.OBJECT"/> <xsl:apply-templates select="PARAMETER.OBJECTARRAY"/> <xsl:apply-templates select="PARAMETER.REFERENCE"/> <xsl:apply-templates select="PARAMETER.REFARRAY"/> <TR><TD></TD><TD></TD> <TD>)</TD></TR> </xsl:template> <!-- PARAMETER template formats a single CIM method parameter --> <xsl:template match="PARAMETER"> <TR><TD></TD><TD></TD><TD> <xsl:value-of select="@TYPE"/> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD></TR> </xsl:template> <!-- PARAMETER.ARRAY template formats a single CIM method parameter --> <xsl:template match="PARAMETER.ARRAY"> <TR><TD></TD><TD></TD><TD> <xsl:value-of select="@TYPE"/> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/>[] </A> </TD></TR> </xsl:template> <!-- PARAMETER.OBJECT template formats a single CIM method parameter --> <xsl:template match="PARAMETER.OBJECT"> <TR><TD></TD><TD></TD><TD> <xsl:choose> <xsl:when match="*[@REFERENCECLASS]"> <xsl:value-of select="@REFERENCECLASS"/> ref </xsl:when> <xsl:otherwise> object ref </xsl:otherwise> </xsl:choose> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD></TR> </xsl:template> <!-- PARAMETER.OBJECTARRAY template formats a single CIM method parameter --> <xsl:template match="PARAMETER.OBJECTARRAY"> <TR><TD></TD><TD></TD><TD> <xsl:choose> <xsl:when match="*[@REFERENCECLASS]"> <xsl:value-of select="@REFERENCECLASS"/> ref </xsl:when> <xsl:otherwise> object ref </xsl:otherwise> </xsl:choose> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/>[] </A> </TD></TR> </xsl:template> <!-- PARAMETER.REFERENCE template formats a single CIM method parameter --> <xsl:template match="PARAMETER.REFERENCE"> <TR><TD></TD><TD></TD><TD> <xsl:choose> <xsl:when match="*[@REFERENCECLASS]"> <xsl:value-of select="@REFERENCECLASS"/> ref </xsl:when> <xsl:otherwise> object ref </xsl:otherwise> </xsl:choose> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/> </A> </TD></TR> </xsl:template> <!-- PARAMETER.REFARRAY template formats a single CIM method parameter --> <xsl:template match="PARAMETER.REFARRAY"> <TR><TD></TD><TD></TD><TD> <xsl:choose> <xsl:when match="*[@REFERENCECLASS]"> <xsl:value-of select="@REFERENCECLASS"/> ref </xsl:when> <xsl:otherwise> object ref </xsl:otherwise> </xsl:choose> </TD><TD> <A LANGUAGE="javascript"> <xsl:attribute name="ID"> <xsl:value-of select="@NAME"/> </xsl:attribute> <xsl:attribute name="TITLE"> <xsl:for-each select="QUALIFIER[@NAME = 'Description']"> <xsl:value-of select="VALUE"/> </xsl:for-each> </xsl:attribute> <xsl:value-of select="@NAME"/>[] </A> </TD></TR> </xsl:template> </xsl:stylesheet>
<reponame>SoCdesign/audiomixer <!DOCTYPE stylesheet [ <!ENTITY ALPUPRS "ABCDEFGHIJKLMNOPQRSTUVWXYZ"> <!ENTITY ALPLWRS "abcdefghijklmnopqrstuvwxyz"> <!ENTITY UPR2LWS " '&ALPUPRS;' , '&ALPLWRS;' "> <!ENTITY HEXUPPER "ABCDEFxx0123456789"> <!ENTITY HEXLOWER "abcdefxX0123456789"> <!ENTITY HEXU2L " '&HEXLOWER;' , '&HEXUPPER;' "> <!ENTITY DIV2SLSH " 'div' , '&#047;' "> <!ENTITY NOT_ELM_CONN "not(name() = 'PARAMETER') and not(name() = 'PORT') and not(name() = 'BUSINTERFACE')"> <!ENTITY NOT_BEF_CONN "not(name() = 'DOCUMENT') and not(name() = 'DOCUMENTATION') and not(name() = 'DESCRIPTION') and not(name() = 'LICENSEINFO')"> <!ENTITY NOT_AFT_CONN "not(name() = 'MEMORYMP') and not(name() = 'PERIPHERALS') and not(name() = 'INTERRUPTINFO')"> ]> <!-- ============================================================== This XSL file converts BLOCK xml to SAV XTeller ============================================================== --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math exsl dyn xlink"> <xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8"/> <!-- =================================================== THE MAIN TEMPLATE FOR PORT VIEW SELECTED FOCUS =================================================== --> <xsl:template name="WRITE_VIEW_PORT_FOCUSED"> <xsl:choose> <xsl:when test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_EXTP_TREE_SET"/> </xsl:when> <xsl:when test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_EXTP_FLAT_SET"/> </xsl:when> </xsl:choose> <xsl:apply-templates select="$G_SYS_MODS/MODULE" mode="_port_view_focusing_on_selected"/> </xsl:template> <!-- ==================================================== THE MAIN TEMPLATE FOR BIF VIEW BUS FOCUS ==================================================== --> <xsl:template name="WRITE_VIEW_BIF_FOCUS_ON_BUSES"> <xsl:if test="$G_DEBUG = 'TRUE'"><xsl:message>Focusing on busses</xsl:message></xsl:if> <!-- <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="$G_GROUPS"/> </xsl:call-template> --> <xsl:apply-templates select="$G_SYS_MODS/MODULE" mode="_bif_view_focusing_on_buses"/> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <!-- The separator --> <xsl:element name="SET"> <xsl:attribute name="ID">MODULES WITH POTENTIAL CONNECTIONS TO FOCUSED BUS</xsl:attribute> <xsl:attribute name="CLASS">SEPARATOR</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Name</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">Name</xsl:attribute> <xsl:attribute name="VALUE">POTENTIAL MODULES BELOW HERE</xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">MODTYPE</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Version</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">HWVERSION</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Classification</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">IPCLASS</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Name</xsl:attribute> <xsl:attribute name="VIEWTYPE"></xsl:attribute> <xsl:attribute name="NAME">BUSNAME</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">TYPE</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Standard</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">BUSSTD</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> </xsl:element> </xsl:if> </xsl:template> <!-- ==================================================== THE MAIN TEMPLATE FOR BIF VIEW PROCESSOR FOCUS ==================================================== --> <xsl:template name="WRITE_VIEW_BIF_FOCUS_ON_PROCS"> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="$G_GROUPS"/> </xsl:call-template> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <!-- The separator --> <xsl:element name="SET"> <xsl:attribute name="ID">MODULES WITH POTENTIAL CONNECTIONS TO THIS SUBSYSTEM</xsl:attribute> <xsl:attribute name="CLASS">SEPARATOR</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Name</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">Name</xsl:attribute> <xsl:attribute name="VALUE">POTENTIAL MODULES BELOW HERE</xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">MODTYPE</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Version</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">HWVERSION</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Classification</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">IPCLASS</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Name</xsl:attribute> <xsl:attribute name="VIEWTYPE"></xsl:attribute> <xsl:attribute name="NAME">BUSNAME</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">TYPE</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Standard</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">BUSSTD</xsl:attribute> <xsl:attribute name="VALUE"></xsl:attribute> </xsl:element> </xsl:element> </xsl:if> </xsl:template> <!-- =============================================== COPY TRANSFORMS FOR FOCUSING IN BIF VIEW =============================================== --> <!-- Root copy template for connected --> <xsl:template match="node() | @*" mode="_bif_view_focusing_on_connected"> <xsl:copy> <xsl:apply-templates select="@* | node()" mode="_bif_view_focusing_on_connected"/> </xsl:copy> </xsl:template> <!-- Root copy template for potentials --> <xsl:template match="node() | @*" mode="_bif_view_focusing_on_potentials"> <xsl:copy> <xsl:apply-templates select="@* | node()" mode="_bif_view_focusing_on_potentials"/> </xsl:copy> </xsl:template> <xsl:template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <!-- Recursive !! --> <xsl:param name="iModules"/> <xsl:for-each select="$iModules/BLOCK[@ID and not(BLOCK) and not(@C)]"> <xsl:variable name="m_id_" select="@ID"/> <xsl:if test="(count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $m_id_]) &gt; 0)"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING BUS <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:apply-templates select="$m_module_" mode="_bif_view_focusing_on_connected"/> </xsl:if> </xsl:for-each> <xsl:for-each select="$iModules/BLOCK[@ID and BLOCK]"> <xsl:choose> <!-- An actual module that needs to be written --> <xsl:when test="not(starts-with(@ID,'__')) and BLOCK[@C] and (not(BLOCK/BLOCK) or BLOCK/BLOCK[@CP])"> <xsl:variable name="m_id_" select="@ID"/> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:apply-templates select="$m_module_" mode="_bif_view_focusing_on_connected"/> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PROCESSOR__.') or starts-with(@ID,'__GROUP_MASTER__.')"> <!-- <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>MASTER GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> --> <xsl:variable name="master_id_"> <xsl:choose> <xsl:when test="starts-with(@ID,'__GROUP_MASTER__.')"><xsl:value-of select="substring-after(@ID,'__GROUP_MASTER__.')"/> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PROCESSOR__.')"><xsl:value-of select="substring-after(@ID,'__GROUP_PROCESSOR__.')"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="num_focused_on_" select="count($G_ROOT/SAV/MASTER[(@INSTANCE = $master_id_)])"/> <xsl:choose> <xsl:when test="$num_focused_on_ &gt; 0"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>CONNECTED MASTER GROUP <xsl:value-of select="$master_id_"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>POTENTIAL MASTER GROUP <xsl:value-of select="$master_id_"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_SHARED__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>SHARED GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="p_id_" select="substring-after(@ID,'__GROUP_SHARED__')"/> <xsl:variable name="num_focused_on_" select="count($G_ROOT/SAV/MASTER[contains($p_id_,@INSTANCE)])"/> <xsl:choose> <xsl:when test="$num_focused_on_ &gt; 0"> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_MEMORY__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> MEMORY GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_id_" select="substring-after(@ID,'__GROUP_MEMORY__')"/> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PERIPHERAL__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PERIPHERAL GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_SLAVES__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>SLAVE GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="(starts-with(@ID,'__GROUP_IP__') and not($G_ROOT/SAV/@VIEW = 'BUSINTERFACE'))"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>IP GROUP<xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_CONNECTED_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_FLOATING__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>FLOATING GROUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> IGNORING <xsl:value-of select="@ID"/></xsl:message></xsl:if> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <!-- =============================================== TRANSFORMS FOR FOCUSED POTENTIAL MODULES =============================================== --> <xsl:template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <!-- Recursive !! --> <xsl:param name="iModules"/> <!-- BUS --> <xsl:for-each select="$iModules/BLOCK[@ID and not(BLOCK) and not(@C)]"> <xsl:variable name="m_id_" select="@ID"/> <xsl:if test="(count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $m_id_]) &gt; 0)"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING BUS <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:apply-templates select="$m_module_" mode="_bif_view_focusing_on_connected"/> </xsl:if> </xsl:for-each> <!-- GROUP --> <xsl:for-each select="$iModules/BLOCK[@ID and BLOCK]"> <xsl:choose> <xsl:when test="not(starts-with(@ID,'__')) and BLOCK[@C] and (not(BLOCK/BLOCK) or BLOCK/BLOCK[@CP])"> <xsl:variable name="m_id_" select="@ID"/> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:variable name="m_class_" select="$m_module_/@MODCLASS"/> <xsl:choose> <xsl:when test ="not($m_class_ = 'PROCESSOR')"> <xsl:variable name="potential_bifs_"> <xsl:for-each select="$m_module_/BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_std_" select="@BUSSTD"/> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_std_]) &gt; 0"><POTENTIAL/></xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="num_potential_" select="count(exsl:node-set($potential_bifs_)/POTENTIAL)"/> <xsl:variable name="num_connected_" select="count(exsl:node-set($potential_bifs_)/CONNECTED)"/> <xsl:if test=" ($num_potential_ &gt; 0)"> <xsl:apply-templates select="$m_module_" mode="_bif_view_focusing_on_potentials"/> </xsl:if> </xsl:when> <xsl:when test="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $m_id_)]) &gt; 0"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PERI PROCESSOR <xsl:value-of select="$m_id_"/></xsl:message></xsl:if> <xsl:apply-templates select="$m_module_" mode="_bif_view_focusing_on_potentials"/> </xsl:when> </xsl:choose> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_MEMORY__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING MEMORY <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_id_" select="substring-after(@ID,'__GROUP_MEMORY__')"/> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PERIPHERAL__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING POTENTIAL GROUP OF PERIPHERALS <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_SLAVES__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING POTENTIAL GROUP OF SLAVES <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_FOCUSED_POTENTIAL_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> IGNORING <xsl:value-of select="@ID"/></xsl:message></xsl:if> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ MODULE TEMPLATES +++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- =================================================== THE MODULE TEMPLATE FOR PORT VIEW SELECTED FOCUS =================================================== --> <xsl:template match="MODULE" mode="_port_view_focusing_on_selected"> <xsl:variable name="m_inst_" select="@INSTANCE"/> <xsl:if test="count($G_ROOT/SAV/SELECTED[(@INSTANCE = $m_inst_)]) &gt; 0"> <xsl:choose> <xsl:when test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_PORT_TREE_SET"> <xsl:with-param name="iModRef" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_PORT_FLAT_SET"> <xsl:with-param name="iModRef" select="self::node()"/> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:if> </xsl:template> <!-- =================================================== THE MODULE TEMPLATE FOR BIF VIEW BUS FOCUS =================================================== --> <xsl:template match="MODULE" mode="_bif_view_focusing_on_buses"> <xsl:variable name="m_instance_" select="@INSTANCE"/> <xsl:variable name="m_modclass_" select="@MODCLASS"/> <xsl:variable name="is_focused_bus_" select="count($G_ROOT/SAV/BUS[(@INSTANCE = $m_instance_)])"/> <xsl:variable name="bif_scope_"> <xsl:if test="$is_focused_bus_ = 0"> <!-- No need to waste time if we know its one of the focused bus --> <xsl:for-each select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:variable name="b_bstd_" select="@BUSSTD"/> <xsl:variable name="b_on_focused_bus_" select="count($G_ROOT/SAV/BUS[(@INSTANCE = $b_bus_)])"/> <xsl:variable name="b_of_focused_bstd_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_bstd_])"/> <xsl:if test="$b_on_focused_bus_ &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="$b_of_focused_bstd_ &gt; 0"><POTENTIAL/></xsl:if> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="on_focused_bus_" select="count(exsl:node-set($bif_scope_)/CONNECTED)"/> <xsl:variable name="of_focused_bstd_" select="count(exsl:node-set($bif_scope_)/POTENTIAL)"/> <xsl:if test="(($is_focused_bus_ + $on_focused_bus_ + $of_focused_bstd_) &gt; 0)"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING MODULE ON BUS <xsl:value-of select="@INSTANCE"/></xsl:message></xsl:if> <xsl:choose> <!-- TREE VIEW --> <xsl:when test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@INSTANCE"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:if test="($is_focused_bus_ &gt; 0)"> <xsl:attribute name="RGB_BG"><xsl:value-of select="$COL_FOCUSED_MASTER"/></xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="(($is_focused_bus_ + $on_focused_bus_) &gt; 0)"> <xsl:attribute name="CONNECTED_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="POTENTIAL_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <!-- CR452579 Can only modify INSTANCE name in Hierarchal view. --> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Name" NAME="INSTANCE" VALUE="{@INSTANCE}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{@MODTYPE}" VIEWICON="{LICENSEINFO/@ICON_NAME}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{@HWVERSION}"/> <xsl:variable name="ipClassification_"> <xsl:call-template name="F_ModClass_To_IpClassification"> <xsl:with-param name="iModClass" select="@MODCLASS"/> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Classification" NAME="IPCLASS" VALUE="{$ipClassification_}"/> <xsl:for-each select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:variable name="b_bstd_" select="@BUSSTD"/> <xsl:variable name="b_on_focused_bus_" select="count($G_ROOT/SAV/BUS[(@INSTANCE = $b_bus_)])"/> <xsl:variable name="b_of_focused_bstd_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_bstd_])"/> <xsl:variable name="bif_col_"> <xsl:choose> <xsl:when test="(not($b_bus_ ='__NOC__') and ($b_on_focused_bus_ = 0) and ($b_of_focused_bstd_ &gt; 0))"><xsl:value-of select="$COL_BG_OUTOF_FOCUS_CONNECTIONS"/></xsl:when> <xsl:otherwise>__NONE__</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(($b_on_focused_bus_ + $b_of_focused_bstd_) &gt; 0)"> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_BIF_TREE_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> <xsl:if test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_BIF_FLAT_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:for-each> </xsl:element> </xsl:when> <!-- FLAT VIEW --> <xsl:otherwise> <xsl:for-each select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:variable name="b_on_focused_bus_" select="count($G_ROOT/SAV/BUS[(@INSTANCE = $b_bus_)])"/> <xsl:if test="($b_on_focused_bus_ &gt; 0)"> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_BIF_TREE_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> </xsl:call-template> </xsl:if> <xsl:if test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_BIF_FLAT_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- =================================================== THE MODULE TEMPLATE FOR CONNECTED MODULES IN BIF VIEW PROC FOCUS =================================================== --> <xsl:template match="MODULE" mode="_bif_view_focusing_on_connected"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>EXAMINING CONNECTED MODULE <xsl:value-of select="@INSTANCE"/></xsl:message></xsl:if> <xsl:variable name="m_instance_" select="@INSTANCE"/> <xsl:variable name="m_class_" select="@MODCLASS"/> <xsl:variable name="bif_scope_"> <xsl:for-each select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_std_" select="@BUSSTD"/> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:variable name="b_name_" select="@NAME"/> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')"><POTENTIAL/></xsl:when> <xsl:when test="((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and (count(key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]) &gt; 0)"> <xsl:variable name="p2p_scope_"> <xsl:for-each select="$G_SYS_MODS"> <xsl:for-each select="key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]"> <xsl:variable name="b_instance_" select="../../@INSTANCE"/> <xsl:variable name="b_modclass_" select="../../@MODCLASS"/> <xsl:variable name="b_bifname_" select="@NAME"/> <xsl:if test="not(($b_bifname_ = $b_name_) and ($b_instance_ = $m_instance_))"> <xsl:variable name="num_mast_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_])"/> <xsl:variable name="num_peri_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $b_instance_)])"/> <xsl:if test="(($num_mast_connections_ + $num_peri_connections_) &gt; 0)"><INSCOPE/></xsl:if> <xsl:if test="(($num_mast_connections_ + $num_peri_connections_) = 0) and not($m_class_ = 'MEMORY') and not($m_class_ = 'MEMORY_CNTLR')"><UNFOCUSED/></xsl:if> </xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:variable name="num_p2p_inscope_" select="count(exsl:node-set($p2p_scope_)/INSCOPE)"/> <xsl:variable name="num_p2p_unfocused_" select="count(exsl:node-set($p2p_scope_)/UNFOCUSED)"/> <xsl:if test="$num_p2p_inscope_ &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="$num_p2p_unfocused_ &gt; 0"><UNFOCUSED/></xsl:if> </xsl:when> <!-- <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> P2P <xsl:value-of select="$b_instance_"/> == <xsl:value-of select="$num_peri_connections_"/> UNFOCUSED</xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> P2P <xsl:value-of select="$m_instance_"/>.<xsl:value-of select="$b_name_"/> = <xsl:value-of select="$num_p2p_unfocused_"/> UNFOCUSED</xsl:message></xsl:if> --> <xsl:when test="((@TYPE = 'SLAVE') and not(MASTERS/MASTER)) or (@TYPE = 'MASTER')"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="($b_bus_ = '__NOC__') and count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_std_]) &gt; 0"><POTENTIAL/></xsl:if> </xsl:when> <xsl:when test="(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><POTENTIAL/></xsl:if> <xsl:for-each select="MASTERS/MASTER"> <xsl:variable name="m_inst_" select="@INSTANCE"/> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:when test="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:otherwise><UNFOCUSED/></xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:when> </xsl:choose> </xsl:for-each> <xsl:if test="$m_class_ = 'BUS'"> <xsl:variable name="num_bifs_on_bus_" select="count(key('G_MAP_ALL_BIFS_BY_BUS',$m_instance_))"/> <!-- <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>BBBBBB <xsl:value-of select="$m_instance_"/> has <xsl:value-of select="$num_bifs_on_bus_"/> bifs </xsl:message></xsl:if> --> <xsl:for-each select="key('G_MAP_ALL_BIFS_BY_BUS',$m_instance_)"> <xsl:variable name="b_name_" select="@NAME"/> <xsl:variable name="b_type_" select="@TYPE"/> <xsl:variable name="b_inst_" select="../../@INSTANCE"/> <xsl:variable name="b_icls_" select="../../@MODCLASS"/> <xsl:variable name="is_mast_in_focus_" select="count($G_ROOT/SAV/MASTER[(@INSTANCE = $b_inst_)])"/> <xsl:variable name="is_peri_in_focus_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[@NAME = $b_inst_])"/> <xsl:if test="(($is_peri_in_focus_ + $is_mast_in_focus_) = 0)"><UNFOCUSED/></xsl:if> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="mod_id_" select="@INSTANCE"/> <xsl:variable name="potential_masts_id_" select="concat('__GROUP_MASTER__.',@INSTANCE)"/> <xsl:variable name="is_master_" select="count($G_GROUPS/BLOCK[(@ID = $potential_masts_id_)])"/> <xsl:variable name="is_focused_on_" select="count($G_ROOT/SAV/MASTER[(@INSTANCE = $mod_id_)])"/> <xsl:variable name="is_peripheral_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[@NAME = $mod_id_])"/> <xsl:variable name="num_potential_bifs_" select="count(exsl:node-set($bif_scope_)/POTENTIAL)"/> <xsl:variable name="num_connected_bifs_" select="count(exsl:node-set($bif_scope_)/CONNECTED)"/> <xsl:variable name="num_unfocused_bifs_" select="count(exsl:node-set($bif_scope_)/UNFOCUSED)"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> CONNECTED BIFS <xsl:value-of select="$num_connected_bifs_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> POTENTIAL BIFS <xsl:value-of select="$num_potential_bifs_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> IS PERIPHERAL <xsl:value-of select="$is_peripheral_"/></xsl:message></xsl:if> <xsl:if test="((@MODCLASS = 'BUS') or ($num_connected_bifs_ + $is_focused_on_ + $num_potential_bifs_ + $is_peripheral_) &gt; 0)"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PLACING MODULE <xsl:value-of select="@INSTANCE"/></xsl:message></xsl:if> <xsl:choose> <xsl:when test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@INSTANCE"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:choose> <xsl:when test="((@MODCLASS = 'BUS') or (($num_connected_bifs_ + $is_peripheral_ + $is_focused_on_) &gt; 0))"> <xsl:attribute name="CONNECTED_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="POTENTIAL_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $mod_id_)]) &gt; 0"> <xsl:attribute name="RGB_BG"><xsl:value-of select="$COL_FOCUSED_MASTER"/></xsl:attribute> </xsl:when> <xsl:when test="$num_unfocused_bifs_ &gt; 0"> <xsl:attribute name="RGB_FG"><xsl:value-of select="$COL_BG_OUTOF_FOCUS_CONNECTIONS"/></xsl:attribute> </xsl:when> </xsl:choose> <!-- CR452579 Can only modify INSTANCE name in Hierarchal view. --> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Name" NAME="INSTANCE" VALUE="{@INSTANCE}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{@MODTYPE}" VIEWICON="{LICENSEINFO/@ICON_NAME}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{@HWVERSION}"/> <xsl:variable name="ipClassification_"> <xsl:call-template name="F_ModClass_To_IpClassification"> <xsl:with-param name="iModClass" select="@MODCLASS"/> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Classification" NAME="IPCLASS" VALUE="{$ipClassification_}"/> <xsl:apply-templates select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_connected"/> </xsl:element> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_connected"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- =================================================== THE MODULE TEMPLATE FOR POTENTIAL MODULES IN BIF VIEW PROC FOCUS =================================================== --> <xsl:template match="MODULE" mode="_bif_view_focusing_on_potentials"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>EXAMINING POTENTIAL MODULE <xsl:value-of select="@INSTANCE"/></xsl:message></xsl:if> <xsl:variable name="m_instance_" select="@INSTANCE"/> <xsl:variable name="m_modclass_" select="@MODCLASS"/> <xsl:variable name="bif_scope_"> <xsl:for-each select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="b_std_" select="@BUSSTD"/> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')"><POTENTIAL/></xsl:when> <xsl:when test="((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and (count(key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]) &gt; 0)"> <xsl:variable name="p2p_scope_"> <xsl:for-each select="$G_SYS_MODS"> <!-- To set the right scope for the keys --> <xsl:for-each select="key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]"> <xsl:variable name="b_instance_" select="../../@INSTANCE"/> <xsl:variable name="b_modclass_" select="../../@MODCLASS"/> <xsl:variable name="num_mast_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_])"/> <xsl:variable name="num_peri_connections_"> <xsl:choose> <xsl:when test="((($m_modclass_ = 'PROCESSOR') and ($b_modclass_ = 'PROCESSOR')) or not($b_modclass_ = 'PROCESSOR'))"> <xsl:value-of select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $b_instance_)])"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(($num_mast_connections_ + $num_peri_connections_) &gt; 0)"><INSCOPE/></xsl:if> <xsl:if test="(($num_mast_connections_ + $num_peri_connections_) = 0) and not($m_modclass_ = 'MEMORY') and not($m_modclass_ = 'MEMORY_CNTLR')"><UNFOCUSED/></xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:variable name="num_p2p_inscope_" select="count(exsl:node-set($p2p_scope_)/INSCOPE)"/> <xsl:variable name="num_p2p_unfocused_" select="count(exsl:node-set($p2p_scope_)/UNFOCUSED)"/> <xsl:if test="$num_p2p_inscope_ &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="$num_p2p_unfocused_ &gt; 0"><UNFOCUSED/></xsl:if> </xsl:when> <xsl:when test="(@TYPE = 'SLAVE') and not(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="($b_bus_ = '__NOC__') and count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_std_]) &gt; 0"><POTENTIAL/></xsl:if> </xsl:when> <xsl:when test="(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><POTENTIAL/></xsl:if> <xsl:for-each select="MASTERS/MASTER"> <xsl:variable name="m_inst_" select="@INSTANCE"/> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:when test="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:otherwise><UNFOCUSED/></xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:when> </xsl:choose> </xsl:for-each> <xsl:if test="$m_modclass_ = 'BUS'"> <xsl:variable name="num_bifs_on_bus_" select="count(key('G_MAP_ALL_BIFS_BY_BUS',$m_instance_))"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>BUS <xsl:value-of select="$m_instance_"/> has <xsl:value-of select="$num_bifs_on_bus_"/> bifs </xsl:message></xsl:if> <xsl:for-each select="key('G_MAP_ALL_BIFS_BY_BUS',$m_instance_)"> <xsl:variable name="b_name_" select="@NAME"/> <xsl:variable name="b_type_" select="@TYPE"/> <xsl:variable name="b_inst_" select="../../@INSTANCE"/> <xsl:variable name="b_icls_" select="../../@MODCLASS"/> <xsl:variable name="is_mast_in_focus_" select="count($G_ROOT/SAV/MASTER[(@INSTANCE = $b_inst_)])"/> <xsl:variable name="is_peri_in_focus_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[@NAME = $b_inst_])"/> <xsl:if test="(($is_peri_in_focus_ + $is_mast_in_focus_) = 0)"><UNFOCUSED/></xsl:if> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="mod_id_" select="@INSTANCE"/> <xsl:variable name="potential_masts_id_" select="concat('__GROUP_MASTER__.',@INSTANCE)"/> <xsl:variable name="is_master_" select="count($G_GROUPS/BLOCK[(@ID = $potential_masts_id_)])"/> <xsl:variable name="is_peripheral_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[@NAME = $mod_id_])"/> <xsl:variable name="num_potential_bifs_" select="count(exsl:node-set($bif_scope_)/POTENTIAL)"/> <xsl:variable name="num_connected_bifs_" select="count(exsl:node-set($bif_scope_)/CONNECTED)"/> <xsl:variable name="num_unfocused_bifs_" select="count(exsl:node-set($bif_scope_)/UNFOCUSED)"/> <!-- --> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> <xsl:value-of select="$num_connected_bifs_"/> connected BIFS</xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> <xsl:value-of select="$num_potential_bifs_"/> potential bifs </xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> <xsl:value-of select="$num_unfocused_bifs_"/> unfocused bifs </xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> <xsl:value-of select="$is_peripheral_"/> is a peripheral</xsl:message></xsl:if> <xsl:if test="(($num_connected_bifs_ + $num_potential_bifs_ + $is_peripheral_) &gt; 0)"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING POTENTIAL MODULE <xsl:value-of select="@INSTANCE"/></xsl:message></xsl:if> <xsl:choose> <xsl:when test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@INSTANCE"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:choose> <xsl:when test="(($is_peripheral_ &gt; 0) or ($num_connected_bifs_ &gt; 0))"> <xsl:attribute name="CONNECTED_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="POTENTIAL_INDEX"><xsl:value-of select="@MHS_INDEX"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $mod_id_)]) &gt; 0"> <xsl:attribute name="RGB_BG"><xsl:value-of select="$COL_FOCUSED_MASTER"/></xsl:attribute> </xsl:when> <xsl:when test="$num_unfocused_bifs_ &gt; 0"> <xsl:attribute name="RGB_FG"><xsl:value-of select="$COL_BG_OUTOF_FOCUS_CONNECTIONS"/></xsl:attribute> </xsl:when> </xsl:choose> <!-- CR452579 Can only modify INSTANCE name in Hierarchal view. --> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Name" NAME="INSTANCE" VALUE="{@INSTANCE}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{@MODTYPE}" VIEWICON="{LICENSEINFO/@ICON_NAME}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{@HWVERSION}"/> <xsl:variable name="ipClassification_"> <xsl:call-template name="F_ModClass_To_IpClassification"> <xsl:with-param name="iModClass" select="@MODCLASS"/> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Classification" NAME="IPCLASS" VALUE="{$ipClassification_}"/> <xsl:apply-templates select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_potentials"/> </xsl:element> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_potentials"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ BUS INTERFACE TEMPLATES +++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- =================================================== THE BIF TEMPLATE FOR CONNECTED MODULES IN BIF VIEW PROC FOCUS =================================================== --> <xsl:template match="BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_connected"> <xsl:variable name="m_instance_" select="../../@INSTANCE"/> <xsl:variable name="b_std_" select="@BUSSTD"/> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:variable name="b_name_" select="@NAME"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> EXAMINING CONNECTED INTERFACE <xsl:value-of select="$m_instance_"/>.<xsl:value-of select="$b_name_"/></xsl:message></xsl:if> <xsl:variable name="bif_scope_"> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')"><POTENTIAL/></xsl:when> <xsl:when test="((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and (count(key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]) &gt; 0)"> <xsl:variable name="p2p_scope_"> <xsl:for-each select="$G_SYS_MODS"> <!-- to put in right scope for key below --> <xsl:for-each select="key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]"> <xsl:variable name="p2p_bifname_" select="@NAME"/> <xsl:variable name="p2p_instance_" select="../../@INSTANCE"/> <xsl:variable name="num_proc_connections_" select="count(key('G_MAP_PROCESSORS',$p2p_instance_))"/> <xsl:variable name="num_mast_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_])"/> <xsl:variable name="num_peri_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $p2p_instance_)])"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> <xsl:value-of select="$p2p_instance_"/>.<xsl:value-of select="$p2p_bifname_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PROC CONNECTIONS <xsl:value-of select="$num_proc_connections_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> MAST CONNECTIONS <xsl:value-of select="$num_mast_connections_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PERI CONNECTIONS <xsl:value-of select="$num_peri_connections_"/></xsl:message></xsl:if> <xsl:if test="($num_mast_connections_ = 0) and ($num_proc_connections_ &gt; 0)"><OUTSCOPE/></xsl:if> <xsl:if test="($num_mast_connections_ &gt; 0) or ($num_peri_connections_ &gt; 0)"><INSCOPE/></xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:variable name="num_p2p_inscope_" select="count(exsl:node-set($p2p_scope_)/INSCOPE)"/> <xsl:variable name="num_p2p_outscope_" select="count(exsl:node-set($p2p_scope_)/OUTSCOPE)"/> <xsl:if test="(($num_p2p_inscope_ &gt; 0) and ($num_p2p_outscope_ = 0))"><CONNECTED/></xsl:if> </xsl:when> <xsl:when test="(@TYPE = 'MASTER')"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> </xsl:when> <xsl:when test="(@TYPE = 'SLAVE') and not(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="($b_bus_ = '__NOC__') and count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_std_]) &gt; 0"><POTENTIAL/></xsl:if> </xsl:when> <xsl:when test="(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><POTENTIAL/></xsl:if> <xsl:for-each select="MASTERS/MASTER"> <xsl:variable name="m_inst_" select="@INSTANCE"/> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:when test="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:otherwise><UNFOCUSED/></xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="num_scope_unfocuseds_" select="count(exsl:node-set($bif_scope_)/UNFOCUSED)"/> <xsl:variable name="num_scope_potentials_" select="count(exsl:node-set($bif_scope_)/POTENTIAL)"/> <xsl:variable name="num_scope_connecteds_" select="count(exsl:node-set($bif_scope_)/CONNECTED)"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> CONNECTED SCOPE <xsl:value-of select="$num_scope_connecteds_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> POTENTIAL SCOPE <xsl:value-of select="$num_scope_potentials_"/></xsl:message></xsl:if> <xsl:variable name="include_bif_"> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')">TRUE</xsl:when> <xsl:when test="(((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and ($num_scope_connecteds_ &gt; 0))">TRUE</xsl:when> <xsl:when test="((@TYPE = 'MASTER') or (@TYPE = 'SLAVE') or (@TYPE = 'MASTER_SLAVE')) and (($num_scope_potentials_ &gt; 0) or ($num_scope_connecteds_ &gt; 0))">TRUE</xsl:when> <xsl:otherwise>FALSE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="($include_bif_ = 'TRUE')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PLACING CONNECTED INTERFACE <xsl:value-of select="$m_instance_"/>.<xsl:value-of select="$b_name_"/></xsl:message></xsl:if> <xsl:variable name="bif_col_"> <xsl:choose> <xsl:when test="($num_scope_unfocuseds_ &gt; 0)"><xsl:value-of select="$COL_BG_OUTOF_FOCUS_CONNECTIONS"/></xsl:when> <xsl:otherwise>__NONE__</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_BIF_TREE_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> <xsl:if test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_BIF_FLAT_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:template> <!-- =================================================== THE BIF TEMPLATE FOR POTENTIAL MODULES IN BIF VIEW PROC FOCUS =================================================== --> <xsl:template match="BUSINTERFACES/BUSINTERFACE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]" mode="_bif_view_focusing_on_potentials"> <xsl:variable name="m_instance_" select="../../@INSTANCE"/> <xsl:variable name="b_name_" select="@NAME"/> <xsl:variable name="b_std_" select="@BUSSTD"/> <xsl:variable name="b_bus_" select="@BUSNAME"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> EXAMINING POTENTIAL INTERFACE <xsl:value-of select="$m_instance_"/>.<xsl:value-of select="$b_name_"/></xsl:message></xsl:if> <xsl:variable name="bif_scope_"> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')"><POTENTIAL/></xsl:when> <xsl:when test="((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and (count(key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]) &gt; 0)"> <xsl:variable name="p2p_scope_"> <xsl:for-each select="$G_SYS_MODS"> <xsl:for-each select="key('G_MAP_P2P_BIFS',$b_bus_)[not(@BUSNAME = '__NOC__')]"> <xsl:variable name="b_instance_" select="../../@INSTANCE"/> <xsl:variable name="num_proc_connections_" select="count(key('G_MAP_PROCESSORS',$b_instance_))"/> <xsl:variable name="num_mast_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_])"/> <xsl:variable name="num_peri_connections_" select="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $b_instance_)])"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PROC CONNECTIONS <xsl:value-of select="$num_proc_connections_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> MAST CONNECTIONS <xsl:value-of select="$num_mast_connections_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PERI CONNECTIONS <xsl:value-of select="$num_peri_connections_"/></xsl:message></xsl:if> <xsl:if test="($num_mast_connections_ = 0) and ($num_proc_connections_ &gt; 0)"><OUTSCOPE/></xsl:if> <xsl:if test="($num_mast_connections_ &gt; 0) or ($num_peri_connections_ &gt; 0)"><INSCOPE/></xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:variable name="num_p2p_inscope_" select="count(exsl:node-set($p2p_scope_)/INSCOPE)"/> <xsl:variable name="num_p2p_outscope_" select="count(exsl:node-set($p2p_scope_)/OUTSCOPE)"/> <xsl:if test="(($num_p2p_inscope_ &gt; 0) and ($num_p2p_outscope_ = 0))"><CONNECTED/></xsl:if> </xsl:when> <xsl:when test="(((@TYPE = 'SLAVE') and not(MASTERS/MASTER)) or (@TYPE = 'MASTER'))"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><CONNECTED/></xsl:if> <xsl:if test="($b_bus_ = '__NOC__') and count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@BUSSTD = $b_std_]) &gt; 0"><POTENTIAL/></xsl:if> </xsl:when> <xsl:when test="(MASTERS/MASTER)"> <xsl:if test="count(exsl:node-set($G_FOCUSED_SCOPE)/BUS[@NAME = $b_bus_]) &gt; 0"><POTENTIAL/></xsl:if> <xsl:for-each select="MASTERS/MASTER"> <xsl:variable name="m_inst_" select="@INSTANCE"/> <xsl:choose> <xsl:when test="count($G_ROOT/SAV/MASTER[(@INSTANCE = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:when test="count(exsl:node-set($G_FOCUSED_SCOPE)/PERIPHERAL[(@NAME = $m_inst_)]) &gt; 0"><CONNECTED/></xsl:when> <xsl:otherwise><UNFOCUSED/></xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="num_scope_potentials_" select="count(exsl:node-set($bif_scope_)/POTENTIAL)"/> <xsl:variable name="num_scope_connecteds_" select="count(exsl:node-set($bif_scope_)/CONNECTED)"/> <xsl:variable name="num_scope_unfocuseds_" select="count(exsl:node-set($bif_scope_)/UNFOCUSED)"/> <xsl:variable name="include_bif_"> <xsl:choose> <xsl:when test="($b_bus_ = '__NOC__')">TRUE</xsl:when> <xsl:when test="(((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR')) and ($num_scope_connecteds_ &gt; 0))">TRUE</xsl:when> <xsl:when test="((@TYPE = 'MASTER') or (@TYPE = 'SLAVE') or (@TYPE = 'MASTER_SLAVE')) and (($num_scope_potentials_ &gt; 0) or ($num_scope_connecteds_ &gt; 0))">TRUE</xsl:when> <xsl:otherwise>FALSE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="bif_col_"> <xsl:choose> <xsl:when test="($num_scope_unfocuseds_ &gt; 0)"><xsl:value-of select="$COL_BG_OUTOF_FOCUS_CONNECTIONS"/></xsl:when> <xsl:otherwise>__NONE__</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="($include_bif_ = 'TRUE')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> PLACING POTENTIAL INTERFACE <xsl:value-of select="$m_instance_"/>.<xsl:value-of select="$b_name_"/></xsl:message></xsl:if> <xsl:if test="$G_ROOT/SAV/@MODE = 'TREE'"> <xsl:call-template name="WRITE_VIEW_BIF_TREE_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> <xsl:if test="$G_ROOT/SAV/@MODE = 'FLAT'"> <xsl:call-template name="WRITE_VIEW_BIF_FLAT_SET"> <xsl:with-param name="iModRef" select="../.."/> <xsl:with-param name="iBifRef" select="self::node()"/> <xsl:with-param name="iBifCol" select="$bif_col_"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:template> <!-- THINGS TO IGNORE --> <!-- Ignore all non valid bus interfaces --> <xsl:template match="MODULE/DESCRIPTION" mode="_bif_view_focusing_on_potentials"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/PARAMETERS" mode="_bif_view_focusing_on_potentials"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/DOCUMENTATION" mode="_bif_view_focusing_on_potentials"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/LICENSEINFO" mode="_bif_view_focusing_on_potentials"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <!-- Ignore all non valid bus interfaces --> <xsl:template match="BUSINTERFACES/BUSINTERFACE[(@IS_VALID = 'FALSE')]" mode="_bif_view_focusing_on_potentials"> </xsl:template> <xsl:template match="MODULE/DESCRIPTION" mode="_bif_view_focusing_on_connected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/PARAMETERS" mode="_bif_view_focusing_on_connected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/DOCUMENTATION" mode="_bif_view_focusing_on_connected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/LICENSEINFO" mode="_bif_view_focusing_on_connected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="BUSINTERFACES/BUSINTERFACE[(@IS_VALID = 'FALSE')]" mode="_bif_view_focusing_on_connected"> </xsl:template> <!-- Ignore all non valid bus interfaces --> <xsl:template match="SAV" mode="_port_view_focusing_on_selected"> </xsl:template> <xsl:template match="MODULE/DESCRIPTION" mode="_port_view_focusing_on_selected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/PARAMETERS" mode="_port_view_focusing_on_selected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/DOCUMENTATION" mode="_port_view_focusing_on_selected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <xsl:template match="MODULE/LICENSEINFO" mode="_port_view_focusing_on_selected"> <!-- <xsl:message>Ignoring invalid bus interface <xsl:value-of select="@NAME"/></xsl:message> --> </xsl:template> <!-- Ignore all non valid bus interfaces --> <xsl:template match="BUSINTERFACES/BUSINTERFACE[(@IS_VALID = 'FALSE')]" mode="_port_view_focusing_on_selected"> </xsl:template> <!-- Only write bus interfaces that are valid for non point to point interfaces that have busstds the processor can see --> <!-- =============================================== GROUP VIEW TRANSFORMS =============================================== --> <xsl:template name="WRITE_VIEW_GROUPS"> <xsl:param name="iModules"/> <xsl:if test="$G_DEBUG='TRUE'"> <!-- <xsl:message>BLKD AREA = <xsl:value-of select="$blkd_full_w_"/> X <xsl:value-of select="$blkd_full_h_"/></xsl:message> <xsl:message>NUMOF BUSSTD COLORS = <xsl:value-of select="$COL_BUSSTDS_NUMOF"/></xsl:message> <xsl:message>NUMOF INTERFACE TYPES= <xsl:value-of select="$G_IFTYPES_NUMOF"/></xsl:message> <xsl:message>NUMOF DIRS = <xsl:value-of select="$G_BLKD_COMPASS_DIRS_NUMOF"/></xsl:message> <xsl:apply-templates select="$G_BLOCKS/node()" mode="_place_module_blocks_"/> --> </xsl:if> <xsl:element name="SET"> <xsl:attribute name="CLASS">PROJECT</xsl:attribute> <xsl:attribute name="VIEW_ID">BUSINTERFACE</xsl:attribute> <xsl:attribute name="DISPLAYMODE">TREE</xsl:attribute> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="$G_BLOCKS"/> </xsl:call-template> </xsl:element> </xsl:template> <xsl:template name="WRITE_VIEW_BIF_GROUPS"> <xsl:param name="iModules"/> <xsl:for-each select="$iModules/BLOCK[@ID and not(BLOCK) and not(@C)]"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING BUS <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_id_" select="@ID"/> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:variable name="m_instance_" select="$m_module_/@INSTANCE"/> <xsl:variable name="m_version_" select="$m_module_/@HWVERSION"/> <xsl:variable name="m_type_" select="$m_module_/@MODTYPE"/> <xsl:variable name="m_class_" select="$m_module_/@MODCLASS"/> <xsl:variable name="m_busstd_" select="$m_module_/@BUSSTD"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@ID"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Name</xsl:attribute> <xsl:attribute name="VIEWTYPE">TEXTBOX</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_instance_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">MODTYPE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_type_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Version</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">HWVERSION</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_version_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Classification</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">IPCLASS</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_busstd_"/> BUS</xsl:attribute> </xsl:element> </xsl:element> </xsl:for-each> <xsl:for-each select="$iModules/BLOCK[@ID and BLOCK]"> <xsl:choose> <xsl:when test="not(starts-with(@ID,'__')) and BLOCK[@C] and (not(BLOCK/BLOCK) or BLOCK/BLOCK[@CP])"> <!-- <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING MODULE <xsl:value-of select="@ID"/></xsl:message></xsl:if> --> <xsl:variable name="m_id_" select="@ID"/> <xsl:variable name="m_module_" select="$G_SYS_MODS/MODULE[@INSTANCE = $m_id_]"/> <xsl:variable name="m_instance_" select="$m_module_/@INSTANCE"/> <xsl:variable name="m_type_" select="$m_module_/@MODTYPE"/> <xsl:variable name="m_class_" select="$m_module_/@MODCLASS"/> <xsl:variable name="m_version_" select="$m_module_/@HWVERSION"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@ID"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Name</xsl:attribute> <xsl:attribute name="VIEWTYPE">TEXTBOX</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_instance_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">MODTYPE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_type_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Version</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">HWVERSION</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_version_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">IP Classification</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">IPCLASS</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$m_class_"/></xsl:attribute> </xsl:element> <xsl:for-each select="BLOCK[@C and @ID]"> <xsl:variable name="b_bus_" select="@C"/> <xsl:variable name="b_name_" select="@ID"/> <xsl:variable name="b_if_" select="$m_module_/BUSINTERFACES/BUSINTERFACE[(@NAME = $b_name_)]"/> <xsl:variable name="b_type_" select="$b_if_/@TYPE"/> <xsl:variable name="b_busstd_" select="$b_if_/@BUSSTD"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING BIF <xsl:value-of select="$b_name_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> TYPE <xsl:value-of select="$b_type_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> BUS <xsl:value-of select="$b_bus_"/></xsl:message></xsl:if> <xsl:variable name="b_busNameViewType_"> <xsl:choose> <xsl:when test="$b_type_ = 'INITIATOR'">TEXTBOX</xsl:when> <xsl:when test="starts-with(@ID,'S_AXI')">BUTTON</xsl:when> <xsl:when test="starts-with(@ID,'S0_AXI')">BUTTON</xsl:when> <xsl:when test="starts-with(@ID,'S1_AXI')">BUTTON</xsl:when> <xsl:otherwise>DROPDOWN</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="b_busName_"> <xsl:choose> <xsl:when test="$b_if_/MASTERS/MASTER"> <xsl:variable name="mastersList_"><xsl:for-each select="$b_if_/MASTERS/MASTER"><xsl:if test="position() &gt; 1"> &amp; </xsl:if><xsl:value-of select="concat(@INSTANCE,'.',@BUSINTERFACE)"/></xsl:for-each></xsl:variable> <xsl:variable name="mastersConn_" select="concat($b_bus_,':',$mastersList_)"/> <xsl:value-of select="$mastersConn_"/> </xsl:when> <xsl:otherwise><xsl:value-of select="$b_bus_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> VIEWTYPE <xsl:value-of select="$b_busNameViewType_"/></xsl:message></xsl:if> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message> BUSNAME <xsl:value-of select="$b_busName_"/></xsl:message></xsl:if> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="@ID"/></xsl:attribute> <xsl:attribute name="CLASS">BUSINTERFACE</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">NAME</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$b_name_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Name</xsl:attribute> <xsl:attribute name="VIEWTYPE"><xsl:value-of select="$b_busNameViewType_"/></xsl:attribute> <xsl:attribute name="NAME">BUSNAME</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$b_busName_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Type</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">TYPE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$b_type_"/></xsl:attribute> </xsl:element> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">Bus Standard</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">BUSSTD</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$b_busstd_"/></xsl:attribute> </xsl:element> </xsl:element> </xsl:for-each> </xsl:element> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PROCESSOR__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PROCESSOR GROUP<xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="p_id_" select="substring-after(@ID,'__GROUP_PROCESSOR__')"/> <xsl:variable name="m_id_" select="concat('PROCESSOR',$p_id_)"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$m_id_"/></xsl:attribute> <xsl:attribute name="CLASS">GROUP</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE">Subsystem of <xsl:value-of select="$p_id_"/></xsl:attribute> </xsl:element> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:element> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_MASTER__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>MASTER GROUP<xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="p_id_" select="substring-after(@ID,'__GROUP_MASTER__')"/> <xsl:variable name="m_id_" select="concat('MASTER',$p_id_)"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$m_id_"/></xsl:attribute> <xsl:attribute name="CLASS">GROUP</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE">Subsystem of <xsl:value-of select="$p_id_"/></xsl:attribute> </xsl:element> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:element> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_SHARED__')"> <xsl:variable name="s_id_" select="substring-after(@ID,'__GROUP_SHARED__')"/> <xsl:variable name="m_id_" select="concat('SHARED',$s_id_)"/> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING SHARED PERIPHERALS <xsl:value-of select="$s_id_"/></xsl:message></xsl:if> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$m_id_"/></xsl:attribute> <xsl:attribute name="CLASS">GROUP</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE">Peripherals shared by <xsl:value-of select="$s_id_"/></xsl:attribute> </xsl:element> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:element> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_MEMORY__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING MEMORY <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_id_" select="substring-after(@ID,'__GROUP_MEMORY__')"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$m_id_"/></xsl:attribute> <xsl:attribute name="CLASS">GROUP</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE">(Memory) <xsl:value-of select="$m_id_"/></xsl:attribute> </xsl:element> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:element> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_PERIPHERAL__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING PERIPHERAL <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <xsl:when test="starts-with(@ID,'__GROUP_SLAVES__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING SLAVES <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:call-template name="WRITE_VIEW_BIF_GROUPS"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:when> <!-- <xsl:when test="starts-with(@ID,'__GROUP_SLAVES__')"> <xsl:if test="$G_DEBUG='TRUE'"><xsl:message>PLACING SLAVES GOUP <xsl:value-of select="@ID"/></xsl:message></xsl:if> <xsl:variable name="m_id_" select="substring-after(@ID,'__GROUP_SLAVES__')"/> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$m_id_"/></xsl:attribute> <xsl:attribute name="CLASS">GROUP</xsl:attribute> <xsl:element name="VARIABLE"> <xsl:attribute name="VIEWDISP">NAME</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE">(Slaves of) <xsl:value-of select="$m_id_"/></xsl:attribute> </xsl:element> <xsl:call-template name="F_Write_XTeller_MODULES"> <xsl:with-param name="iModules" select="self::node()"/> </xsl:call-template> </xsl:element> </xsl:when> --> </xsl:choose> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> --> <!-- ====================================================== Function to put TEXT CSS and other Internal Styling properties directly into the output svg. The Qt 4.3 Renderer cannot handle separate CSS StyleSheets ====================================================== --> <xsl:template name="F_WriteText"> <xsl:param name="iClass" select="'_UNKNOWN_'"/> <xsl:param name="iText" select="' '"/> <xsl:param name="iX" select="'0'"/> <xsl:param name="iY" select="'0'"/> <!-- <xsl:message>TEXT <xsl:value-of select="$iText"/></xsl:message> <xsl:message>CLASS <xsl:value-of select="$iClass"/></xsl:message> --> <xsl:element name="text"> <xsl:attribute name="x"><xsl:value-of select="$iX"/></xsl:attribute> <xsl:attribute name="y"><xsl:value-of select="$iY"/></xsl:attribute> <xsl:choose> <xsl:when test="$iClass = 'sharedbus_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'p2pbus_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'p2pbus_label_horiz'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'12pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="writing-mode"><xsl:value-of select="'tb'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'bif_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'bc_ipinst'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'bc_iptype'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'iogrp_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_IORING"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'mpmc_title'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'16pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'oblique'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'mpmc_biflabel'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_WHITE"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'intr_symbol'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'bkt_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'ipclass_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'9pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'key_header'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'key_title'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'14pt'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'key_label'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'key_label_small'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'900'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'key_label_ul'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="text-decoration"><xsl:value-of select="'underline'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'ipd_portlabel'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'ipd_biflabel'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'normal'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'ipd_iptype'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_XLNX"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Verdana Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'ipd_ipname'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'8pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'blkd_spec_name'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'start'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:when test="$iClass = 'blkd_spec_value_mid'"> <xsl:attribute name="fill"><xsl:value-of select="$COL_BLACK"/></xsl:attribute> <xsl:attribute name="stroke"><xsl:value-of select="'none'"/></xsl:attribute> <xsl:attribute name="font-size"><xsl:value-of select="'10pt'"/></xsl:attribute> <xsl:attribute name="font-style"><xsl:value-of select="'italic'"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="'bold'"/></xsl:attribute> <xsl:attribute name="text-anchor"><xsl:value-of select="'middle'"/></xsl:attribute> <xsl:attribute name="font-family"><xsl:value-of select="'Courier Arial Helvetica san-serif'"/></xsl:attribute> </xsl:when> <xsl:otherwise><xsl:message>UNKNOWN Text style class <xsl:value-of select="$iClass"/></xsl:message></xsl:otherwise> </xsl:choose> <xsl:value-of select="$iText"/> </xsl:element> </xsl:template> </xsl:stylesheet> <!-- text.ioplblgrp { fill: #000088; stroke: none; font-size: 10pt; font-style: normal; font-weight: 900; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.iplabel { fill: #000000; stroke: none; font-size: 8pt; font-style: italic; font-weight: 800; text-anchor: middle; font-family: Courier Arial Helvetica sans-serif; } text.iptype { fill: #AA0017; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.busintlabel { fill: #810017; stroke: none; font-size: 7pt; font-style: italic; font-weight: 900; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.mpmcbiflabel { fill: #FFFFFF; stroke: none; font-size: 6pt; font-style: normal; font-weight: 900; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.buslabel { fill: #CC3333; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.ipclass { fill: #000000; stroke: none; font-size: 7pt; font-style: normal; font-weight: bold; text-anchor: start; font-family: Times Arial Helvetica sans-serif; } text.procclass { fill: #000000; stroke: none; font-size: 7pt; font-style: normal; font-weight: bold; text-anchor: middle; font-family: Times Arial Helvetica sans-serif; } text.portlabel { fill: #000000; stroke: none; font-size: 8pt; font-style: normal; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.ipdbiflbl { fill: #000000; stroke: none; font-size: 8pt; font-style: normal; font-weight: bold; font-family: Verdana Arial Helvetica sans-serif; } text.mmMHeader { fill: #FFFFFF; stroke: none; font-size: 10pt; font-style: normal; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.mmSHeader { fill: #810017; stroke: none; font-size: 10pt; font-style: normal; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.dbglabel { fill: #555555; stroke: none; font-size: 8pt; font-style: normal; font-weight: 900; text-anchor: middle; font-family: Times Arial Helvetica sans-serif; } text.iopnumb { fill: #555555; stroke: none; font-size: 10pt; font-style: normal; font-weight: 900; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } tspan.iopgrp { fill: #000000; stroke: none; font-size: 8pt; font-style: normal; font-weight: 900; text-anchor: middle; baseline-shift:super; font-family: Arial Courier san-serif; } text.biflabel { fill: #000000; stroke: none; font-size: 6pt; font-style: normal; font-weight: 900; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.p2pbuslabel { fill: #000000; stroke: none; font-size: 10pt; font-style: italic; font-weight: bold; text-anchor: start; writing-mode: tb; font-family: Verdana Arial Helvetica sans-serif; } text.mpbuslabel { fill: #000000; stroke: none; font-size: 6pt; font-style: italic; font-weight: bold; text-anchor: start; writing-mode: tb; font-family: Verdana Arial Helvetica sans-serif; } text.sharedbuslabel { fill: #000000; stroke: none; font-size: 10pt; font-style: italic; font-weight: bold; text-anchor: start; font-family: Verdana Arial Helvetica sans-serif; } text.splitbustxt { fill: #000000; stroke: none; font-size: 6pt; font-style: normal; font-weight: bold; text-anchor: middle; font-family: sans-serif; } text.horizp2pbuslabel { fill: #000000; stroke: none; font-size: 6pt; font-style: italic; font-weight: bold; text-anchor: start; font-family: Verdana Arial Helvetica sans-serif; } text.keytitle { fill: #AA0017; stroke: none; font-size: 12pt; font-weight: bold; text-anchor: middle; font-family: Arial Helvetica sans-serif; } text.keyheader { fill: #000000; stroke: none; font-size: 10pt; font-weight: bold; text-anchor: middle; font-family: Arial Helvetica sans-serif; } text.keylabel { fill: #000000; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: start; font-family: Verdana Arial Helvetica sans-serif; } text.keylblul { fill: #000000; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: start; text-decoration: underline; font-family: Verdana Arial Helvetica sans-serif; } text.specsheader { fill: #000000; stroke: none; font-size: 10pt; font-weight: bold; text-anchor: start; font-family: Arial Helvetica sans-serif; } text.specsvalue { fill: #000000; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: start; font-family: Verdana Arial Helvetica sans-serif; } text.specsvaluemid { fill: #000000; stroke: none; font-size: 8pt; font-style: italic; font-weight: bold; text-anchor: middle; font-family: Verdana Arial Helvetica sans-serif; } text.intrsymbol { fill: #000000; stroke: none; font-size: 8pt; font-weight: bold; text-anchor: start; font-family: Arial Helvetica sans-serif; } -->
<reponame>LaudateCorpus1/RosettaCodeData <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:variable name="values" select="/*/*"/> <xsl:value-of select="sum($values) div count($values)"/> </xsl:template> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:value-of separator="&#x0A;" select=" for $n in 1 to 100 return concat('fizz'[not($n mod 3)], 'buzz'[not($n mod 5)], $n[$n mod 15 = (1,2,4,7,8,11,13,14)])"/> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/math" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG Tiny 1.1//EN" doctype-system="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"/> --> <!-- ======================= DEF BLOCK =============================== --> <xsl:template name="Define_IOPorts"> <xsl:variable name="key_col_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="'KEY'"/> </xsl:call-template> </xsl:variable> <xsl:variable name="key_lt_col_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="'KEY'"/> </xsl:call-template> </xsl:variable> <g id="G_IOPort"> <rect x="0" y="0" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" fill="{$COL_IORING_LT}" stroke="{$COL_IORING}" stroke-width="1"/> <path d="M 0,0 L {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} L 0,{$BLKD_IOP_H} Z" stroke="none" fill="{$COL_SYSPRT}"/> </g> <g id="G_BIPort"> <rect x="0" y="0" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" style="fill:{$COL_IORING_LT}; stroke:{$COL_IORING}; stroke-width:1"/> <path class="btop" d="M 0,{ceiling($BLKD_IOP_H div 2)} {ceiling($BLKD_IOP_W div 2)},0 {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} Z" style="stroke:none; fill:{$COL_SYSPRT}"/> <path class="bbot" d="M 0,{ceiling($BLKD_IOP_H div 2)} {ceiling($BLKD_IOP_W div 2)},{$BLKD_IOP_H} {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} Z" style="stroke:none; fill:{$COL_SYSPRT}"/> </g> <g id="KEY_IOPort"> <rect x="0" y="0" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" style="fill:{$key_lt_col_}; stroke:none;"/> <path class="ioport" d="M 0,0 L {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} L 0,{$BLKD_IOP_H} Z" style="stroke:none; fill:{$key_col_}"/> </g> <g id="KEY_BIPort"> <rect x="0" y="0" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" style="fill:{$key_lt_col_}; stroke:none;"/> <path class="btop" d="M 0,{ceiling($BLKD_IOP_H div 2)} {ceiling($BLKD_IOP_W div 2)},0 {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} Z" style="stroke:none; fill:{$key_col_}"/> <path class="bbot" d="M 0,{ceiling($BLKD_IOP_H div 2)} {ceiling($BLKD_IOP_W div 2)},{$BLKD_IOP_H} {$BLKD_IOP_W},{ceiling($BLKD_IOP_H div 2)} Z" style="stroke:none; fill:{$key_col_}"/> </g> <g id="KEY_INPort"> <use x="0" y="0" xlink:href="#KEY_IOPort"/> <rect x="{$BLKD_IOP_W}" y="0" width= "{ceiling($BLKD_IOP_W div 2)}" height="{$BLKD_IOP_H}" style="fill:{$COL_SYSPRT}; stroke:none;"/> </g> <g id="KEY_OUTPort"> <use x="0" y="0" xlink:href="#KEY_IOPort" transform="scale(-1,1) translate({$BLKD_IOP_W * -1},0)"/> <rect x="{$BLKD_IOP_W}" y="0" width= "{ceiling($BLKD_IOP_W div 2)}" height="{$BLKD_IOP_H}" style="fill:{$COL_SYSPRT}; stroke:none;"/> </g> <g id="KEY_INOUTPort"> <use x="0" y="0" xlink:href="#KEY_BIPort"/> <rect x="{$BLKD_IOP_W}" y="0" width= "{ceiling($BLKD_IOP_W div 2)}" height="{$BLKD_IOP_H}" style="fill:{$COL_SYSPRT}; stroke:none;"/> </g> </xsl:template> <!-- ======================= DRAW BLOCK =============================== --> <xsl:template name="Draw_IOPorts"> <xsl:variable name="ports_count_" select="count($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT)"/> <xsl:if test="($ports_count_ &gt; 30)"> <xsl:call-template name="Draw_IOPorts_4Sides"/> </xsl:if> <xsl:if test="($ports_count_ &lt;= 30)"> <xsl:call-template name="Draw_IOPorts_2Sides"/> </xsl:if> </xsl:template> <xsl:template name="Draw_IOPorts_2Sides"> <xsl:variable name="ports_count_" select="count($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT)"/> <xsl:variable name="ports_per_side_" select="ceiling($ports_count_ div 2)"/> <xsl:variable name="h_ofs_"> <xsl:value-of select="$BLKD_PRTCHAN_W + ceiling(($G_Total_DrawArea_W - (($ports_per_side_ * $BLKD_IOP_W) + (($ports_per_side_ - 1) * $BLKD_IOP_SPC))) div 2)"/> </xsl:variable> <xsl:variable name="v_ofs_"> <xsl:value-of select="$BLKD_PRTCHAN_H + ceiling(($G_Total_DrawArea_H - (($ports_per_side_ * $BLKD_IOP_H) + (($ports_per_side_ - 1) * $BLKD_IOP_SPC))) div 2)"/> </xsl:variable> <xsl:for-each select="EXTERNALPORTS/PORT"> <xsl:sort data-type="number" select="@INDEX" order="ascending"/> <xsl:variable name="poffset_" select="0"/> <xsl:variable name="pcount_" select="$poffset_ + (position() -1)"/> <xsl:variable name="pdir_"> <xsl:choose> <xsl:when test="(@DIR='I' or @DIR='IN' or @DIR='INPUT')">I</xsl:when> <xsl:when test="(@DIR='O' or @DIR='OUT' or @DIR='OUTPUT')">O</xsl:when> <xsl:when test="(@DIR='IO' or @DIR='INOUT')">B</xsl:when> <xsl:otherwise>I</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="pside_"> <xsl:choose> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 0) and ($pcount_ &lt; ($ports_per_side_ * 1)))">W</xsl:when> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 1) and ($pcount_ &lt; ($ports_per_side_ * 2)))">E</xsl:when> <xsl:otherwise>D</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="pdec_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($ports_per_side_ * 0)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($ports_per_side_ * 1)"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="px_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($BLKD_PRTCHAN_W - $BLKD_IOP_W)"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($h_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_W)) - 2)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($BLKD_PRTCHAN_W + ($BLKD_IORCHAN_W * 2) + $G_Total_DrawArea_W)"/></xsl:when> <xsl:when test="($pside_ = 'N')"><xsl:value-of select="($h_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_W)))"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="py_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($v_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_H)))"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($BLKD_PRTCHAN_H + ($BLKD_IORCHAN_H * 2) + $G_Total_DrawArea_H)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($v_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_H)))"/></xsl:when> <xsl:when test="($pside_ = 'N')"><xsl:value-of select="($BLKD_PRTCHAN_H - $BLKD_IOP_H)"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="prot_"> <xsl:choose> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'I'))">0</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'I'))">-90</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'I'))">180</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'I'))">90</xsl:when> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'O'))">180</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'O'))">90</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'O'))">0</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'O'))">-90</xsl:when> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'B'))">0</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="txo_"> <xsl:choose> <xsl:when test="($pside_ = 'W')">-10</xsl:when> <xsl:when test="($pside_ = 'S')">6</xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="(($BLKD_IOP_W * 2) - 4)"/></xsl:when> <xsl:when test="($pside_ = 'N')">6</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="tyo_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="ceiling($BLKD_IOP_H div 2) + 6"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($BLKD_IOP_H * 2) + 4"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="ceiling($BLKD_IOP_H div 2) + 6"/></xsl:when> <xsl:when test="($pside_ = 'N')">-2</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$pdir_ = 'B'"> <use x="{$px_}" y="{$py_}" id="{@NAME}" xlink:href="#G_BIPort" transform="rotate({$prot_},{$px_ + ceiling($BLKD_IOP_W div 2)},{$py_ + ceiling($BLKD_IOP_H div 2)})"/> </xsl:if> <xsl:if test="(($pside_ = 'S') and not($pdir_ = 'B'))"> <rect x="{$px_}" y="{$py_}" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" style="stroke:{$COL_IORING}; stroke-width:1"/> </xsl:if> <xsl:if test="not($pdir_ = 'B')"> <use x="{$px_}" y="{$py_}" id="{@NAME}" xlink:href="#G_IOPort" transform="rotate({$prot_},{$px_ + ceiling($BLKD_IOP_W div 2)},{$py_ + ceiling($BLKD_IOP_H div 2)})"/> </xsl:if> <text class="iopnumb" x="{$px_ + $txo_}" y="{$py_ + $tyo_}"> <xsl:value-of select="@INDEX"/><tspan class="iopgrp"><xsl:value-of select="@GROUP"/></tspan> </text> </xsl:for-each> </xsl:template> <xsl:template name="Draw_IOPorts_4Sides"> <xsl:variable name="ports_count_" select="count($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT)"/> <xsl:variable name="ports_per_side_" select="ceiling($ports_count_ div 4)"/> <xsl:variable name="h_ofs_"> <xsl:value-of select="$BLKD_PRTCHAN_W + ceiling(($G_Total_DrawArea_W - (($ports_per_side_ * $BLKD_IOP_W) + (($ports_per_side_ - 1) * $BLKD_IOP_SPC))) div 2)"/> </xsl:variable> <xsl:variable name="v_ofs_"> <xsl:value-of select="$BLKD_PRTCHAN_H + ceiling(($G_Total_DrawArea_H - (($ports_per_side_ * $BLKD_IOP_H) + (($ports_per_side_ - 1) * $BLKD_IOP_SPC))) div 2)"/> </xsl:variable> <xsl:for-each select="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <xsl:sort data-type="number" select="@INDEX" order="ascending"/> <xsl:variable name="poffset_" select="0"/> <xsl:variable name="pcount_" select="$poffset_ + (position() -1)"/> <xsl:variable name="pdir_"> <xsl:choose> <xsl:when test="(@DIR='I' or @DIR='IN' or @DIR='INPUT')">I</xsl:when> <xsl:when test="(@DIR='O' or @DIR='OUT' or @DIR='OUTPUT')">O</xsl:when> <xsl:when test="(@DIR='IO' or @DIR='INOUT')">B</xsl:when> <xsl:otherwise>I</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="pside_"> <xsl:choose> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 0) and ($pcount_ &lt; ($ports_per_side_ * 1)))">W</xsl:when> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 1) and ($pcount_ &lt; ($ports_per_side_ * 2)))">S</xsl:when> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 2) and ($pcount_ &lt; ($ports_per_side_ * 3)))">E</xsl:when> <xsl:when test="($pcount_ &gt;= ($ports_per_side_ * 3) and ($pcount_ &lt; ($ports_per_side_ * 4)))">N</xsl:when> <xsl:otherwise>D</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="pdec_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($ports_per_side_ * 0)"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($ports_per_side_ * 1)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($ports_per_side_ * 2)"/></xsl:when> <xsl:when test="($pside_ = 'N')"><xsl:value-of select="($ports_per_side_ * 3)"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="px_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($BLKD_PRTCHAN_W - $BLKD_IOP_W)"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($h_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_W)) - 2)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($BLKD_PRTCHAN_W + ($BLKD_IORCHAN_W * 2) + $G_Total_DrawArea_W)"/></xsl:when> <xsl:when test="($pside_ = 'N')"><xsl:value-of select="($h_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_W)))"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="py_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="($v_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_H)))"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($BLKD_PRTCHAN_H + ($BLKD_IORCHAN_H * 2) + $G_Total_DrawArea_H)"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="($v_ofs_ + (((position() - 1) - $pdec_) * ($BLKD_IOP_SPC + $BLKD_IOP_H)))"/></xsl:when> <xsl:when test="($pside_ = 'N')"><xsl:value-of select="($BLKD_PRTCHAN_H - $BLKD_IOP_H)"/></xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="prot_"> <xsl:choose> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'I'))">0</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'I'))">-90</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'I'))">180</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'I'))">90</xsl:when> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'O'))">180</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'O'))">90</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'O'))">0</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'O'))">-90</xsl:when> <xsl:when test="(($pside_ = 'W') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'S') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'E') and ($pdir_ = 'B'))">0</xsl:when> <xsl:when test="(($pside_ = 'N') and ($pdir_ = 'B'))">0</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="txo_"> <xsl:choose> <xsl:when test="($pside_ = 'W')">-14</xsl:when> <xsl:when test="($pside_ = 'S')">8</xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="(($BLKD_IOP_W * 2) - 4)"/></xsl:when> <xsl:when test="($pside_ = 'N')">8</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="tyo_"> <xsl:choose> <xsl:when test="($pside_ = 'W')"><xsl:value-of select="ceiling($BLKD_IOP_H div 2) + 6"/></xsl:when> <xsl:when test="($pside_ = 'S')"><xsl:value-of select="($BLKD_IOP_H * 2) + 4"/></xsl:when> <xsl:when test="($pside_ = 'E')"><xsl:value-of select="ceiling($BLKD_IOP_H div 2) + 6"/></xsl:when> <xsl:when test="($pside_ = 'N')">-2</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$pdir_ = 'B'"> <use x="{$px_}" y="{$py_}" id="{@NAME}" xlink:href="#G_BIPort" transform="rotate({$prot_},{$px_ + ceiling($BLKD_IOP_W div 2)},{$py_ + ceiling($BLKD_IOP_H div 2)})"/> </xsl:if> <xsl:if test="(($pside_ = 'S') and not($pdir_ = 'B'))"> <rect x="{$px_}" y="{$py_}" width= "{$BLKD_IOP_W}" height="{$BLKD_IOP_H}" style="stroke:{$COL_IORING}; stroke-width:1"/> </xsl:if> <xsl:if test="not($pdir_ = 'B')"> <use x="{$px_}" y="{$py_}" id="{@NAME}" xlink:href="#G_IOPort" transform="rotate({$prot_},{$px_ + ceiling($BLKD_IOP_W div 2)},{$py_ + ceiling($BLKD_IOP_H div 2)})"/> </xsl:if> <text class="iopnumb" x="{$px_ + $txo_}" y="{$py_ + $tyo_}"><xsl:value-of select="@INDEX"/><tspan class="iopgrp"><xsl:value-of select="@GROUP"/></tspan> </text> </xsl:for-each> </xsl:template> <xsl:template name="Define_ExtPortsTable"> <!-- <xsl:if test="$oriented_= 'WEST'"><xsl:value-of select="$proc2procX_ - (string-length(@BUSNAME) * 6)"/></xsl:if> <xsl:variable name="max_name_" select="math:max(string-length($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT/@NAME))"/> <xsl:variable name="max_sgnm_" select="math:max(string-length($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT/@SIGNAME))"/> <xsl:message>MAX NAME <xsl:value-of select="$max_name_"/></xsl:message> <xsl:message>MAX SIG <xsl:value-of select="$max_sgnm_"/></xsl:message> --> <xsl:variable name="ext_ports_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT)"> <EXTPORT NAME="__none__" SIGNAME="__none_" NAMELEN="0" SIGLEN="0"/> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <EXTPORT NAME="{@NAME}" SIGNAME="{@SIGNAME}" NAMELEN="{string-length(@NAME)}" SIGLEN="{string-length(@SIGNAME)}"/> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="max_name_" select="math:max(exsl:node-set($ext_ports_)/EXTPORT/@NAMELEN)"/> <xsl:variable name="max_sign_" select="math:max(exsl:node-set($ext_ports_)/EXTPORT/@SIGLEN)"/> <xsl:variable name="h_font_" select="12"/> <xsl:variable name="w_font_" select="12"/> <xsl:variable name="w_num_" select="($w_font_ * 5)"/> <xsl:variable name="w_dir_" select="($w_font_ * 3)"/> <xsl:variable name="w_lsbmsb_" select="($w_font_ * 9)"/> <xsl:variable name="w_attr_" select="($w_font_ * 4)"/> <xsl:variable name="w_name_" select="($w_font_ * $max_name_)"/> <xsl:variable name="w_sign_" select="($w_font_ * $max_sign_)"/> <xsl:variable name="w_table_" select="($w_num_ + $w_name_ + $w_dir_ + $w_sign_ + $w_attr_)"/> <!-- <xsl:message>MAX NAME <xsl:value-of select="$max_name_"/></xsl:message> <xsl:message>MAX SIG <xsl:value-of select="$max_sign_"/></xsl:message> <xsl:message>W NUM <xsl:value-of select="$w_num_"/></xsl:message> <xsl:message>W DIR <xsl:value-of select="$w_dir_"/></xsl:message> <xsl:message>W NAM <xsl:value-of select="$w_name_"/></xsl:message> <xsl:message>W SIG <xsl:value-of select="$w_sign_"/></xsl:message> <xsl:message>W ATT <xsl:value-of select="$w_attr_"/></xsl:message> <xsl:message>W TABLE <xsl:value-of select="$w_table_"/></xsl:message> --> <g id="BlkDiagram_ExtPortsTable"> <rect x="0" y="0" width= "{$w_table_}" height="{$h_font_}" style="fill:{$COL_RED}; stroke:none; stroke-width:1"/> </g> </xsl:template> <!-- ======================= END MAIN BLOCK =========================== --> </xsl:stylesheet>
<reponame>djgoku/RosettaCodeData <xsl:template name="compare"> <xsl:param name="a" select="1"/> <xsl:param name="b" select="2"/> <fo:block> <xsl:choose> <xsl:when test="$a &lt; $b">a &lt; b</xsl:when> <xsl:when test="$a &gt; $b">a &gt; b</xsl:when> <xsl:when test="$a = $b">a = b</xsl:when> </xsl:choose> </fo:block>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> <xsl:template name="_calc_Proc_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:variable name="tot_bifs_h_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H)">0</xsl:if> <xsl:if test="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H"> <xsl:variable name="bifs_h_" select="(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H)"/> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_BIF_GAP_H) * $bifs_h_)"/> </xsl:if> </xsl:variable> <xsl:value-of select="(($BLKD_MOD_LANE_H * 2) + $tot_bifs_h_ + ($BLKD_MOD_LABEL_H + $BLKD_BIF_GAP_H))"/> </xsl:template> <xsl:template name="_calc_Max_Proc_Height"> <!-- Store the heights in a variable --> <xsl:variable name="proc_heights_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE)"> <PROC HEIGHT="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE"> <xsl:variable name="procInst_" select="@INSTANCE"/> <xsl:variable name="proc_height_"> <xsl:call-template name="_calc_Proc_Height"> <xsl:with-param name="iProcInst" select="$procInst_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found Proc height as <xsl:value-of select="$proc_height_"/></xsl:message> --> <PROC HEIGHT="{$proc_height_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <!-- <xsl:message>Found Proc ax as <xsl:value-of select="math:max(exsl:node-set($proc_heights_)/PROC/@HEIGHT)"/></xsl:message> --> <xsl:value-of select="math:max(exsl:node-set($proc_heights_)/PROC/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Proc_MemoryUnits_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS = 'MEMORY_UNIT'))])">0</xsl:if> <xsl:if test="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS='MEMORY_UNIT'))]"> <xsl:variable name="peri_gap_"> <xsl:choose> <xsl:when test="not(@CSTACK_INDEX)"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Store the all memory unit heights in a variable --> <xsl:variable name="memU_heights_"> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS='MEMORY_UNIT'))]"> <!-- <xsl:variable name="unitId_" select="@PSTACK_MODS_Y"/> --> <xsl:variable name="unitHeight_"> <xsl:call-template name="_calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <MEM_UNIT HEIGHT="{$unitHeight_ + $peri_gap_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($memU_heights_)/MEM_UNIT/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="_calc_Proc_Peripherals_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS = 'MEMORY_UNIT'))])">0</xsl:if> <xsl:if test="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS='MEMORY_UNIT'))]"> <xsl:variable name="peri_gap_"> <xsl:if test="@CSTACK_INDEX"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:if> <xsl:if test="not(@IS_CSTACK)">0</xsl:if> </xsl:variable> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="peri_heights_"> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS='MEMORY_UNIT'))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message><xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <PERI HEIGHT="{$peri_height_ + $peri_gap_}"/> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($peri_heights_)/PERI/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="_calc_Space_AbvSbs_Height"> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:variable name = "stackAbvSbs_West_H_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name = "stackAbvSbs_East_H_"> <xsl:call-template name="_calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackAbvSbs_heights_"> <STACK HEIGHT="{$stackAbvSbs_East_H_}"/> <STACK HEIGHT="{$stackAbvSbs_West_H_}"/> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($stackAbvSbs_heights_)/STACK/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Space_BlwSbs_Height"> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:variable name = "stackBlwSbs_West_H_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name = "stackBlwSbs_East_H_"> <xsl:call-template name="_calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackBlwSbs_heights_"> <STACK HEIGHT="{$stackBlwSbs_East_H_}"/> <STACK HEIGHT="{$stackBlwSbs_West_H_}"/> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($stackBlwSbs_heights_)/STACK/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Stack_AbvSbs_Height"> <xsl:param name="iStackIdx" select="100"/> <!-- <xsl:message>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</xsl:message> --> <xsl:if test="(not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]) and not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@STACK_HORIZ_INDEX = $iStackIdx)]))"><xsl:value-of select="$BLKD_PROC2SBS_GAP"/></xsl:if> <xsl:if test="((/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]) or (/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[ (@STACK_HORIZ_INDEX = $iStackIdx)]))"> <!-- <xsl:message>The gap is <xsl:value-of select="$peri_gap_"/></xsl:message> <xsl:message>The gap is <xsl:value-of select="$peri_gap_"/></xsl:message> <xsl:message>================================</xsl:message> <xsl:message>================================</xsl:message> <xsl:message>This is above <xsl:value-of select="@INSTANCE"/></xsl:message> <xsl:message><xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_"/></xsl:message> --> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="peri_heights_"> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and not(@MODCLASS = 'MEMORY_UNIT') and (@IS_ABVSBS))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message>This is above <xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <!-- <xsl:call-template name="_calc_Shape_Height"> <xsl:with-param name="shapeId" select="@SHAPE_ID"/> </xsl:call-template> --> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <PERI HEIGHT="{$peri_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@MODCLASS = 'MEMORY_UNIT') and (@IS_ABVSBS))]"> <xsl:variable name="memu_height_"> <xsl:call-template name="_calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Mem_Unit : <xsl:value-of select="@SHAPE_ID"/> : <xsl:value-of select="$memu_height_ + $peri_gap_"/></xsl:message> <xsl:message>This is above <xsl:value-of select="@INSTANCE"/></xsl:message> <xsl:message>===================================</xsl:message> --> <PERI HEIGHT="{$memu_height_ + $BLKD_BIF_H}"/> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]"> <xsl:variable name="proc_height_"> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Processor : <xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_ + $peri_gap_"/></xsl:message> <PERI HEIGHT="{$proc_height_ + $BLKD_PROC2SBS_GAP }"/> --> <PERI HEIGHT="{$proc_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message><xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_ + $peri_gap_"/></xsl:message> <xsl:message>================================</xsl:message> --> <!-- <xsl:message>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</xsl:message> --> <xsl:value-of select="sum(exsl:node-set($peri_heights_)/PERI/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="_calc_Stack_BlwSbs_Height"> <xsl:param name="iStackIdx" select="100"/> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="stack_heights_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_BLWSBS))])"> <STACKSHAPE HEIGHT="0"/> </xsl:if> <xsl:if test="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_BLWSBS))]"> <xsl:variable name="peri_gap_"> <xsl:choose> <xsl:when test="(@SHAPE_VERTI_INDEX)"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and not(@MODCLASS = 'MEMORY_UNIT') and (@IS_BLWSBS))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message>This is below <xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message><xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_"/></xsl:message> --> <STACKSHAPE HEIGHT="{$peri_height_ + $peri_gap_}"/> </xsl:for-each> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@MODCLASS = 'MEMORY_UNIT') and (@IS_BLWSBS))]"> <xsl:variable name="memu_height_"> <xsl:call-template name="_calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <STACKSHAPE HEIGHT="{$memu_height_ + $peri_gap_}"/> <!-- <xsl:message>Mem_Unit : <xsl:value-of select="@SHAPE_ID"/> : <xsl:value-of select="$memu_height_ + $peri_gap_"/></xsl:message> --> </xsl:for-each> </xsl:if> <xsl:variable name="sbsBuckets_H_"> <xsl:call-template name="_calc_Stack_SbsBuckets_Height"> <xsl:with-param name="iStackIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <STACKSHAPE HEIGHT="{$sbsBuckets_H_}"/> <!-- <xsl:message>Sbs Bucket H : <xsl:value-of select="$sbsBuckets_H_"/></xsl:message> --> </xsl:variable> <!-- <xsl:message>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv</xsl:message> --> <xsl:value-of select="sum(exsl:node-set($stack_heights_)/STACKSHAPE/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Stack_SbsBuckets_Height"> <xsl:param name="iStackIdx" select="1000"/> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)])">0</xsl:if> <xsl:if test="/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <!-- Store the all buckets heights in a variable --> <xsl:variable name="bkt_heights_"> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="bkt_height_"> <xsl:call-template name="_calc_SbsBucket_Height"> <xsl:with-param name="iBucketId" select="@BUSINDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found shared buckets height as <xsl:value-of select="$bkt_height_"/></xsl:message> --> <BKT HEIGHT="{$bkt_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($bkt_heights_)/BKT/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="_calc_Max_Stack_BlwSbs_Height"> <!-- Store the heights in a variable --> <xsl:variable name="blwSbs_heights_"> <!-- Default, in case there are no modules or ports --> <BLW HEIGHT="0"/> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[(@EAST &lt; /EDKSYSTEM/BLKDSHAPES/@STACK_HORIZ_WIDTH)]"> <!-- <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="_calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <BLW HEIGHT="{$stack_height_}"/> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[(@WEST = (/EDKSYSTEM/BLKDSHAPES/@STACK_HORIZ_WIDTH -1))]"> <!-- <xsl:message>Last stack of index <xsl:value-of select="@WEST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="_calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="@WEST"/> </xsl:call-template> </xsl:variable> <BLW HEIGHT="{$stack_height_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found Blw Sbs max as <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/></xsl:message> --> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Max_Stack_AbvSbs_Height"> <!-- Store the heights in a variable --> <xsl:variable name="abvSbs_heights_"> <!-- Default, in case there are no modules or ports --> <ABV HEIGHT="0"/> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[(@EAST &lt; /EDKSYSTEM/BLKDSHAPES/@STACK_HORIZ_WIDTH)]"> <!-- <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="_calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found stack of height <xsl:value-of select="$stack_height_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <ABV HEIGHT="{$stack_height_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found Blw Sbs max as <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/></xsl:message> --> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($abvSbs_heights_)/ABV/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_MultiProc_Stack_Height"> <xsl:param name="iMPStack_Blkd_X" select="100"/> <xsl:variable name="mpStk_ShpHeights_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@HAS_MULTIPROCCONNS) and (@PSTACK_BLKD_X = $iMPStack_Blkd_X))])"> <MPSHAPE HEIGHT="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@HAS_MULTIPROCCONNS) and (@PSTACK_BLKD_X = $iMPStack_Blkd_X))]"> <xsl:variable name="shpClass_" select="@MODCLASS"/> <xsl:variable name="shpHeight_"> <xsl:choose> <xsl:when test="$shpClass_ = 'PERIPHERAL'"> <!-- <xsl:message>Found Multi Proc Peripheral</xsl:message> --> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="MODULE/@INSTANCE"/> </xsl:call-template> </xsl:when> <xsl:when test="$shpClass_ = 'MEMORY_UNIT'"> <!-- <xsl:message>Found Multi Proc Memory Unit</xsl:message> --> <xsl:call-template name="_calc_MemoryUnit_Height"> <xsl:with-param name="iShapeIndex" select="@CSHAPE_INDEX"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Found <xsl:value-of select="$shpHeight_"/></xsl:message> --> <MPSHAPE HEIGHT="{$shpHeight_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found stack of height <xsl:value-of select="sum(exsl:node-set($mpStk_ShpHeights_)/MPSHAPE/@HEIGHT)"/></xsl:message> --> <xsl:value-of select="sum(exsl:node-set($mpStk_ShpHeights_)/MPSHAPE/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Max_MultiProc_Stack_Height"> <!-- Store the heights in a variable --> <xsl:variable name="mpStks_Heights_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE)"> <MPSTK HEIGHT="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@PSTACK_BLKD_X)]"> <xsl:variable name="mpstack_height_"> <xsl:call-template name="_calc_MultiProc_Stack_Height"> <xsl:with-param name="iMPStack_Blkd_X" select="(@PSTACK_BLKD_X + 1)"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found <xsl:value-of select="$mpstack_height_"/></xsl:message> --> <MPSTK HEIGHT="{$mpstack_height_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($mpStks_Heights_)/MPSTK/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Stack_Shape_Y"> <xsl:param name="iHorizIdx" select="100"/> <xsl:param name="iVertiIdx" select="100"/> <!-- <xsl:message>Y at H index <xsl:value-of select="$iHorizIdx"/></xsl:message> <xsl:message>Y at V index <xsl:value-of select="$iVertiIdx"/></xsl:message> <xsl:param name="sbsGap" select="0"/> <xsl:variable name="numSBSs_" select="count(/EDKSYSTEM/BLKDSHAPES/SBSSHAPES/MODULE)"/> <xsl:variable name="sbs_LANE_H_" select="($numSBSs_ * $BLKD_SBS_LANE_H)"/> <xsl:variable name="sbsGap_" select="($BLKD_PROC2SBS_GAP + $sbs_LANE_H_)"/> --> <xsl:variable name="sbsGap_" select="((count(/EDKSYSTEM/BLKDSHAPES/SBSSHAPES/MODULE) * $BLKD_SBS_LANE_H) + $BLKD_PROC2SBS_GAP)"/> <xsl:if test="(not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]) and not(/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[( (@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]) and not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[( (@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]))">0</xsl:if> <xsl:if test="((/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]) or (/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[( (@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]) or (/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[( (@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]))"> <!-- Store the spaces above this one in a variable --> <xsl:variable name="spaces_above_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))])"> <SPACE HEIGHT="0"/> </xsl:if> <!-- Store the height of all peripherals and memory units above this one--> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:if test="not(@MODCLASS='MEMORY_UNIT')"> <xsl:variable name="peri_height_"> <xsl:call-template name="_calc_Shape_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found peri height <xsl:value-of select="$peri_height_"/></xsl:message> --> <SPACE HEIGHT="{$peri_height_ + $BLKD_BIF_H}"/> </xsl:if> <xsl:if test="(@MODCLASS='MEMORY_UNIT')"> <xsl:variable name="memu_height_"> <xsl:call-template name="_calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found unit height <xsl:value-of select="$memu_height_"/></xsl:message> --> <SPACE HEIGHT="{$memu_height_ + $BLKD_BIF_H}"/> </xsl:if> </xsl:for-each> <!-- Store the height of all the processors above this one--> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:variable name="proc_height_"> <xsl:call-template name="_calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <SPACE HEIGHT="{$proc_height_ + $BLKD_BIF_H}"/> </xsl:for-each> <!-- If its a peripheral that is below the shared busses, or its a shared bus bucket --> <!-- add the height of the shared busses and the processor. --> <xsl:if test="(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]/@IS_BLWSBS)"> <SPACE HEIGHT="{$sbsGap_}"/> </xsl:if> <xsl:if test="(/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))])"> <SPACE HEIGHT="{$sbsGap_}"/> </xsl:if> <!-- Store the height of all shared bus buckets above this one--> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:variable name="bkt_height_"> <xsl:call-template name="_calc_SbsBucket_Height"> <xsl:with-param name="iBucketId" select="@BUSINDEX"/> </xsl:call-template> </xsl:variable> <SPACE HEIGHT="{$bkt_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($spaces_above_)/SPACE/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="_calc_Max_BusConnLane_BifY"> <xsl:param name="iBusName" select="'_busname_'"/> <!-- Store the heights in a variable --> <xsl:variable name="busConnYs_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE/BUSCONN)"> <BUSCONNY HEIGHT="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE[(@BUSNAME = $iBusName)]/BUSCONN"> <xsl:variable name="peri_cstk_y_"> <xsl:call-template name="_calc_CStackShapesAbv_Height"> <xsl:with-param name="iCStackIndex" select="../@CSTACK_INDEX"/> <xsl:with-param name="ICStackModY" select="@CSTACK_MODS_Y"/> </xsl:call-template> </xsl:variable> <xsl:variable name="peri_bif_dy_"> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_BIF_GAP_H) * @BIF_Y)"/> </xsl:variable> <xsl:variable name="peri_bc_y_"> <xsl:value-of select="($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_BIF_GAP_H + $peri_bif_dy_ + ceiling($BLKD_BIF_H div 2)) - ceiling($BLKD_BIFC_H div 2)"/> </xsl:variable> <!-- <xsl:message>Found a busconn lane</xsl:message> --> <BUSCONNY HEIGHT="{$peri_cstk_y_ + $peri_bif_dy_ + $peri_bc_y_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($busConnYs_)/BUSCONNY/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Min_BusConnLane_BifY"> <xsl:param name="iBusName" select="'_busname_'"/> <!-- Store the heights in a variable --> <xsl:variable name="busConnYs_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE/BUSCONN)"> <BUSCONNY HEIGHT="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE[(@BUSNAME = $iBusName)]/BUSCONN"> <xsl:variable name="peri_cstk_y_"> <xsl:call-template name="_calc_CStackShapesAbv_Height"> <xsl:with-param name="iCStackIndex" select="../@CSTACK_INDEX"/> <xsl:with-param name="iCStackModY" select="@CSTACK_MODS_Y"/> </xsl:call-template> </xsl:variable> <xsl:variable name="peri_bif_dy_"> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_BIF_GAP_H) * @BIF_Y)"/> </xsl:variable> <xsl:variable name="peri_bc_y_"> <xsl:value-of select="($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_BIF_GAP_H + $peri_bif_dy_ + ceiling($BLKD_BIF_H div 2)) - ceiling($BLKD_BIFC_H div 2)"/> </xsl:variable> <!-- <xsl:message>Found a busconn lane</xsl:message> --> <BUSCONNY HEIGHT="{$peri_cstk_y_ + $peri_bc_y_}"/> </xsl:for-each> </xsl:variable> <!-- Return the min of them --> <xsl:value-of select="math:min(exsl:node-set($busConnYs_)/BUSCONNY/@HEIGHT)"/> </xsl:template> <xsl:template name="_calc_Stack_Height"> <xsl:param name="iStackIdx" select="100"/> <xsl:variable name="stack_height_"> <!-- if this is called with no vert index of a shape it defaults to the total height of the stack --> <xsl:call-template name="_calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <xsl:value-of select="$stack_height_"/> </xsl:template> <!-- --> <xsl:template name="_calc_Stack_Width"> <xsl:param name="iStackIdx" select="100"/> <!-- <xsl:message>=============Stack Idx <xsl:value-of select="$iStackIdx"/>====</xsl:message> --> <xsl:variable name="shape_widths_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[@STACK_HORIZ_INDEX = $iStackIdx])"> <SHAPE WIDTH="0"/> </xsl:if> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[@STACK_HORIZ_INDEX = $iStackIdx])"> <SHAPE WIDTH="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/PROCSHAPES/MODULE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <!-- <xsl:variable name="proc_w_"> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:variable> <xsl:message>Found processor of width <xsl:value-of select="$proc_w_"/></xsl:message> --> <SHAPE WIDTH="{$BLKD_MOD_W}"/> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES/CMPLXSHAPE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="shpClass_" select="@MODCLASS"/> <xsl:variable name="shape_w_"> <xsl:choose> <xsl:when test="$shpClass_ = 'PERIPHERAL'"> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:when> <xsl:when test="$shpClass_ = 'MEMORY_UNIT'"> <xsl:value-of select="($BLKD_MOD_W * @MODS_W)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Found shape width <xsl:value-of select="$shape_w_"/></xsl:message> --> <SHAPE WIDTH="{$shape_w_}"/> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="bucket_w_"> <xsl:value-of select="(($BLKD_MOD_BKTLANE_W * 2) + (($BLKD_MOD_W * @MODS_W) + ($BLKD_MOD_BUCKET_G * (@MODS_W - 1))))"/> </xsl:variable> <!-- <xsl:message>Found bucket of width <xsl:value-of select="$bucket_w_"/></xsl:message> --> <SHAPE WIDTH="{$bucket_w_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($shape_widths_)/SHAPE/@WIDTH)"/> </xsl:template> <xsl:template name="_calc_Stack_X"> <xsl:param name="iStackIdx" select="0"/> <!-- <xsl:message>Looking for stack indexes less than <xsl:value-of select="$iStackIdx"/></xsl:message> --> <!-- Store the stack widths in a variable --> <xsl:variable name="stackspace_widths_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not(/EDKSYSTEM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[(@EAST &lt;= $iStackIdx)]"> <!-- <xsl:message>==============================</xsl:message> <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> <xsl:message>Bus lane space width <xsl:value-of select="@BUSLANES_W"/></xsl:message> <xsl:message>Bus lane space is <xsl:value-of select="$space_width_"/></xsl:message> <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> --> <xsl:variable name="East_"> <xsl:choose> <xsl:when test="@EAST"><xsl:value-of select="@EAST"/></xsl:when> <xsl:otherwise>'NONE'</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="West_"> <xsl:choose> <xsl:when test="@WEST"><xsl:value-of select="@WEST"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>1 - West_ <xsl:value-of select="$West_"/></xsl:message> <xsl:message>1 - East_ <xsl:value-of select="$East_"/></xsl:message> --> <xsl:variable name="space_width_"> <xsl:call-template name="_calc_Space_Width"> <xsl:with-param name="iStackToWest" select="$West_"/> <xsl:with-param name="iStackToEast" select="$East_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stack_width_"> <xsl:if test="not(@EAST = $iStackIdx)"> <xsl:call-template name="_calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:if> <xsl:if test="(@EAST = $iStackIdx)">0</xsl:if> </xsl:variable> <!-- <xsl:message>Found stack of width <xsl:value-of select="$stack_width_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <STACKSPACE WIDTH="{$stack_width_ + $space_width_}"/> </xsl:for-each> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[(not(@EAST) and (@WEST = ($iStackIdx -1)))]"> <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> <!-- <xsl:message>Found end space of <xsl:value-of select="$space_width_"/></xsl:message> --> <STACKSPACE WIDTH="{$space_width_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($stackspace_widths_)/STACKSPACE/@WIDTH)"/> </xsl:template> <xsl:template name="_calc_Space_Width"> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <!-- <xsl:message>Stack to West <xsl:value-of select="$stackToWest"/></xsl:message> <xsl:message>Stack to East <xsl:value-of select="$stackToEast"/></xsl:message> --> <xsl:variable name="spaceWidth_"> <xsl:choose> <xsl:when test="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[((@EAST = $iStackToEast) or (not($iStackToWest = 'NONE') and (@WEST = $iStackToWest)))]"> <xsl:value-of select="((/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[((@EAST = $iStackToEast) or (not($iStackToWest = 'NONE') and (@WEST = $iStackToWest)))]/@BUSLANES_W + 1) * $BLKD_BUS_LANE_W)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Space width <xsl:value-of select="$spaceWidth_"/></xsl:message> --> <xsl:value-of select="$spaceWidth_"/> </xsl:template> <xsl:template name="_calc_Space_X"> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <!-- <xsl:message>Stack East <xsl:value-of select="$stackToEast"/></xsl:message> <xsl:message>Stack West <xsl:value-of select="$stackToWest"/></xsl:message> --> <!-- Store the stack widths in a variable --> <!-- <xsl:message>Looking for stack indexes less than <xsl:value-of select="$stackIdx"/></xsl:message> --> <xsl:variable name="stackspace_widths_"> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/CMPLXSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not(/EDKSYSTEM/BLKDSHAPES/PROCSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not(/EDKSYSTEM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:for-each select="/EDKSYSTEM/BLKDSHAPES/BCLANESPACES/BCLANESPACE[((@EAST &lt; $iStackToEast) or (not($iStackToWest = 'NONE') and (@EAST &lt;= $iStackToWest)))]"> <!-- <xsl:message>==============================</xsl:message> <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> --> <xsl:variable name="East_"> <xsl:choose> <xsl:when test="@EAST"><xsl:value-of select="@EAST"/></xsl:when> <xsl:otherwise>'NONE'</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="West_"> <xsl:choose> <xsl:when test="@WEST"><xsl:value-of select="@WEST"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>1 - West_ <xsl:value-of select="$West_"/></xsl:message> <xsl:message>1 - East_ <xsl:value-of select="$East_"/></xsl:message> --> <xsl:variable name="space_width_"> <xsl:call-template name="_calc_Space_Width"> <xsl:with-param name="iStackToWest" select="$West_"/> <xsl:with-param name="iStackToEast" select="$East_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Bus lane space width <xsl:value-of select="@BUSLANES_W"/></xsl:message> <xsl:message>Bus lane space is <xsl:value-of select="$space_width_"/></xsl:message> --> <xsl:variable name="stack_width_"> <xsl:call-template name="_calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found stack of width <xsl:value-of select="$stack_width_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <STACKSPACE WIDTH="{$stack_width_ + $space_width_}"/> </xsl:for-each> </xsl:variable> <xsl:variable name = "stackToWest_W_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="_calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:variable name = "stackToEast_W_"> <xsl:call-template name="_calc_Stack_Width"> <xsl:with-param name="stackIdx" select="$stackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceEast_W_" select="ceiling($stackToEast_W_ div 2)"/> --> <xsl:variable name ="extSpaceWest_W_" select="ceiling($stackToWest_W_ div 2)"/> <xsl:value-of select="sum(exsl:node-set($stackspace_widths_)/STACKSPACE/@WIDTH) - $extSpaceWest_W_"/> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <!-- for resolve_refs --> <xsl:import href="sfw_utilities.xsl" /> <xsl:variable name="vars_obj" select="'sfwvars'" /> <xsl:variable name="jslist_sfw_brief">sfw</xsl:variable> <xsl:variable name="jslist_sfw_minified">sfw.min</xsl:variable> <xsl:variable name="jslist_sfw_debug">classes dpicker Events Dialog Moveable XML sfw_0 sfw_doc sfw_tbase sfw_calendar sfw_debug sfw_dom sfw_form sfw_form_view sfw_ulselect sfw_mixed_view sfw_onload sfw_table sfw_assoc sfw_lookup sfw_isotable sfw_iltable</xsl:variable> <!-- Main entry point to template in this stylesheet. --> <xsl:template match="/*" mode="construct_scripts"> <!-- Param to switch between javascript files to include: the value 'debug' uses debug scripts, anything else uses sfw.min.js --> <xsl:param name="jscripts" /> <xsl:variable name="doc_vars" select="@*" /> <xsl:variable name="result_vars" select="*[@rndx][@type='variable']/@*" /> <xsl:variable name="all_vars" select="$doc_vars | $result_vars" /> <!-- The default behavior, modified by the jscripts param, is to use 'debug' scripts because sfw.min.js requires that a minimizer/uglifier is installed and used to generate sfw.min.js. --> <xsl:call-template name="add_js"> <xsl:with-param name="path">includes/</xsl:with-param> <xsl:with-param name="list"> <xsl:choose> <xsl:when test="$jscripts='debug'"><xsl:value-of select="$jslist_sfw_debug" /></xsl:when> <xsl:otherwise>sfw.min</xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> <xsl:if test="@javascript"> <xsl:call-template name="add_js"> <xsl:with-param name="list" select="@javascript" /> </xsl:call-template> </xsl:if> <xsl:value-of select="$nl" /> <xsl:if test="count($all_vars)"> <script> <xsl:value-of select="concat('var ', $vars_obj, '={};', $nl)" /> <xsl:apply-templates select="$all_vars" mode="construct_attribute_variable" /> </script> </xsl:if> </xsl:template> <xsl:template match="@*" mode="construct_attribute_variable"> <xsl:variable name="n" select="translate(local-name(),'-','_')" /> <xsl:value-of select="concat($vars_obj, '.', $n, ' = &quot;', ., '&quot;;', $nl)" /> </xsl:template> <!-- Add variables from set in the main stylesheet. --> <xsl:template match="/*" mode="add_document_vars"> <xsl:if test="count($vars)"> <script>var <xsl:value-of select="$vars_obj" />={};</script> <xsl:value-of select="$nl" /> <xsl:apply-templates select="." mode="add_document_variables" /> </xsl:if> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" exclude-result-prefixes="edmx1 edm2 edm3 edm m annotation sap" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:edm="http://docs.oasis-open.org/odata/ns/edm" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" xmlns:edmx1="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:edm2="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:edm3="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:sap="http://www.sap.com/Protocols/SAPData" xmlns="http://docs.oasis-open.org/odata/ns/edm" > <!-- This style sheet transforms OData 2.0 or 3.0 $metadata documents into OData 4.0 CSDL documents. Existing constructs that have an equivalent in V4 are automatically translated. The retired primitive type Edm.DateTime is translated into Edm.DateTimeOffset or Edm.Date. The retired primitive type Edm.Time is translated into Edm.TimeOfDay. In addition SAP annotations are translated into corresponding V4 annotations in the OASIS or SAP vocabularies. Latest version: https://github.com/oasis-tcs/odata-openapi/blob/master/tools/V2-to-V4-CSDL.xsl TODO: - sap:action-for translates into bound action/function without import - sap:applicable-path translates into Core.OperationAvailable - parameter entity sets: translate into containment navigation properties --> <xsl:strip-space elements="*" /> <xsl:output method="xml" indent="yes" /> <xsl:variable name="Core"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'Org.OData.Core.V1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="CapabilitiesNamespace" select="'Org.OData.Capabilities.V1'" /> <xsl:variable name="Capabilities"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="$CapabilitiesNamespace" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Measures"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'Org.OData.Measures.V1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Aggregation"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'Org.OData.Aggregation.V1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Validation"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'Org.OData.Validation.V1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Common"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'com.sap.vocabularies.Common.v1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Analytics"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'com.sap.vocabularies.Analytics.v1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="Communication"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'com.sap.vocabularies.Communication.v1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="UI"> <xsl:call-template name="include-alias"> <xsl:with-param name="schema" select="'com.sap.vocabularies.UI.v1'" /> </xsl:call-template> </xsl:variable> <xsl:template match="edmx1:Edmx"> <edmx:Edmx Version="4.0"> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//edm2:Summary|//edm2:LongDescription|//edm3:Summary|//edm3:LongDescription|//@sap:*" /> <xsl:with-param name="schema" select="'Org.OData.Core.V1'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="true()" /> <xsl:with-param name="schema" select="'Org.OData.Capabilities.V1'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:unit" /> <xsl:with-param name="schema" select="'Org.OData.Measures.V1'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:super-ordinate" /> <xsl:with-param name="schema" select="'Org.OData.Aggregation.V1'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:validation-regexp" /> <xsl:with-param name="schema" select="'Org.OData.Validation.V1'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:*" /> <xsl:with-param name="schema" select="'com.sap.vocabularies.Common.v1'" /> <xsl:with-param name="wikipage" select="'448470974'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:aggregation-role" /> <xsl:with-param name="schema" select="'com.sap.vocabularies.Analytics.v1'" /> <xsl:with-param name="wikipage" select="'462030211'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:semantics[.='email' or .='tel']" /> <xsl:with-param name="schema" select="'com.sap.vocabularies.Communication.v1'" /> <xsl:with-param name="wikipage" select="'448470971'" /> </xsl:call-template> <xsl:call-template name="add-reference"> <xsl:with-param name="condition" select="//@sap:visible" /> <xsl:with-param name="schema" select="'com.sap.vocabularies.UI.v1'" /> <xsl:with-param name="wikipage" select="'448470968'" /> </xsl:call-template> <xsl:apply-templates /> </edmx:Edmx> </xsl:template> <xsl:template name="include-alias"> <xsl:param name="schema" /> <xsl:choose> <xsl:when test="//edmx:Include[@Namespace=$schema]/@Alias"> <xsl:value-of select="//edmx:Include[@Namespace=$schema]/@Alias" /> </xsl:when> <xsl:when test="//edmx:Include[@Namespace=$schema]"> <xsl:value-of select="$schema" /> </xsl:when> <xsl:otherwise> <xsl:call-template name="default-alias"> <xsl:with-param name="schema" select="$schema" /> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="default-alias"> <xsl:param name="schema" /> <xsl:call-template name="substring-after-last"> <xsl:with-param name="input"> <xsl:call-template name="substring-before-last"> <xsl:with-param name="input" select="$schema" /> <xsl:with-param name="marker" select="'.'" /> </xsl:call-template> </xsl:with-param> <xsl:with-param name="marker" select="'.'" /> </xsl:call-template> </xsl:template> <xsl:template name="add-reference"> <xsl:param name="condition" /> <xsl:param name="schema" /> <xsl:param name="wikipage" select="false()" /> <xsl:if test="$condition"> <xsl:if test="not(//edmx:Include[@Namespace=$schema])"> <xsl:variable name="alias"> <xsl:call-template name="default-alias"> <xsl:with-param name="schema" select="$schema" /> </xsl:call-template> </xsl:variable> <xsl:variable name="uri"> <xsl:choose> <xsl:when test="substring($schema,1,10)='Org.OData.'"> <xsl:text>https://oasis-tcs.github.io/odata-vocabularies/vocabularies/</xsl:text> <xsl:value-of select="$schema" /> <xsl:text>.xml</xsl:text> </xsl:when> <xsl:when test="$wikipage"> <xsl:text>https://wiki.scn.sap.com/wiki/download/attachments/</xsl:text> <xsl:value-of select="$wikipage" /> <xsl:text>/</xsl:text> <xsl:value-of select="$alias" /> <xsl:text>.xml</xsl:text> </xsl:when> </xsl:choose> </xsl:variable> <edmx:Reference> <xsl:attribute name="Uri"> <xsl:value-of select="$uri" /> </xsl:attribute> <edmx:Include> <xsl:attribute name="Namespace"> <xsl:value-of select="$schema" /> </xsl:attribute> <xsl:attribute name="Alias"> <xsl:value-of select="$alias" /> </xsl:attribute> </edmx:Include> </edmx:Reference> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="edmx:Reference"> <edmx:Reference> <xsl:apply-templates select="@*|node()" /> </edmx:Reference> </xsl:template> <xsl:template match="edmx:Include"> <edmx:Include> <xsl:copy-of select="@Namespace|@Alias" /> </edmx:Include> </xsl:template> <xsl:template match="edmx:IncludeAnnotations"> <edmx:IncludeAnnotations> <xsl:copy-of select="@Namespace|@Qualifier|@TargetNamespace" /> </edmx:IncludeAnnotations> </xsl:template> <xsl:template match="edmx1:DataServices"> <edmx:DataServices> <xsl:apply-templates /> </edmx:DataServices> </xsl:template> <xsl:template match="edm2:Schema"> <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm"> <xsl:copy-of select="@Namespace|@Alias" /> <Annotation Term="com.sap.vocabularies.Common.v1.OriginalProtocolVersion" String="2.0" /> <xsl:apply-templates /> <xsl:apply-templates select="*[local-name()='EntityContainer' and @m:IsDefaultEntityContainer='true']/*[local-name()='FunctionImport']" mode="Schema" /> </Schema> <xsl:apply-templates select="edm2:EntityType[@sap:semantics='parameters']" mode="readrestrictions" /> </xsl:template> <xsl:template match="edm3:Schema"> <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm"> <xsl:copy-of select="@Namespace|@Alias" /> <Annotation Term="com.sap.vocabularies.Common.v1.OriginalProtocolVersion" String="3.0" /> <xsl:apply-templates /> <xsl:apply-templates select="*[local-name()='EntityContainer' and @m:IsDefaultEntityContainer='true']/*[local-name()='FunctionImport']" mode="Schema" /> </Schema> </xsl:template> <xsl:template match="edm2:EntityContainer|edm3:EntityContainer"> <xsl:if test="@m:IsDefaultEntityContainer='true'"> <EntityContainer> <xsl:apply-templates select="@*|node()" /> </EntityContainer> </xsl:if> </xsl:template> <xsl:template match="edm2:EntityType|edm3:EntityType"> <EntityType> <xsl:apply-templates select="@*[not(starts-with(name(),'sap:'))]" /> <xsl:apply-templates select="@*[starts-with(name(),'sap:')]|*" /> </EntityType> </xsl:template> <xsl:template match="edm2:Property|edm3:Property"> <Property> <xsl:copy-of select="@Name" /> <xsl:apply-templates select="@Type" /> <xsl:if test="@Nullable != 'true'"> <xsl:copy-of select="@Nullable" /> </xsl:if> <xsl:apply-templates select="@DefaultValue|@MaxLength|@Precision|@Scale|@Unicode|@SRID" /> <xsl:apply-templates select="@sap:*|node()" /> </Property> </xsl:template> <xsl:template match="@MaxLength[.='Max']"> <xsl:attribute name="MaxLength">max</xsl:attribute> </xsl:template> <xsl:template match="edm2:NavigationProperty|edm3:NavigationProperty"> <NavigationProperty> <xsl:copy-of select="@Name" /> <!-- Extract @Type and @Multiplicity from matching Association/End --> <xsl:variable name="relation" select="@Relationship" /> <xsl:variable name="assoc"> <xsl:call-template name="substring-after-last"> <xsl:with-param name="input" select="@Relationship" /> <xsl:with-param name="marker" select="'.'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="fromrole" select="@FromRole" /> <xsl:variable name="torole" select="@ToRole" /> <xsl:variable name="type" select="../../edm2:Association[@Name=$assoc]/edm2:End[@Role=$torole]/@Type|../../edm3:Association[@Name=$assoc]/edm3:End[@Role=$torole]/@Type" /> <xsl:variable name="mult" select="../../edm2:Association[@Name=$assoc]/edm2:End[@Role=$torole]/@Multiplicity|../../edm3:Association[@Name=$assoc]/edm3:End[@Role=$torole]/@Multiplicity" /> <xsl:attribute name="Type"> <xsl:choose> <xsl:when test="$mult='*'"><xsl:value-of select="concat('Collection(',$type,')')" /></xsl:when> <xsl:otherwise><xsl:value-of select="$type" /></xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$mult='1'"> <xsl:attribute name="Nullable">false</xsl:attribute> </xsl:if> <xsl:variable name="partner" select="../../edm2:EntityType/edm2:NavigationProperty[@Relationship=$relation and @FromRole=$torole]/@Name|../../edm3:EntityType/edm3:NavigationProperty[@Relationship=$relation and @FromRole=$torole]/@Name" /> <xsl:if test="$partner"> <xsl:attribute name="Partner"> <xsl:value-of select="$partner" /> </xsl:attribute> </xsl:if> <xsl:apply-templates select="@sap:*" /> <xsl:apply-templates mode="NavProp" select="../../edm2:Association[@Name=$assoc]/edm2:End[@Role=$fromrole]/edm2:OnDelete|../../edm3:Association[@Name=$assoc]/edm3:End[@Role=$fromrole]/edm3:OnDelete" /> <xsl:apply-templates mode="NavProp" select="../../edm2:Association[@Name=$assoc]/edm2:ReferentialConstraint/edm2:Principal[@Role=$torole]|../../edm3:Association[@Name=$assoc]/edm3:ReferentialConstraint/edm3:Principal[@Role=$torole]" /> <xsl:apply-templates /> </NavigationProperty> </xsl:template> <xsl:template match="edm2:OnDelete|edm3:OnDelete" mode="NavProp"> <OnDelete> <xsl:copy-of select="@Action" /> <xsl:apply-templates /> </OnDelete> </xsl:template> <xsl:template match="edm2:PropertyRef|edm3:PropertyRef" mode="NavProp"> <xsl:variable name="index" select="position()" /> <ReferentialConstraint> <xsl:attribute name="Property"> <xsl:value-of select="../../edm2:Dependent/edm2:PropertyRef[$index]/@Name|../../edm3:Dependent/edm2:PropertyRef[$index]/@Name" /> </xsl:attribute> <xsl:attribute name="ReferencedProperty"> <xsl:value-of select="@Name" /> </xsl:attribute> </ReferentialConstraint> </xsl:template> <xsl:template match="edm2:EntitySet|edm3:EntitySet"> <xsl:variable name="qualifier"> <xsl:call-template name="substring-before-last"> <xsl:with-param name="input" select="@EntityType" /> <xsl:with-param name="marker" select="'.'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="namespace"> <xsl:choose> <xsl:when test="//edm:Schema[@Alias=$qualifier]"> <xsl:value-of select="//edm:Schema[@Alias=$qualifier]/@Namespace" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$qualifier" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="type"> <xsl:call-template name="substring-after-last"> <xsl:with-param name="input" select="@EntityType" /> <xsl:with-param name="marker" select="'.'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="entityType" select="//edm2:Schema[@Namespace=$namespace]/edm2:EntityType[@Name=$type]" /> <xsl:variable name="name" select="@Name" /> <EntitySet> <xsl:copy-of select="@Name|@EntityType" /> <xsl:apply-templates select="@sap:*|node()" /> <xsl:apply-templates select="../edm2:AssociationSet/edm2:End[@EntitySet=$name]|../edm3:AssociationSet/edm3:End[@EntitySet=$name]" mode="Binding" > <xsl:with-param name="entitytype" select="@EntityType" /> </xsl:apply-templates> <!-- TODO: refactor so that just current entity set is passed and all logic is hidden in template "restrictions" --> <xsl:call-template name="restriction"> <xsl:with-param name="capability" select="'Filter'" /> <xsl:with-param name="required" select="@sap:requires-filter='true'" /> <xsl:with-param name="required-properties" select="$entityType/edm2:Property/@sap:required-in-filter[.='true']" /> <xsl:with-param name="restricted-properties" select="$entityType/edm2:Property/@sap:filter-restriction" /> <xsl:with-param name="excluded-properties" select="$entityType/edm2:Property/@sap:filterable[.='false']" /> </xsl:call-template> <xsl:call-template name="restriction"> <xsl:with-param name="capability" select="'Sort'" /> <xsl:with-param name="excluded-properties" select="$entityType/edm2:Property/@sap:sortable[.='false']" /> </xsl:call-template> <xsl:call-template name="to-addressable"> <xsl:with-param name="entityType" select="$entityType" /> </xsl:call-template> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.SearchRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Searchable" Bool="false"> <xsl:attribute name="Bool"> <xsl:choose> <xsl:when test="@sap:searchable='true'"> <xsl:text>true</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>false</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> </PropertyValue> </Record> </Annotation> </EntitySet> </xsl:template> <xsl:template name="to-addressable"> <xsl:param name="entityType" /> <xsl:variable name="name" select="@Name" /> <xsl:variable name="stuff"> <xsl:apply-templates select="../edm2:AssociationSet[edm2:End[@EntitySet=$name]]/edm2:End[@EntitySet!=$name]" mode="addressable" > <xsl:with-param name="entityType" select="$entityType" /> </xsl:apply-templates> </xsl:variable> <xsl:if test="string($stuff)"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.NavigationRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="RestrictedProperties"> <Collection> <xsl:copy-of select="$stuff" /> </Collection> </PropertyValue> </Record> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm2:AssociationSet/edm2:End" mode="addressable"> <xsl:param name="entityType" /> <xsl:variable name="role" select="@Role" /> <xsl:variable name="assoc" select="../@Association" /> <xsl:variable name="navprop" select="$entityType/edm2:NavigationProperty[@Relationship=$assoc and @ToRole=$role]" /> <xsl:if test="$navprop"> <xsl:variable name="targetSetName" select="@EntitySet" /> <xsl:variable name="targetSet" select="../../edm2:EntitySet[@Name=$targetSetName]" /> <xsl:if test="$targetSet/@sap:addressable='false'"> <Record> <PropertyValue Property="NavigationProperty"> <xsl:attribute name="NavigationPropertyPath"> <xsl:value-of select="$navprop/@Name" /> </xsl:attribute> </PropertyValue> <PropertyValue Property="ReadRestrictions"> <Record> <PropertyValue Property="Readable"> <Bool>true</Bool> </PropertyValue> </Record> </PropertyValue> </Record> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="edm2:AssociationSet/edm2:End|edm3:AssociationSet/edm3:End" mode="Binding"> <xsl:param name="entitytype" /> <xsl:variable name="role" select="@Role" /> <xsl:variable name="set" select="../edm2:End[not(@Role=$role)]/@EntitySet|../edm3:End[not(@Role=$role)]/@EntitySet" /> <xsl:variable name="assoc" select="../@Association" /> <xsl:variable name="navprop" select="//edm2:NavigationProperty[@Relationship=$assoc and @FromRole=$role]|//edm3:NavigationProperty[@Relationship=$assoc and @FromRole=$role]" /> <xsl:if test="$navprop"> <xsl:variable name="namespace" select="$navprop/../../@Namespace" /> <xsl:variable name="typename" select="$navprop/../@Name" /> <xsl:variable name="type" select="concat($namespace,'.',$typename)" /> <NavigationPropertyBinding> <xsl:attribute name="Target"><xsl:value-of select="$set" /></xsl:attribute> <xsl:attribute name="Path"> <xsl:if test="not($type=$entitytype)"><xsl:value-of select="concat($type,'/')" /></xsl:if> <xsl:value-of select="$navprop/@Name" /> </xsl:attribute> <xsl:apply-templates /> </NavigationPropertyBinding> </xsl:if> </xsl:template> <xsl:template match="edm2:FunctionImport|edm3:FunctionImport"> <xsl:if test="not(@IsBindable='true')"> <xsl:choose> <xsl:when test="@m:HttpMethod='GET' or @IsSideEffecting='false'"> <FunctionImport> <xsl:copy-of select="@Name|@EntitySet" /> <xsl:attribute name="Function"> <xsl:value-of select="../../@Namespace" />.<xsl:value-of select="@Name" /> </xsl:attribute> <xsl:if test="not(*[local-name()='Parameter'])"> <xsl:attribute name="IncludeInServiceDocument">true</xsl:attribute> </xsl:if> <xsl:apply-templates select="@sap:*" /> </FunctionImport> </xsl:when> <xsl:otherwise> <ActionImport> <xsl:copy-of select="@Name|@EntitySet" /> <xsl:attribute name="Action"> <xsl:value-of select="../../@Namespace" />.<xsl:value-of select="@Name" /> </xsl:attribute> <xsl:apply-templates select="@sap:*" /> </ActionImport> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <xsl:template match="edm2:FunctionImport|edm3:FunctionImport" mode="Schema"> <xsl:choose> <xsl:when test="@m:HttpMethod='GET' or @IsSideEffecting='false'"> <Function> <xsl:copy-of select="@Name|@EntitySetPath|@IsComposable" /> <xsl:if test="@IsBindable"> <xsl:attribute name="IsBound"><xsl:value-of select="@IsBindable" /></xsl:attribute> </xsl:if> <xsl:apply-templates /> <xsl:if test="@ReturnType"> <ReturnType> <xsl:attribute name="Type"><xsl:value-of select="@ReturnType" /></xsl:attribute> <xsl:attribute name="Nullable">false</xsl:attribute> </ReturnType> </xsl:if> </Function> </xsl:when> <xsl:otherwise> <Action> <xsl:copy-of select="@Name|@EntitySetPath" /> <xsl:if test="@IsBindable"> <xsl:attribute name="IsBound"><xsl:value-of select="@IsBindable" /></xsl:attribute> </xsl:if> <xsl:apply-templates /> <xsl:if test="@ReturnType"> <ReturnType> <xsl:attribute name="Type"><xsl:value-of select="@ReturnType" /></xsl:attribute> <xsl:attribute name="Nullable">false</xsl:attribute> </ReturnType> </xsl:if> </Action> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="edm2:Parameter|edm3:Parameter"> <xsl:element name="{local-name()}"> <xsl:if test="not(@Nullable)"> <xsl:attribute name="Nullable">false</xsl:attribute> </xsl:if> <xsl:apply-templates select="@*|node()" /> </xsl:element> </xsl:template> <xsl:template match="edm2:Function|edm3:Function"> <Function> <xsl:apply-templates select="@Name|node()" /> <xsl:if test="@ReturnType"> <ReturnType> <xsl:attribute name="Type"> <xsl:if test="not(contains(@ReturnType,'.'))"> <xsl:text>Edm.</xsl:text> </xsl:if> <xsl:value-of select="@ReturnType" /> </xsl:attribute> <xsl:apply-templates select="@*[name() != 'Name' and name() != 'ReturnType']" /> </ReturnType> </xsl:if> </Function> </xsl:template> <xsl:template match="edm2:Documentation|edm3:Documentation"> <!-- ignore this node and translate children --> <xsl:apply-templates /> </xsl:template> <xsl:template match="edm2:Summary|edm3:Summary"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Core" /> <xsl:text>.Description</xsl:text> </xsl:attribute> <String> <xsl:value-of select="." /> </String> </Annotation> </xsl:template> <xsl:template match="edm2:LongDescription|edm3:LongDescription"> <xsl:if test=".!=''"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Core" /> <xsl:text>.LongDescription</xsl:text> </xsl:attribute> <String> <xsl:call-template name="replace-all"> <xsl:with-param name="string" select="." /> <xsl:with-param name="old" select="'&#x0A;'" /> <xsl:with-param name="new" select="' &#x0A;'" /> </xsl:call-template> </String> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm3:ValueTerm"> <Term> <xsl:apply-templates select="@*|node()" /> </Term> </xsl:template> <xsl:template match="edm3:ValueAnnotation"> <Annotation> <xsl:apply-templates select="@*|node()" /> </Annotation> </xsl:template> <xsl:template match="edm3:TypeAnnotation"> <Annotation> <xsl:attribute name="Term"><xsl:value-of select="@Term" /></xsl:attribute> <Record> <xsl:apply-templates select="node()" /> </Record> </Annotation> </xsl:template> <xsl:template match="edm3:Annotations"> <Annotations> <xsl:apply-templates select="@*|node()" /> </Annotations> </xsl:template> <xsl:template match="edm3:Binary"> <Binary> <xsl:comment> TODO: convert to base64url </xsl:comment> <xsl:apply-templates select="text()" /> </Binary> </xsl:template> <xsl:template match="edm3:DateTime"> <DateTimeOffset> <xsl:apply-templates select="text()" /> <xsl:text>Z</xsl:text> </DateTimeOffset> </xsl:template> <xsl:template match="edm3:IsType"> <IsOf> <xsl:apply-templates select="@*|node()" /> </IsOf> </xsl:template> <xsl:template match="edm3:AssertType"> <Cast> <xsl:apply-templates select="@*|node()" /> </Cast> </xsl:template> <xsl:template match="@Type|@UnderlyingType"> <xsl:attribute name="{name()}"> <xsl:choose> <xsl:when test=".='Time' or .='Edm.Time'">Edm.TimeOfDay</xsl:when> <xsl:when test=".='Float' or .='Edm.Float'">Edm.Single</xsl:when> <!-- TODO: better heuristics for parameters --> <xsl:when test="(.='DateTime' or .='Edm.DateTime') and (../@sap:display-format='Date' or local-name(..)='Parameter')">Edm.Date</xsl:when> <xsl:when test=".='DateTime' or .='Edm.DateTime'">Edm.DateTimeOffset</xsl:when> <xsl:when test="contains(.,'.')"><xsl:value-of select="." /></xsl:when> <xsl:otherwise><xsl:value-of select="concat('Edm.',.)" /></xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:template> <xsl:template match="@m:HasStream"> <xsl:attribute name="HasStream"> <xsl:value-of select="." /> </xsl:attribute> </xsl:template> <!-- SAP annotations --> <xsl:template match="@sap:action-for"> <Annotation Term="SAP.ActionFor"> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:applicable-path" /> <xsl:template match="@sap:label"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.Label</xsl:text> </xsl:attribute> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:heading"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.Heading</xsl:text> </xsl:attribute> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:quickinfo"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.QuickInfo</xsl:text> </xsl:attribute> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:text"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.Text</xsl:text> </xsl:attribute> <xsl:attribute name="Path"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:unit"> <xsl:variable name="path" select="." /> <xsl:choose> <xsl:when test="../../edm2:Property[@Name=$path]/@sap:semantics='currency-code'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Measures" /> <xsl:text>.ISOCurrency</xsl:text> </xsl:attribute> <xsl:attribute name="Path"> <xsl:value-of select="$path" /> </xsl:attribute> </Annotation> </xsl:when> <xsl:when test="../../edm2:Property[@Name=$path]/@sap:semantics='unit-of-measure'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Measures" /> <xsl:text>.Unit</xsl:text> </xsl:attribute> <xsl:attribute name="Path"> <xsl:value-of select="$path" /> </xsl:attribute> </Annotation> </xsl:when> <xsl:otherwise> <Annotation Term="TODO.unit"> <xsl:attribute name="String"> <xsl:value-of select="$path" /> </xsl:attribute> </Annotation> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="edm2:EntityType[@sap:semantics='parameters']" mode="readrestrictions"> <xsl:variable name="qualifiedName" select="concat(../@Namespace,'.',@Name)" /> <Annotations> <xsl:attribute name="Target"> <xsl:value-of select="../@Namespace" /> <xsl:text>.</xsl:text> <xsl:value-of select="../edm2:EntityContainer/@Name" /> <xsl:text>/</xsl:text> <xsl:value-of select="../edm2:EntityContainer/edm2:EntitySet[@EntityType=$qualifiedName]/@Name" /> </xsl:attribute> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.ReadRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Readable" Bool="false" /> </Record> </Annotation> </Annotations> </xsl:template> <xsl:template match="edm2:EntityType/@sap:semantics[.='parameters']" /> <xsl:template match="edm2:EntityType/@sap:semantics[.='aggregate']" /> <xsl:template match="edm2:Property/@sap:semantics[.='currency-code']" /> <xsl:template match="edm2:Property/@sap:semantics[.='unit-of-measure']" /> <xsl:template match="edm2:Property/@sap:semantics[.='email']"> <Annotation Term=".IsEmailAddress"> <xsl:attribute name="Term"> <xsl:value-of select="$Communication" /> <xsl:text>.IsEmailAddress</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:semantics[.='tel']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Communication" /> <xsl:text>.IsPhoneNumber</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:semantics[.='url']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Core" /> <xsl:text>.IsURL</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:semantics[.='yearmonthday']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.IsCalendarDate</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:aggregation-role[.='dimension']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Analytics" /> <xsl:text>.Dimension</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:aggregation-role[.='measure']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Analytics" /> <xsl:text>.Measure</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:aggregation-role[.='totaled-properties-list']" /> <xsl:template match="edm2:Property/@sap:attribute-for" /> <xsl:template match="edm2:Property/@sap:parameter" /> <xsl:template match="edm2:Property/@sap:super-ordinate"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Aggregation" /> <xsl:text>.ContextDefiningProperties</xsl:text> </xsl:attribute> <Collection> <xsl:apply-templates select="." mode="propertypath" /> </Collection> </Annotation> </xsl:template> <xsl:template match="edm2:Property/@sap:super-ordinate" mode="propertypath"> <xsl:variable name="path" select="." /> <PropertyPath> <xsl:value-of select="$path" /> </PropertyPath> <xsl:apply-templates select="../../edm2:Property[@Name=$path]/@sap:super-ordinate" mode="propertypath" /> </xsl:template> <xsl:template match="edm2:Property/@sap:field-control"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.FieldControl</xsl:text> </xsl:attribute> <xsl:attribute name="Path"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:creatable"> <xsl:if test=". = 'false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.InsertRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Insertable" Bool="false" /> </Record> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:updatable-path" /> <xsl:template match="edm2:EntitySet/@sap:updatable"> <xsl:if test=". = 'false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.UpdateRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Updatable" Bool="false" /> </Record> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:deletable"> <xsl:if test=". = 'false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.DeleteRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Deletable" Bool="false" /> </Record> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:searchable" /> <xsl:template match="edm2:EntitySet/@sap:pageable"> <xsl:if test=".='false'"> <Annotation Bool="false"> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.TopSupported</xsl:text> </xsl:attribute> </Annotation> <Annotation Bool="false"> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.SkipSupported</xsl:text> </xsl:attribute> </Annotation> </xsl:if> </xsl:template> <xsl:template match="edm2:Property/@sap:creatable" /> <xsl:template match="edm2:Property/@sap:updatable"> <xsl:choose> <xsl:when test=".='false' and ../@sap:creatable='false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Core" /> <xsl:text>.Computed</xsl:text> </xsl:attribute> </Annotation> </xsl:when> <xsl:when test=".='false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Core" /> <xsl:text>.Immutable</xsl:text> </xsl:attribute> </Annotation> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:addressable"> <xsl:if test=". = 'false'"> <xsl:variable name="indexable"> <xsl:call-template name="capability-indexablebykey"> <xsl:with-param name="target" select=".." /> </xsl:call-template> </xsl:variable> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Capabilities" /> <xsl:text>.ReadRestrictions</xsl:text> </xsl:attribute> <Record> <PropertyValue Property="Readable" Bool="false" /> <xsl:if test="$indexable='true'"> <PropertyValue Property="ReadByKeyRestrictions"> <Record> <PropertyValue Property="Readable" Bool="true" /> </Record> </PropertyValue> </xsl:if> </Record> </Annotation> </xsl:if> </xsl:template> <xsl:template name="capability-indexablebykey"> <xsl:param name="target" select="." /> <xsl:variable name="term" select="'IndexableByKey'" /> <xsl:variable name="target-path" select="concat($target/../../@Namespace,'.',$target/../@Name,'/',$target/@Name)" /> <xsl:variable name="target-path-aliased" select="concat($target/../../@Alias,'.',$target/../@Name,'/',$target/@Name)" /> <xsl:variable name="anno" select="//edm:Annotations[(@Target=$target-path or @Target=$target-path-aliased)]/edm:Annotation[(@Term=concat($CapabilitiesNamespace,'.',$term) or @Term=concat($Capabilities,'.',$term))] |$target/edm:Annotation[(@Term=concat($CapabilitiesNamespace,'.',$term) or @Term=concat($Capabilities,'.',$term))]" /> <xsl:choose> <xsl:when test="$anno/@Bool|$anno/edm:Bool"> <xsl:value-of select="$anno/@Bool|$anno/edm:Bool" /> </xsl:when> <xsl:when test="$anno"> <xsl:text>true</xsl:text> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="edm2:EntitySet/@sap:requires-filter" /> <xsl:template name="restriction"> <xsl:param name="capability" /> <xsl:param name="required" select="false()" /> <xsl:param name="required-properties" select="null" /> <xsl:param name="restricted-properties" select="null" /> <xsl:param name="excluded-properties" /> <xsl:if test="$required or $required-properties or $excluded-properties"> <xsl:element name="Annotation"> <xsl:attribute name="Term"> <xsl:value-of select="concat('Capabilities.',$capability,'Restrictions')" /> </xsl:attribute> <Record> <xsl:if test="$required"> <PropertyValue Property="RequiresFilter" Bool="true" /> </xsl:if> <xsl:if test="$required-properties"> <xsl:element name="PropertyValue"> <xsl:attribute name="Property">RequiredProperties</xsl:attribute> <Collection> <xsl:apply-templates select="$required-properties" mode="restriction" /> </Collection> </xsl:element> </xsl:if> <xsl:if test="$restricted-properties"> <xsl:element name="PropertyValue"> <xsl:attribute name="Property">FilterExpressionRestrictions</xsl:attribute> <Collection> <xsl:apply-templates select="$restricted-properties" mode="restriction" /> </Collection> </xsl:element> </xsl:if> <xsl:if test="$excluded-properties"> <xsl:element name="PropertyValue"> <xsl:attribute name="Property"> <xsl:value-of select="concat('Non',$capability,'ableProperties')" /> </xsl:attribute> <Collection> <xsl:apply-templates select="$excluded-properties" mode="restriction" /> </Collection> </xsl:element> </xsl:if> </Record> </xsl:element> </xsl:if> </xsl:template> <xsl:template match="edm2:Property/@sap:filterable|edm2:Property/@sap:sortable|edm2:Property/@sap:required-in-filter" mode="restriction" > <xsl:element name="PropertyPath"> <xsl:value-of select="../@Name" /> </xsl:element> </xsl:template> <xsl:template match="edm2:Property/@sap:filterable|edm2:Property/@sap:sortable|edm2:Property/@sap:required-in-filter" /> <xsl:template match="edm2:Property/@sap:filter-restriction" mode="restriction"> <Record> <PropertyValue Property="Property"> <xsl:attribute name="PropertyPath"> <xsl:value-of select="../@Name" /> </xsl:attribute> </PropertyValue> <PropertyValue Property="AllowedExpressions"> <xsl:attribute name="String"> <xsl:choose> <xsl:when test=".='single-value'"> <xsl:text>SingleValue</xsl:text> </xsl:when> <xsl:when test=".='multi-value'"> <xsl:text>MultiValue</xsl:text> </xsl:when> <xsl:when test=".='interval'"> <xsl:text>SingleRange</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>TODO:</xsl:text> <xsl:value-of select="." /> <xsl:message> <xsl:text>sap:filter-restriction="</xsl:text> <xsl:value-of select="." /> <xsl:text>"</xsl:text> </xsl:message> </xsl:otherwise> </xsl:choose> </xsl:attribute> </PropertyValue> </Record> </xsl:template> <xsl:template match="edm2:Property/@sap:filter-restriction" /> <xsl:template match="edm2:Property/@sap:visible"> <xsl:if test=".='false'"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$UI" /> <xsl:text>.Hidden</xsl:text> </xsl:attribute> </Annotation> </xsl:if> </xsl:template> <xsl:template match="@sap:display-format[.='UpperCase']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.IsUpperCase</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:display-format[.='NonNegative']"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Common" /> <xsl:text>.IsDigitSequence</xsl:text> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:validation-regexp"> <Annotation> <xsl:attribute name="Term"> <xsl:value-of select="$Validation" /> <xsl:text>.Pattern</xsl:text> </xsl:attribute> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <xsl:template match="@sap:default"> <xsl:attribute name="DefaultValue"> <xsl:value-of select="." /> </xsl:attribute> </xsl:template> <xsl:template match="@sap:containstarget"> <xsl:attribute name="ContainsTarget"> <xsl:value-of select="." /> </xsl:attribute> </xsl:template> <xsl:template match="@sap:*"> <xsl:message> <xsl:value-of select="name(..)" /> <xsl:text>/</xsl:text> <xsl:value-of select="name()" /> <xsl:text>="</xsl:text> <xsl:value-of select="." /> <xsl:text>"</xsl:text> </xsl:message> <Annotation> <xsl:attribute name="Term"> <xsl:text>TODO.</xsl:text> <xsl:value-of select="translate(local-name(),'-','_' )" /> </xsl:attribute> <xsl:attribute name="String"> <xsl:value-of select="." /> </xsl:attribute> </Annotation> </xsl:template> <!-- ignore --> <xsl:template match="@sap:content-version|@sap:display-format[.='Date']" /> <xsl:template match="@sap:is-annotation|@sap:is-extension-field|@sap:is-thing-type" /> <xsl:template match="@sap:supported-formats|@sap:message-scope-supported" /> <xsl:template match="@sap:value-list" /> <xsl:template match="@sap:unicode" /> <xsl:template match="edm2:Association|edm2:AssociationSet|edm2:Using" /> <xsl:template match="edm3:Association|edm3:AssociationSet|edm3:Using" /> <xsl:template match="@Collation|@FixedLength|@Mode|edm2:Parameter/@DefaultValue|edm3:Parameter/@DefaultValue" /> <xsl:template match="@m:IsDefaultEntityContainer" /> <xsl:template match="@annotation:*" /> <!-- literally copy from V2, V3, and V4 edm namespaces --> <xsl:template match="edm:*|edm2:*|edm3:*"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@*|node()" /> </xsl:element> </xsl:template> <xsl:template match="@*"> <xsl:copy /> </xsl:template> <!-- get all but last segment --> <xsl:template name="substring-before-last"> <xsl:param name="input" /> <xsl:param name="marker" /> <xsl:if test="contains($input,$marker)"> <xsl:value-of select="substring-before($input,$marker)" /> <xsl:if test="contains(substring-after($input,$marker),$marker)"> <xsl:value-of select="$marker" /> <xsl:call-template name="substring-before-last"> <xsl:with-param name="input" select="substring-after($input,$marker)" /> <xsl:with-param name="marker" select="$marker" /> </xsl:call-template> </xsl:if> </xsl:if> </xsl:template> <!-- get last segment --> <xsl:template name="substring-after-last"> <xsl:param name="input" /> <xsl:param name="marker" /> <xsl:choose> <xsl:when test="contains($input,$marker)"> <xsl:call-template name="substring-after-last"> <xsl:with-param name="input" select="substring-after($input,$marker)" /> <xsl:with-param name="marker" select="$marker" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$input" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="replace-all"> <xsl:param name="string" /> <xsl:param name="old" /> <xsl:param name="new" /> <xsl:choose> <xsl:when test="contains($string,$old)"> <xsl:value-of select="substring-before($string,$old)" /> <xsl:value-of select="$new" /> <xsl:call-template name="replace-all"> <xsl:with-param name="string" select="substring-after($string,$old)" /> <xsl:with-param name="old" select="$old" /> <xsl:with-param name="new" select="$new" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string" /> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <!DOCTYPE stylesheet [ <!ENTITY HEXUPPER "ABCDEFxx0123456789"> <!ENTITY HEXLOWER "abcdefxX0123456789"> <!ENTITY HEXU2L " '&HEXLOWER;' , '&HEXUPPER;' "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink"> <xsl:output method="html"/> <!-- ======================= MAIN MEMORY MAP SECTION =============================== --> <xsl:template name="WriteContents_MemoryMap"> <xsl:param name="table_width" select="600"/> <xsl:variable name="procName" select="@INSTANCE"/> <xsl:if test="MEMORYMAP/MEMRANGE[(@INSTANCE)]"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{$table_width}" COLS="5" cellspacing="1" cellpadding="2" border="0"> <TR></TR> <TD COLSPAN="5" width="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"> <A name="ANCHOR_{@INSTANCE}_MemoryMap"/> <SPAN style="color:{$COL_WHITE}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">MEMORY MAP</SPAN> </TD> <TR></TR> <TD COLSPAN="5" width="100%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">D=DATA ADDRESSABLE &#160;&#160; I=INSTRUCTION ADDRESSABLE</SPAN></TD> <TR></TR> <TD COLSPAN="1" width="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">D</SPAN></TD> <TD COLSPAN="1" width="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">I</SPAN></TD> <TD COLSPAN="1" width="20%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">BASE</SPAN></TD> <TD COLSPAN="1" width="20%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">HIGH</SPAN></TD> <TD COLSPAN="1" width="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">MODULE</SPAN></TD> <TR></TR> <xsl:for-each select="MEMORYMAP/MEMRANGE[(@INSTANCE)]"> <xsl:sort data-type="number" select="@BASEDECIMAL" order="ascending"/> <TR></TR> <xsl:variable name="isdata"> <xsl:if test="@IS_DATA='TRUE'">&#9632;</xsl:if> <xsl:if test="not(@IS_DATA='TRUE')">&#160;</xsl:if> </xsl:variable> <xsl:variable name="isinst"> <xsl:if test="@IS_INSTRUCTION='TRUE'"> &#9632; </xsl:if> <xsl:if test="not(@IS_INSTRUCTION='TRUE')"> &#160; </xsl:if> </xsl:variable> <xsl:variable name="bupper" select ="@BASEVALUE"/> <xsl:variable name="hupper" select ="@HIGHVALUE"/> <xsl:variable name="iname" select ="@INSTANCE"/> <TD COLSPAN="1" width="5%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,sans-serif"><xsl:value-of select="$isdata"/></SPAN></TD> <TD COLSPAN="1" width="5%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,sans-serif"><xsl:value-of select="$isinst"/></SPAN></TD> <TD COLSPAN="1" width="20%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate($bupper,&HEXU2L;)"/></SPAN></TD> <TD COLSPAN="1" width="20%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate($hupper,&HEXU2L;)"/></SPAN></TD> <TD COLSPAN="1" width="50%" ALIGN="RIGHT" BGCOLOR="{$COL_WHITE}"> <A HREF="#ANCHOR_{$iname}" style="text-decoration:none"> <SPAN style="color:{$COL_BLACK}; vertical-align:sub; font: normal 8px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@BASENAME"/>:<xsl:value-of select="@HIGHNAME"/></SPAN><SPAN style="color:{$COL_XLNX}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@INSTANCE"/></SPAN> </A> </TD> </xsl:for-each> </TABLE> </xsl:if> </xsl:template> </xsl:stylesheet>
<filename>data/github.com/clacks-overhead/clacks-protocol/4e395ec9a9cd272e7401172ef3559884dd343b37/transform.xsl <?xml version="1.0"?> <!-- vim: set shiftwidth=1 tabstop=2: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" extension-element-prefixes="exsl"> <!-- (c) <NAME> 2013. Hereby put in the public domain. Version: 2.11 --> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:comment> This document was prepared using Pandoc2rfc, https://github.com/miekg/pandoc2rfc </xsl:comment> <xsl:apply-templates/> </xsl:template> <xsl:template match="article"> <xsl:apply-templates/> </xsl:template> <!-- Remove the article info section, this should be handled in the <front> matter of the draft --> <xsl:template match="articleinfo"/> <xsl:template match="footnote"> <xsl:choose> <xsl:when test="child::para/superscript"> <iref> <xsl:attribute name="item"> <xsl:value-of select="para/superscript"/> </xsl:attribute> <xsl:attribute name="subitem"> <xsl:for-each select="./para/text()[not(ancestor::superscript)]"> <xsl:value-of select="normalize-space(translate(., '&#10;', ' '))"/> </xsl:for-each> </xsl:attribute> </iref> </xsl:when> <xsl:otherwise> <!-- discard --> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Merge section with the title tags into one section --> <xsl:template match="section | simplesect | sect1 | sect2 | sect3 | sect4 | sect5"> <section> <xsl:attribute name="title"> <xsl:value-of select="normalize-space(translate(./title, '&#10;', ' '))"/> </xsl:attribute> <xsl:attribute name="anchor"> <xsl:value-of select="@id"/> </xsl:attribute> <xsl:apply-templates/> </section> </xsl:template> <!-- Transform a <para> to <t>, not in lists, then it is discarded --> <xsl:template match="para | simpara"> <xsl:choose> <xsl:when test="parent::listitem"> <xsl:if test="position() &gt; 2"> <vspace blankLines="1"/> </xsl:if> <xsl:apply-templates/> </xsl:when> <xsl:when test="ancestor::tbody"> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <t> <xsl:apply-templates/> </t> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Transform a <listitem> to a <t> for lists, except in description lists --> <xsl:template match="listitem"> <xsl:choose> <xsl:when test="parent::varlistentry"> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <t> <xsl:apply-templates/> </t> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Transform lists, for lists in list we do not put it in a new <t></t> --> <xsl:template match="orderedlist/listitem/para/emphasis"> <xsl:choose> <xsl:when test="@role = 'strikethrough'"/> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="orderedlist"> <xsl:choose> <!-- style="format ..." --> <xsl:when test="listitem/para/emphasis/@role = 'strikethrough'"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list> <xsl:attribute name="style"> <xsl:value-of select="concat('format ', listitem/para/emphasis)"/> </xsl:attribute> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list> <xsl:attribute name="style"> <xsl:value-of select="concat('format ', listitem/para/emphasis)"/> </xsl:attribute> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list> <xsl:attribute name="style"> <xsl:value-of select="concat('format ', listitem/para/emphasis)"/> </xsl:attribute> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list> <xsl:attribute name="style"> <xsl:value-of select="concat('format ', listitem/para/emphasis)"/> </xsl:attribute> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="contains(@numeration,'arabic')"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="numbers"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="numbers"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="numbers"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="numbers"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="contains(@numeration,'lowerroman')"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="format %i."> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="format %i."> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="format %i."> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="format %i."> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="contains(@numeration,'upperroman')"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="format (%d)"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="format (%d)"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="format (%d)"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="format (%d)"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="contains(@numeration,'upperalpha')"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="format %C."> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="format %C."> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="format %C."> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="format %C."> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="contains(@numeration,'loweralpha')"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="letters"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="letters"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="letters"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="letters"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="empty"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="empty"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="empty"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="empty"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="itemizedlist"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="symbols"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="symbols"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="symbols"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="symbols"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Hanging lists are specified as <variablelist> --> <xsl:template match="variablelist"> <xsl:choose> <xsl:when test="ancestor::orderedlist"> <list style="hanging"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::itemizedlist"> <list style="hanging"> <xsl:apply-templates/> </list> </xsl:when> <xsl:when test="ancestor::variablelist"> <list style="hanging"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="hanging"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="varlistentry"> <t> <xsl:attribute name="hangText"> <xsl:value-of select="normalize-space(translate(./term, ' &#9;&#13;&#10;', ' '))"/> </xsl:attribute> <!-- OPTION: enable this to get a newline after the hangText --> <!-- <xsl:element name="vspace"/> --> <xsl:apply-templates select="./listitem"/> </t> </xsl:template> <!-- Transform <link> to <xref> crosslinks --> <xsl:template match="link"> <xref> <xsl:attribute name="target"> <xsl:value-of select="@linkend"/> </xsl:attribute> <xsl:apply-templates/> </xref> </xsl:template> <!-- Transform <ulink> to <eref> links --> <xsl:template match="ulink"> <eref> <xsl:attribute name="target"> <xsl:value-of select="@url"/> </xsl:attribute> <xsl:apply-templates/> </eref> </xsl:template> <!-- Deal with line blocks --> <xsl:template match="literallayout"> <xsl:apply-templates/> <!-- hack assuming in a literal layout, we want to see a newline --> <vspace/> </xsl:template> <!-- Transform <blockquote> to <list style="empty"> --> <xsl:template match="blockquote"> <xsl:choose> <xsl:when test="parent::listitem"> <list style="empty"> <xsl:apply-templates/> </list> </xsl:when> <xsl:otherwise> <t> <list style="empty"> <xsl:apply-templates/> </list> </t> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Transform <programlisting> to <figure><artwork> --> <xsl:template match="screen | programlisting"> <figure> <xsl:if test="normalize-space(substring-before(following-sibling::*[position()=1][name()='para']/footnote/para, '::')) != ''"> <xsl:attribute name="anchor"> <xsl:value-of select="normalize-space(substring-before(following-sibling::*[position()=1][name()='para']/footnote/para, '::'))"/> </xsl:attribute> </xsl:if> <xsl:if test="normalize-space(substring-after(following-sibling::*[position()=1][name()='para']/footnote/para, '::')) != ''"> <xsl:attribute name="align"> <xsl:text>center</xsl:text> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="normalize-space(substring-after(following-sibling::*[position()=1][name()='para']/footnote/para, '::'))"/> </xsl:attribute> </xsl:if> <artwork> <xsl:if test="normalize-space(substring-after(following-sibling::*[position()=1][name()='para']/footnote/para, '::')) != ''"> <xsl:attribute name="align"> <xsl:text>center</xsl:text> </xsl:attribute> </xsl:if> <xsl:value-of select="."/> </artwork> </figure> </xsl:template> <xsl:template match="title"/> <xsl:template match="literal"> <xsl:choose> <xsl:when test="parent::emphasis"> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <spanx style="verb"> <xsl:apply-templates/> </spanx> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="emphasis"> <xsl:choose> <!-- spanx inside spanx it not supported --> <xsl:when test="parent::emphasis"> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="contains(@role,'strong')"> <spanx style="strong"> <xsl:apply-templates/> </spanx> </xsl:when> <xsl:otherwise> <spanx style="emph"> <xsl:apply-templates/> </spanx> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Tables --> <xsl:template match="table | informaltable"> <texttable> <xsl:if test="normalize-space(substring-before(following-sibling::*[position()=1][name()='para']/footnote/para, '::')) != ''"> <xsl:attribute name="anchor"> <xsl:value-of select="normalize-space(substring-before(following-sibling::*[position()=1][name()='para']/footnote/para, '::'))"/> </xsl:attribute> </xsl:if> <xsl:if test="normalize-space(substring-after(following-sibling::*[position()=1][name()='para']/footnote/para, '::')) != ''"> <xsl:attribute name="align"> <xsl:text>center</xsl:text> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="normalize-space(substring-after(following-sibling::*[position()=1][name()='para']/footnote/para, '::'))"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </texttable> </xsl:template> <!-- Table headers --> <xsl:template match="table/thead/tr/th | informaltable/thead/tr/th"> <ttcol> <xsl:attribute name="align"> <xsl:value-of select="@align"/> </xsl:attribute> <!-- Every even position() need to be dealt with: 2 look back to 1, 4 look back to 2, etc. --> <xsl:if test="position() = 2"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="1"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 4"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="2"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 6"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="3"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 8"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="4"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 10"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="5"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 12"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="6"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 14"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="7"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 16"> <xsl:call-template name="get_col"> <xsl:with-param name="column" select="8"/> </xsl:call-template> </xsl:if> <xsl:apply-templates/> </ttcol> </xsl:template> <xsl:template name="get_col"> <xsl:param name="column"/> <xsl:if test="../../../col[$column]"> <xsl:attribute name="width"> <xsl:value-of select="../../../col[$column]/@width"/> </xsl:attribute> </xsl:if> </xsl:template> <!-- Table headers for CALS tables --> <xsl:template match="table/tgroup/thead/row/entry"> <ttcol> <xsl:if test="position() = 2"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="1"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 4"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="2"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 6"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="3"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 8"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="4"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 10"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="5"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 12"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="6"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 14"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="7"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 16"> <xsl:call-template name="get_colspec"> <xsl:with-param name="column" select="8"/> </xsl:call-template> </xsl:if> <!-- If the entry itself has align, we use that --> <xsl:if test="@align"> <xsl:attribute name="align"> <xsl:value-of select="@align"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </ttcol> </xsl:template> <xsl:template name="get_colspec"> <xsl:param name="column"/> <xsl:if test="../../../../tgroup/colspec[$column]"> <xsl:attribute name="align"> <xsl:value-of select="../../../../tgroup/colspec[$column]/@align"/> </xsl:attribute> <!-- Optionally colwidth, translate * to % --> <xsl:if test="../../../../tgroup/colspec[$column]/@colwidth"> <xsl:attribute name="width"> <xsl:value-of select="translate(../../../../tgroup/colspec[$column]/@colwidth, '*', '%')"/> </xsl:attribute> </xsl:if> </xsl:if> </xsl:template> <!-- Table headers for CALS tables, Pandoc 1.9.x+ --> <xsl:template match="informaltable/tgroup/thead/row/entry"> <ttcol> <xsl:if test="position() = 2"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="1"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 4"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="2"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 6"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="3"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 8"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="4"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 10"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="5"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 12"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="6"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 14"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="7"/> </xsl:call-template> </xsl:if> <xsl:if test="position() = 16"> <xsl:call-template name="get_colspec_informal"> <xsl:with-param name="column" select="8"/> </xsl:call-template> </xsl:if> <!-- If the entry itself has align, we use that --> <xsl:if test="@align"> <xsl:attribute name="align"> <xsl:value-of select="@align"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </ttcol> </xsl:template> <xsl:template name="get_colspec_informal"> <xsl:param name="column"/> <xsl:if test="../../../../tgroup/colspec[$column]"> <xsl:attribute name="align"> <xsl:value-of select="../../../../tgroup/colspec[$column]/@align"/> </xsl:attribute> <!-- Optionally colwidth, translate * to % --> <xsl:if test="../../../../tgroup/colspec[$column]/@colwidth"> <xsl:attribute name="width"> <xsl:value-of select="translate(../../../../tgroup/colspec[$column]/@colwidth,'*', '%')"/> </xsl:attribute> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="table/tbody/tr/td | informaltable/tbody/tr/td | table/tgroup/tbody/row/entry | informaltable/tgroup/tbody/row/entry"> <c> <xsl:apply-templates/> </c> </xsl:template> <!-- CALS table --> <xsl:template match="table/tbody/row/entry"> <c> <xsl:apply-templates/> </c> </xsl:template> <!-- Allow embedded PIs and other one-offs --> <xsl:template match="para/processing-instruction('rfc')"> <xsl:processing-instruction name="rfc"> <xsl:value-of select="."/> </xsl:processing-instruction> </xsl:template> <xsl:template match="para/vspace"> <vspace> <xsl:if test="@blankLines"> <xsl:attribute name="blankLines"> <xsl:value-of select="@blankLines"/> </xsl:attribute> </xsl:if> </vspace> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method='html' indent='yes' standalone='yes' encoding="utf-16"/> <xsl:template match="/"> <html> <style> body { font-family: Verdana,Arial; color: black; margin-left: 2%; margin-right: 2%; background: white; } .sd { font-size: 60%; } .title { font-size: 110%; font-weight: bolder; } .sub_title { font-size: 105%; font-weight: bolder; } .nh { text-align: right; } .nf { text-align: right; } .sh { text-align: left; } .sf { text-align: left; } .smh { text-align: left; font-size: 80%; width: 50%; } .smh2 { font-size: 80%; } .smf { text-align: left; background: lightgrey; } .smf2 { background: lightgrey; } td { font-size: 80%; } th { font-size: 70%; } hr { border:1px solid black; } a:link { color: black; text-decoration: underline; } a:visited { color: black; text-decoration: underline; } </style> <body> <xsl:for-each select="report/header"> <table width='100%' style="border:1px solid black"> <tr><td class='title'>Windows Event Trace Session Report<hr/></td></tr> <tr><td> <table cellpadding='0'> <xsl:if test="string-length(build) > 0"> <tr> <td class='sd'><b>Window Build:</b></td> <td class='sd'><xsl:value-of select="build"/></td> </tr> </xsl:if> <xsl:if test="string-length(computer_name) > 0"> <tr> <td class='sd'><b>Computer:</b></td> <td class='sd'><xsl:value-of select="computer_name"/></td> </tr> </xsl:if> <xsl:if test="string-length(processors) > 0"> <tr> <td class='sd'><b>Processors:</b></td> <td class='sd'><xsl:value-of select="processors"/></td> </tr> </xsl:if> <xsl:if test="string-length(cpu_speed) > 0"> <tr> <td class='sd'><b>CPU Speed:</b></td> <td class='sd'><xsl:value-of select="cpu_speed"/><xsl:value-of select="'&#xA0;'"/><xsl:value-of select="cpu_speed/@units"/></td> </tr> </xsl:if> <xsl:if test="string-length(memory) > 0"> <tr> <td class='sd'><b>Memory:</b></td> <td class='sd'><xsl:value-of select="memory"/><xsl:value-of select="'&#xA0;'"/><xsl:value-of select="memory/@units"/></td> </tr> </xsl:if> <xsl:for-each select="trace"> <tr> <td class='sd' height='6'/> </tr> <tr> <td class='sd'><b>Trace Name:</b></td> <td class='sd'><xsl:value-of select="@name"/></td> </tr> <tr> <td class='sd'><b>File:</b></td> <td class='sd'><xsl:value-of select="file"/></td> </tr> <tr> <td class='sd'><b>Start Time:</b></td> <td class='sd'><xsl:value-of select="start"/></td> </tr> <tr> <td class='sd'><b>End Time:</b></td> <td class='sd'><xsl:value-of select="end"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> </xsl:for-each> <br/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Summary<hr/></td></tr> <tr><td valign='top'> <xsl:for-each select="report/table[@title='Image Statistics']"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#image_stats'>Total CPU%</a></th> </tr><tr> <td class='smf'><xsl:value-of select="format-number(sum(image[@name != 'Idle']/cpu),'0.00')"/></td> </tr> </table> </td><td> <xsl:for-each select="image[@name != 'Idle']"> <xsl:sort select="cpu" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#image_stats'>Top Process</a></th> <th class='smh'>CPU%</th> </tr><tr> <td class='smf'><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="cpu"/></td> </tr> </table> </xsl:if> </xsl:for-each> </td></tr></table> </xsl:for-each> <xsl:for-each select="report/table[@title='Http Requests Response Time Statistics']/summary[@type='totals']"> <xsl:if test="position() = 1"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr><th class='smh'><a href='#http_response'>HTTP Requests/sec</a></th></tr> <tr><td class='smf'><xsl:value-of select="rate"/></td></tr> </table> </td><td> <table width='100%' style="border:1px solid black"> <tr><th class='smh'><a href='#http_response'>Response Time(ms)</a></th></tr> <tr><td class='smf'><xsl:value-of select="format-number(response_time, '0.00')"/></td></tr> </table> </td></tr></table> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Http Requests Response Time Statistics']"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh2' align='left'><a href='#http_response'>HTTP Requests</a></th> <th class='smh2' align='right'>Requests/sec</th> <th class='smh2' align='right'>Response Time(ms)</th> </tr><tr> <td class='smf2'>Cached</td> <td class='smf2' align='right'><xsl:value-of select="summary[@cached='true']/rate"/></td> <td class='smf2' align='right'><xsl:value-of select="format-number(summary[@cached='true']/response_time, '0.00')"/></td> </tr><tr> <td class='smf2'>Non Cached</td> <td class='smf2' align='right'><xsl:value-of select="summary[@cached='false']/rate"/></td> <td class='smf2' align='right'><xsl:value-of select="format-number(summary[@cached='false']/response_time, '0.00')"/></td> </tr> </table> </td></tr></table> </xsl:for-each> <xsl:if test="count(report/table[@title='Sites with the Most CPU Time Usage']/site) > 1"> <xsl:for-each select="report/table[@title='Sites with the Most CPU Time Usage']/site[1]"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#site'>Top Site by CPU%</a></th> <th class='smh'>CPU%</th> </tr><tr> <td class='smf'><xsl:value-of select="@id"/></td> <td class='smf'><xsl:value-of select="cpu"/></td> </tr> </table> </td></tr></table> </xsl:for-each> </xsl:if> <xsl:for-each select="report/table[@title='Slowest URLs']/url[1]"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#slowest_url'>Slowest URL</a></th> <th class='smh'>Response Time(ms)</th> </tr><tr> <td class='smf'><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="response_time"/></td> </tr> </table> </td></tr></table> </xsl:for-each> <xsl:for-each select="report/table[@title='URLs with the Most CPU Usage']/url[1]"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#cpu_url'>Top URL by CPU%</a></th> <th class='smh'>CPU%</th> </tr><tr> <td class='smf'><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="cpu"/></td> </tr> </table> </td></tr></table> </xsl:for-each> <xsl:for-each select="report/table[@title='Transaction Statistics']/transaction"> <xsl:sort select="count" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#trans_stats'>Top Transaction by Rate</a></th> <th class='smh'>Transactions/sec</th> </tr><tr> <td class='smf'><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="rate"/></td> </tr> </table> </td></tr></table> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Transaction CPU Utilization']/transaction"> <xsl:sort select="cpu" data-type="number" order="descending"/> <xsl:sort select="rate" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#trans_cpu'>Top Transaction by CPU%</a></th> <th class='smh'>CPU%</th> </tr><tr> <td class='smf'><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="cpu"/></td> </tr> </table> </td></tr></table> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Clients with the Most Requests']/client[1]"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#top_client'>Top Client by Request Rate</a></th> <th class='smh'>Requests/sec</th> </tr><tr> <td class='smf'><xsl:value-of select="@ip"/></td> <td class='smf'><xsl:value-of select="rate"/></td> </tr> </table> </td></tr></table> </xsl:for-each> <xsl:for-each select="report/table[@title='Disk Totals']/disk"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#disk'>Top Disk by IO Rate</a></th> <th class='smh'>IO/sec</th> </tr><tr> <td class='smf'><xsl:value-of select="@number"/></td> <td class='smf'><xsl:value-of select="read_rate + write_rate"/></td> </tr> </table> </td></tr></table> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Files Causing Most Disk IOs']/file"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <table width='100%'><tr><td> <table width='100%' style="border:1px solid black"> <tr> <th class='smh'><a href='#top_file'>Top File by IO Rate</a></th> <th class='smh'>IO/sec</th> </tr><tr> <td class='smf'><xsl:value-of select="drive"/><xsl:value-of select="@name"/></td> <td class='smf'><xsl:value-of select="read_rate + write_rate"/></td> </tr> </table> </td></tr></table> </xsl:if> </xsl:for-each> </td></tr> </table> <br/> <xsl:for-each select="report/table[@title='Transaction Statistics']"> <a name='trans_stats'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Transaction Statistics<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th rowspan='2' class='sh'>Transaction Name</th> <th rowspan='2' class='nh'>Transactions</th> <th rowspan='2' class='nh'>Response Time(ms)</th> <th rowspan='2' class='nh'>Transactions/sec</th> <th rowspan='2' class='nh'>CPU%</th> <th class='nh' colspan='2'>IO/Transaction</th> </tr> <tr> <th class='nh'>Reads</th> <th class='nh'>Writes</th> </tr> <xsl:for-each select="transaction"> <xsl:sort select="count" data-type="number" order="descending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='nf'><xsl:value-of select="count"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> <td class='nf'><xsl:value-of select="disk_read_per_trans"/></td> <td class='nf'><xsl:value-of select="disk_write_per_trans"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Transaction CPU Utilization']"> <a name='trans_cpu'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Transaction CPU Utilization<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th rowspan='2' class='sh'>Transaction Name</th> <th rowspan='2' class='nh'>Transactions/sec</th> <th colspan='2'>Maximum CPU(ms)</th> <th colspan='2'>Per Transaction(ms)</th> <th colspan='2'>Total(ms)</th> <th rowspan='2' class='nh'>CPU%</th> </tr> <tr> <th class='nh'>Kernel</th> <th class='nh'>User</th> <th class='nh'>Kernel</th> <th class='nh'>User</th> <th class='nh'>Kernel</th> <th class='nh'>User</th> </tr> <xsl:for-each select="transaction"> <xsl:sort select="cpu" data-type="number" order="descending"/> <xsl:sort select="rate" data-type="number" order="descending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td><xsl:value-of select="@name"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="max_kernel"/></td> <td class='nf'><xsl:value-of select="max_user"/></td> <td class='nf'><xsl:value-of select="per_trans_kernel"/></td> <td class='nf'><xsl:value-of select="per_trans_user"/></td> <td class='nf'><xsl:value-of select="total_kernel"/></td> <td class='nf'><xsl:value-of select="total_user"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Transaction Instance (Job) Statistics']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Transaction Instance (Job) Statistics<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Job Id</th> <th class='nh'>Start Time</th> <th class='nh'>Dequeue Time</th> <th class='nh'>End Time</th> <th class='nh'>Response Time(ms)</th> <th class='nh'>CPU Time(ms)</th> </tr> <xsl:for-each select="job"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="start"/></td> <td class='nf'><xsl:value-of select="dequeue"/></td> <td class='nf'><xsl:value-of select="end"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> </tr> </xsl:for-each> <tr> <td class='nf'><hr/>Total Jobs: <xsl:value-of select="count(job)"/></td> <td colspan='3'/> <td class='nf'><hr/><xsl:value-of select="format-number( sum(job/response_time) div count(job), '#' )"/></td> <td class='nf'><hr/><xsl:value-of select="sum(job/cpu)"/></td> </tr> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Spooler Transaction Instance (Job) Data']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Spooler Transaction Instance (Job) Data<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Job Id</th> <th class='nh'>Type</th> <th class='nh'>Job Size(Kb)</th> <th class='nh'>Pages</th> <th class='nh'>PPS</th> <th class='nh'>Files</th> <th class='nh'>GDI Size</th> <th class='nh'>Color</th> <th class='nh'>XRes</th> <th class='nh'>YRes</th> <th class='nh'>Qlty</th> <th class='nh'>Copy</th> <th class='nh'>TTOpt</th> <th class='nh'>Threads</th> </tr> <xsl:for-each select="job"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="type"/></td> <td class='nf'><xsl:value-of select="size"/></td> <td class='nf'><xsl:value-of select="pages"/></td> <td class='nf'><xsl:value-of select="PPS"/></td> <td class='nf'><xsl:value-of select="files"/></td> <td class='nf'><xsl:value-of select="gdisize"/></td> <td class='nf'><xsl:value-of select="color"/></td> <td class='nf'><xsl:value-of select="xres"/></td> <td class='nf'><xsl:value-of select="yres"/></td> <td class='nf'><xsl:value-of select="qlty"/></td> <td class='nf'><xsl:value-of select="copies"/></td> <td class='nf'><xsl:value-of select="ttopt"/></td> <td class='nf'><xsl:value-of select="threads"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Exclusive Transactions Per Process']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Exclusive Transactions Per Process<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th colspan='4'/> <th colspan='2'>Exclusive/Transaction CPU(ms)</th> <th colspan='2'/> </tr> <tr> <th class='sh'>Name</th> <th class='sh'>Process ID</th> <th class='nh'>Transactions</th> <th class='nh'>Transactions/sec</th> <th class='nh'>Kernel</th> <th class='nh'>User</th> <th class='nh'>Process CPU%</th> <th class='nh'>CPU%</th> </tr> <xsl:for-each select="process"> <tr> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="pid"/></td> </tr> <xsl:for-each select="transaction"> <xsl:sort select="cpu" data-type="number" order="descending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf' colspan='2'><xsl:value-of select="'&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;'"/><xsl:value-of select="@name"/></td> <td class='nf'><xsl:value-of select="count"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="kernel"/></td> <td class='nf'><xsl:value-of select="user"/></td> <td class='nf'><xsl:value-of select="process_cpu"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> </tr> </xsl:for-each> <tr> <td colspan='6'/> <td class='nf'><hr/><xsl:value-of select="format-number(sum(transaction/process_cpu), '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(sum(transaction/cpu), '0.0' )"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Inclusive Transactions Per Process']"> <xsl:variable name='indent'><xsl:value-of select="'&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;'"/></xsl:variable> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Inclusive Transactions Per Process<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th colspan='3'/> <th colspan='2'>Inclusive(ms)</th> </tr> <tr> <th class='sh'>Name</th> <th class='sh'>Process ID</th> <th class='nh'>Transactions</th> <th class='nh'>Kernel</th> <th class='nh'>User</th> </tr> <xsl:for-each select="process"> <tr> <td class='sh'><xsl:value-of select="@name"/></td> <td class='sh'><xsl:value-of select="pid"/></td> <td colspan='4'/> </tr> <xsl:for-each select=".//transaction"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf' colspan='2'><xsl:value-of select="'&#xA0;&#xA0;&#xA0;&#xA0;'"/><xsl:value-of select="substring($indent, string-length($indent) - (@level * 8) )"/><xsl:value-of select="@name"/></td> <td class='nf'><xsl:value-of select="count"/></td> <td class='nf'><xsl:value-of select="kernel"/></td> <td class='nf'><xsl:value-of select="user"/></td> </tr> </xsl:for-each> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Http Requests Response Time Statistics']"> <a name='http_response'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>HTTP Response Time Statistics<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Request Type</th> <th class='nh'>Requests/sec</th> <th class='nh'>Response Time(ms)</th> <th class='nh'>IIS%</th> <th class='nh'>Filter%</th> <th class='nh'>ISAPI%</th> <th class='nh'>ASP%</th> <th class='nh'>CGI%</th> </tr> <xsl:for-each select="requests"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td><xsl:value-of select="@type"/><xsl:if test="@cached='true'"> (cached)</xsl:if></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="format-number(response_time, '0.00')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='UL'] + component[@name='W3'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='W3Fltr'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='ISAPI'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='ASP'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='CGI'], '0.0')"/></td> </tr> </xsl:for-each> <tr> <td/> <td class='nf'><hr/><xsl:value-of select="summary[@type='totals']/rate"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/response_time, '0.00')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='UL'] + summary[@type='totals']/component[@name='W3'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='W3Fltr'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='ISAPI'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='ASP'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='CGI'], '0.0')"/></td> </tr> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Http Requests CPU Time Usage Statistics']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>HTTP Requests CPU Usage Statistics<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Request Type</th> <th class='nh'>Requests/sec</th> <th class='nh'>CPU%</th> <th class='nh'>IIS%</th> <th class='nh'>Filter%</th> <th class='nh'>ISAPI%</th> <th class='nh'>ASP%</th> <th class='nh'>CGI%</th> </tr> <xsl:for-each select="requests"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@type"/><xsl:if test="@cached='true'"> (cached)</xsl:if></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='UL'] + component[@name='W3'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='W3Fltr'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='ISAPI'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='ASP'], '0.0')"/></td> <td class='nf'><xsl:value-of select="format-number(component[@name='CGI'], '0.0')"/></td> </tr> </xsl:for-each> <tr> <td/> <td class='nf'><hr/><xsl:value-of select="summary[@type='totals']/rate"/></td> <td class='nf'><hr/><xsl:value-of select="summary[@type='totals']/cpu"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='UL'] + summary[@type='totals']/component[@name='W3'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='W3Fltr'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='ISAPI'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='ASP'], '0.0')"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(summary[@type='totals']/component[@name='CGI'], '0.0')"/></td> </tr> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Most Requested URLs']"> <a name='top_url'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Most Requested URLs<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>URL</th> <th class='sh'>Site</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> </tr> <xsl:for-each select="url"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="site_id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Most Requested Static URLs']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Most Requested Static URLs<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>URL</th> <th class='sh'>Site</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> </tr> <xsl:for-each select="url"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="site_id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Slowest URLs']"> <a name='slowest_url'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Slowest URLs<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>URL</th> <th class='sh'>Site</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> </tr> <xsl:for-each select="url"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="site_id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='URLs with the Most CPU Usage']"> <a name='cpu_url'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>URLs with the Most CPU Usage<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>URL</th> <th class='sh'>Site</th> <th class='nh'>Rate/sec</th> <th class='nh'>CPU%</th> </tr> <xsl:for-each select="url"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="site_id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cpu"/>%</td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='URLs with the Most Bytes Sent']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>URLs with the Most Bytes Sent<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>URL</th> <th class='sh'>Site</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Bytes Sent/sec</th> </tr> <xsl:for-each select="url"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="site_id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="bytes_sent_per_sec"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Clients with the Most Requests']"> <a name='top_client'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Clients with the Most Requests<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>IP Address</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> </tr> <xsl:for-each select="client"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@ip"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> </tr> </xsl:for-each> </table> </td></tr></table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Clients with the Slowest Responses']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Clients with the Slowest Responses<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>IP Address</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> </tr> <xsl:for-each select="client"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@ip"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hit"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Sites with the Most CPU Time Usage']"> <xsl:if test="count(site) > 1"> <a name='site'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Sites with the Most CPU Time Usage<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Site ID</th> <th class='nh'>Rate/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Response Time(ms)</th> <th class='nh'>CPU Time(ms)</th> <th class='nh'>CPU%</th> </tr> <xsl:for-each select="site"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="cache_hits"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> <td class='nf'><xsl:value-of select="cpu_time"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Sites with the Most Requests']"> <xsl:if test="count(site) > 1"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Sites with the Most Requests<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Site ID</th> <th class='nh'>Rate/sec</th> <th class='nh'>Response Time(ms)</th> <th class='nh'>Cached%</th> <th class='nh'>Static Files%</th> <th class='nh'>CGI%</th> <th class='nh'>ASP%</th> </tr> <xsl:for-each select="site"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> <td class='nf'><xsl:value-of select="cache_hits"/></td> <td class='nf'><xsl:value-of select="static"/></td> <td class='nf'><xsl:value-of select="cgi"/></td> <td class='nf'><xsl:value-of select="asp"/></td> </tr> </xsl:for-each> </table> </td></tr></table> <br/><br/> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Sites with the Slowest Responses']"> <xsl:if test="count(site) > 1"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Sites with the Slowest Responses<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Site ID</th> <th class='nh'>Rate/sec</th> <th class='nh'>Response Time(ms)</th> <th class='nh'>Cached%</th> <th class='nh'>Static Files%</th> <th class='nh'>CGI%</th> <th class='nh'>ASP%</th> </tr> <xsl:for-each select="site"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="response_time"/></td> <td class='nf'><xsl:value-of select="cache_hits"/></td> <td class='nf'><xsl:value-of select="static"/></td> <td class='nf'><xsl:value-of select="cgi"/></td> <td class='nf'><xsl:value-of select="asp"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Sites with the Most Bytes Sent']"> <xsl:if test="count(site) > 1"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Sites with the Most Bytes Sent<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Site ID</th> <th class='nh'>Rate/sec</th> <th class='nh'>Bytes Sent/sec</th> <th class='nh'>Cached%</th> <th class='nh'>Static Files%</th> <th class='nh'>CGI%</th> <th class='nh'>ASP%</th> </tr> <xsl:for-each select="site"> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@id"/></td> <td class='nf'><xsl:value-of select="rate"/></td> <td class='nf'><xsl:value-of select="bytes"/></td> <td class='nf'><xsl:value-of select="cache_hits"/></td> <td class='nf'><xsl:value-of select="static"/></td> <td class='nf'><xsl:value-of select="cgi"/></td> <td class='nf'><xsl:value-of select="asp"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:if> </xsl:for-each> <xsl:for-each select="report/table[@title='Image Statistics']"> <a name='image_stats'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Image Statistics<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th colspan='2'/> <th colspan='2'>Threads</th> <th colspan='2'>Process</th> <th colspan='2'>Transaction</th> <th></th> </tr> <tr> <th class='sh'>Image</th> <th class='sh'>Process ID</th> <th class='nh'>Launched</th> <th class='nh'>Used</th> <th class='nh'>Kernel Time(ms)</th> <th class='nh'>User Time(ms)</th> <th class='nh'>Kernel Time(ms)</th> <th class='nh'>User Time(ms)</th> <th class='nh'>CPU%</th> </tr> <xsl:for-each select="image"> <xsl:sort select="cpu" data-type="number" order="descending"/> <xsl:sort select="@name" data-type="number" order="ascending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="pid"/></td> <td class='nf'><xsl:value-of select="threads"/></td> <td class='nf'><xsl:value-of select="used_threads"/></td> <td class='nf'><xsl:value-of select="process_kernel"/></td> <td class='nf'><xsl:value-of select="process_user"/></td> <td class='nf'><xsl:value-of select="transaction_kernel"/></td> <td class='nf'><xsl:value-of select="transaction_user"/></td> <td class='nf'><xsl:value-of select="cpu"/></td> </tr> </xsl:for-each> <td colspan='2'/> <td class='nf'><hr/><xsl:value-of select="sum(image/threads)"/></td> <td class='nf'><hr/><xsl:value-of select="sum(image/used_threads)"/></td> <td class='nf'><hr/><xsl:value-of select="sum(image/process_kernel)"/></td> <td class='nf'><hr/><xsl:value-of select="sum(image/process_user)"/></td> <td class='nf'><hr/><xsl:value-of select="sum(image/transaction_kernel)"/></td> <td class='nf'><hr/><xsl:value-of select="sum(image/transaction_user)"/></td> <td class='nf'><hr/><xsl:value-of select="format-number(sum(image/cpu), '#.00')"/></td> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Disk Totals']"> <a name='disk'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Disk Totals<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Disk Name</th> <th class='nh'>Reads/sec</th> <th class='nh'>Kb/Read</th> <th class='nh'>Writes/sec</th> <th class='nh'>Kb/Write</th> </tr> <xsl:for-each select="disk"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@number"/></td> <td class='nf'><xsl:value-of select="read_rate"/></td> <td class='nf'><xsl:value-of select="read_size"/></td> <td class='nf'><xsl:value-of select="write_rate"/></td> <td class='nf'><xsl:value-of select="write_size"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Disk']"> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Disk <xsl:value-of select="@number"/><hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>Image Name</th> <th class='sh'>Process ID</th> <th class='sh'>Authority</th> <th class='nh'>Reads/sec</th> <th class='nh'>Kb/Read</th> <th class='nh'>Writes/sec</th> <th class='nh'>Kb/Write</th> </tr> <xsl:for-each select="image"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <tr> <xsl:if test="position() mod 2 = 1"> <xsl:attribute name="bgcolor">lightgrey</xsl:attribute> </xsl:if> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="pid"/></td> <td class='sf' width='230'><xsl:value-of select="authority"/></td> <td class='nf'><xsl:value-of select="read_rate"/></td> <td class='nf'><xsl:value-of select="read_size"/></td> <td class='nf'><xsl:value-of select="write_rate"/></td> <td class='nf'><xsl:value-of select="write_size"/></td> </tr> </xsl:for-each> </table> </td></tr> </table> <br/><br/> </xsl:for-each> <xsl:for-each select="report/table[@title='Files Causing Most Disk IOs']"> <a name='top_file'/> <table style="border:1px solid black" width='100%'> <tr><td class='sub_title'>Files Causing Most Disk IOs<hr/></td></tr> <tr><td valign='top'> <table width='100%' style="border:1px solid black"> <tr> <th class='sh'>File</th> <th colspan='2'/> <th class='sh'>Disk</th> <th class='nh'>Reads/sec</th> <th class='nh'>Read size(Kb)</th> <th class='nh'>Writes/sec</th> <th class='nh'>Write size(Kb)</th> </tr> <xsl:for-each select="file"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <tr> <xsl:variable name='bg'> <xsl:if test="position() mod 2 = 0">#F5F5F5</xsl:if> <xsl:if test="position() mod 2 = 1">lightgrey</xsl:if> </xsl:variable> <xsl:attribute name="bgcolor"><xsl:value-of select="$bg"/></xsl:attribute> <td class='sh' colspan='3'><xsl:value-of select="drive"/><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="disk"/></td> <td class='nf'><xsl:value-of select="read_rate"/></td> <td class='nf'><xsl:value-of select="read_size"/></td> <td class='nf'><xsl:value-of select="write_rate"/></td> <td class='nf'><xsl:value-of select="write_size"/></td> </tr> <xsl:for-each select="image"> <xsl:sort select="read_rate + write_rate" data-type="number" order="descending"/> <tr> <xsl:attribute name="bgcolor"><xsl:value-of select="$bg"/></xsl:attribute> <td/> <td class='sf'><xsl:value-of select="@name"/></td> <td class='sf'><xsl:value-of select="pid"/></td> <td/> <td class='nf'><xsl:value-of select="read_rate"/></td> <td class='nf'><xsl:value-of select="read_size"/></td> <td class='nf'><xsl:value-of select="write_rate"/></td> <td class='nf'><xsl:value-of select="write_size"/></td> </tr> </xsl:for-each> </xsl:for-each> </table> </td></tr> </table> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <xsl:output method="xml" omit-xml-declaration="no" indent="yes"/> <xsl:template match="/"> <DocLayout> <xsl:copy-of select="*"/> <include xmlns="http://www.w3.org/2001/XInclude" href="emuDQMBooking.xml"/> <include xmlns="http://www.w3.org/2001/XInclude" href="emuDQMBookingAdds.xml"/> </DocLayout> </xsl:template> </xsl:stylesheet>
<gh_stars>10-100 <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <!-- Root template selects all children of the CIM/DECLARATIONS tag --> <xsl:template match="/"> <SCRIPT> function ExecuteMethod(theMethodName) { alert("Do you want to Execute the method " + theMethodName + "() ?"); } </SCRIPT> <xsl:apply-templates select="CIM//CLASS"/> </xsl:template> <xsl:template match="CLASS"> <B>Methods for the class <xsl:value-of select="@NAME"/></B> <xsl:apply-templates/> </xsl:template> <!-- METHOD template formats a single CIM method --> <xsl:template match="METHOD"> <TABLE STYLE="border:1px solid black"> <xsl:element name="BUTTON"> <xsl:attribute name="id"><xsl:value-of select="@NAME"/></xsl:attribute> <xsl:attribute name="onClick">ExecuteMethod('Hello')</xsl:attribute> <xsl:value-of select="@NAME"/> </xsl:element> <TR STYLE="font-size:12pt; font-family:Verdana; font-weight:bold; text-decoration:underline"> <TD>Name</TD> <TD>Type</TD> </TR> <xsl:for-each select="METHODPARAMETER"> <TR STYLE="font-family:Verdana; font-size:12pt; padding:0px 6px"> <TD><xsl:value-of select="@NAME"/></TD> <xsl:for-each select="PARAMETER"> <TD><xsl:value-of select="@TYPE"/></TD> </xsl:for-each> </TR> </xsl:for-each> </TABLE> </xsl:template> </xsl:stylesheet>
<filename>documents/specification/images/removeWaterMark.xsl <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" encoding="utf-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'"/> <!--Identity transform copies all items by default --> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!--Match on element, wrap in a comment and construct text representing XML structure by applying templates in "comment" mode --> <xsl:template match="//*[contains(text(),'Visual Paradigm for UML Community Edition')]"> <xsl:comment> <xsl:apply-templates select="self::*" mode="comment" /> </xsl:comment> </xsl:template> <xsl:template match="*" mode="comment"> <xsl:value-of select="'&lt;'"/> <xsl:value-of select="name()"/> <xsl:value-of select="'&gt;'"/> <xsl:apply-templates select="@*|node()" mode="comment" /> <xsl:value-of select="'&lt;/'"/> <xsl:value-of select="name()"/> <xsl:value-of select="'&gt;'"/> </xsl:template> <xsl:template match="text()" mode="comment"> <xsl:value-of select="."/> </xsl:template> <xsl:template match="@*" mode="comment"> <xsl:value-of select="name()"/> <xsl:text>="</xsl:text> <xsl:value-of select="."/> <xsl:text>" </xsl:text> </xsl:template> </xsl:stylesheet>
<message>Goodbye, World!</message>
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <xsl:output method="text" omit-xml-declaration="yes" indent="no"/> <xsl:strip-space elements="*"/> <xsl:variable name="imgurl" select="'%ATTACHURL%/'"/> <xsl:template match="/"> <xsl:apply-templates select="/DocLayout/Canvases/Canvas[Prefix='TOP']"/> <xsl:apply-templates select="/DocLayout/Canvases/Canvas[Prefix='EMU']"/> </xsl:template> <xsl:template match="Canvas"> <xsl:text> ---+++++ </xsl:text><xsl:value-of select="Title"/> <xsl:text> </xsl:text> <xsl:value-of select="normalize-space(Descr)"/> <xsl:text> </xsl:text> <xsl:text>%TABLE{ sort="off" tableborder="0" cellborder="0" valign="top" tablewidth="100%" columnwidths="100%,0%" }% </xsl:text> <xsl:for-each select="./*[substring(name(),1,3) = 'Pad' and number(substring(name(),4))]"> <xsl:variable name="histo" select="."/> <xsl:apply-templates select="//Histogram[Name=$histo]"> <xsl:with-param name="position" select="position()"/> <xsl:with-param name="canvas_name" select="../Name"/> </xsl:apply-templates> </xsl:for-each> </xsl:template> <xsl:template match="Histogram"> <xsl:param name="position" value="2"/> <xsl:param name="canvas_name" value="canv"/> <xsl:text>| *</xsl:text> <xsl:text>&lt;a name="</xsl:text> <xsl:value-of select="$canvas_name"/> <xsl:text>_</xsl:text> <xsl:value-of select="Name"/> <xsl:text>"&gt;&lt;/a&gt;</xsl:text> <xsl:value-of select="Title"/> <xsl:choose> <xsl:when test="$position = 1"> <xsl:text>* | &lt;img src="</xsl:text> <xsl:value-of select="$imgurl"/> <xsl:value-of select="$canvas_name"/> <xsl:text>_ref.png" onclick="this.src='</xsl:text> <xsl:value-of select="$imgurl"/> <xsl:value-of select="$canvas_name"/> <xsl:text>.png'" ondblclick="this.src='</xsl:text> <xsl:value-of select="$imgurl"/> <xsl:value-of select="$canvas_name"/> <xsl:text>_ref.png'" /&gt;&lt;br/&gt;(click - enlarge; dblclick - back) | </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>* |^| </xsl:text> </xsl:otherwise> </xsl:choose> <xsl:text>| </xsl:text> <xsl:choose> <xsl:when test="string-length(normalize-space(Descr)) > 0"> <xsl:value-of select="normalize-space(Descr)"/> </xsl:when> <xsl:otherwise> <xsl:text>(No description)</xsl:text> </xsl:otherwise> </xsl:choose> <xsl:text> |^| </xsl:text> </xsl:template> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" encoding="UTF-8" omit-xml-declaration="yes" /> <xsl:template match="/*"> <t><xsl:copy-of select="for $l in max( for $s in s return string-length($s)) return s[string-length(.) eq $l]" /></t> </xsl:template> </xsl:stylesheet>
<filename>hdl/plat/target.xsl <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Stylesheet for SoC configuration filter (c) 2011-2015 <NAME> <<EMAIL>> This file is part of the MaSoCist opensource distribution. --> <xsl:stylesheet version="1.0" xmlns="http://www.section5.ch/dclib/schema/devdesc" xmlns:my="http://www.section5.ch/dclib/schema/devdesc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" /> <xsl:key name="configkey" match="my:config" use="@id"/> <xsl:template match="my:devdesc"> <xsl:apply-templates/> </xsl:template> <xsl:template match="my:config"> <xsl:text> </xsl:text> <xsl:value-of select="@id"/> = <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:template> <!-- Copy all with a config processing instruction equal 'y' or missing --> <xsl:template match="node()|@*"> <xsl:choose> <xsl:when test="./processing-instruction('config') and not(key('configkey',./processing-instruction('config'))='y')"> <xsl:comment>Not emitting '<xsl:value-of select="@name"/>' </xsl:comment> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="/"> <xsl:comment>This is a GENERATED file. Editing may be void.</xsl:comment> <xsl:comment> <xsl:text> Configuration: </xsl:text> <xsl:apply-templates select=".//my:config"/> <xsl:text> </xsl:text> </xsl:comment> <devdesc> <xsl:apply-templates select=".//my:devdesc"/> </devdesc> </xsl:template> </xsl:stylesheet>
<filename>Task/Variables/XSLT/variables.xslt <xsl:variable name="foo" select="XPath expression" /> <xsl:if test="$foo = 4">... </xsl:if> <!-- prepend '$' to reference a variable or parameter-->
<xsl:text>Hello world! </xsl:text>
<reponame>tomo3136a/hw_utils <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="common.xsl"/> <xsl:output method="text"/> <xsl:template match="/"> <xsl:text>library,cell,view,port,name,desinator</xsl:text> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="edif/library/cell/view/interface/port"/> </xsl:template> <xsl:template match="port"> <xsl:value-of select="ancestor::library/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::cell/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::view/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="@name"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="." mode="_name"/> <xsl:text>,</xsl:text> <xsl:value-of select="designator"/> <xsl:text>&#10;</xsl:text> </xsl:template> </xsl:stylesheet>
<reponame>Noxet/embedded_bruteforce <?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <!-- Generic colors, shared between modules like webpages diagrams and pdfs --> <xsl:variable name="COL_XLNX" select="'#AA0017'"/> <xsl:variable name="COL_BLACK" select="'#000000'"/> <xsl:variable name="COL_WHITE" select="'#FFFFFF'"/> <xsl:variable name="COL_GRAY" select="'#CECECE'"/> <xsl:variable name="COL_GRAY_LT" select="'#E1E1E1'"/> <xsl:variable name="COL_GRAY_DK" select="'#B1B1B1'"/> <xsl:variable name="COL_YELLOW" select="'#FFFFDD'"/> <xsl:variable name="COL_YELLOW_LT" select="'#FFFFEE'"/> <xsl:variable name="COL_RED" select="'#AA0000'"/> <xsl:variable name="COL_GREEN" select="'#33CC33'"/> <xsl:variable name="COL_BLUE_LT" select="'#AAAAFF'"/> <!-- Colors specific to the Diagrams --> <xsl:variable name="COL_BG" select="'#CCCCCC'"/> <xsl:variable name="COL_BG_LT" select="'#EEEEEE'"/> <xsl:variable name="COL_BG_UNK" select="'#DDDDDD'"/> <xsl:variable name="COL_PROC_BG" select="'#FFCCCC'"/> <xsl:variable name="COL_PROC_BG_MB" select="'#222222'"/> <xsl:variable name="COL_PROC_BG_PP" select="'#90001C'"/> <xsl:variable name="COL_PROC_BG_USR" select="'#666699'"/> <xsl:variable name="COL_MPMC_BG" select="'#8B0800'"/> <xsl:variable name="COL_MOD_BG" select="'#F0F0F0'"/> <xsl:variable name="COL_MOD_SPRT" select="'#888888'"/> <xsl:variable name="COL_MOD_MPRT" select="'#888888'"/> <xsl:variable name="COL_IORING" select="'#000088'"/> <xsl:variable name="COL_IORING_LT" select="'#CCCCFF'"/> <xsl:variable name="COL_SYSPRT" select="'#0000BB'"/> <xsl:variable name="COL_INTCS"> <INTCCOLOR INDEX="0" RGB="#FF9900"/> <INTCCOLOR INDEX="1" RGB="#00CCCC"/> <INTCCOLOR INDEX="2" RGB="#33FF33"/> <INTCCOLOR INDEX="3" RGB="#FF00CC"/> <INTCCOLOR INDEX="4" RGB="#99FF33"/> <INTCCOLOR INDEX="5" RGB="#0066CC"/> <INTCCOLOR INDEX="6" RGB="#9933FF"/> <INTCCOLOR INDEX="7" RGB="#3300FF"/> <INTCCOLOR INDEX="8" RGB="#00FF33"/> <INTCCOLOR INDEX="9" RGB="#FF3333"/> </xsl:variable> <xsl:variable name="COL_BUSSTDS"> <BUSCOLOR BUSSTD="AXI" RGB="#0084AB" RGB_LT="#D0E6EF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="XIL" RGB="#990066" RGB_LT="#CC3399" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="OCM" RGB="#0000DD" RGB_LT="#9999DD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="OPB" RGB="#339900" RGB_LT="#CCDDCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="LMB" RGB="#7777FF" RGB_LT="#DDDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="FSL" RGB="#CC00CC" RGB_LT="#FFBBFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="DCR" RGB="#6699FF" RGB_LT="#BBDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="FCB" RGB="#8C00FF" RGB_LT="#CCCCFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="PLB" RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="PLBV34" RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="PLBV46" RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="PLBV46_P2P" RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="USER" RGB="#009999" RGB_LT="#00CCCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="KEY" RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> <BUSCOLOR BUSSTD="GRAYSCALE" RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/> </xsl:variable> <xsl:variable name = "COL_BUSSTDS_NUMOF" select="count(exsl:node-set($COL_BUSSTDS)/BUSCOLOR)"/> <xsl:template name="F_BusStd2RGB"> <xsl:param name="iBusStd" select="'USER'"/> <xsl:choose> <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB"> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="F_BusStd2RGB_LT"> <xsl:param name="iBusStd" select="'USER'"/> <xsl:choose> <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT"> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_LT"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="F_BusStd2RGB_DK"> <xsl:param name="iBusStd" select="'USER'"/> <xsl:choose> <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK"> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_DK"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="F_BusStd2RGB_TXT"> <xsl:param name="iBusStd" select="'USER'"/> <xsl:choose> <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT"> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_TXT"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="F_IntcIdx2RGB"> <xsl:param name="iIntcIdx" select="'0'"/> <xsl:variable name="index_" select="$iIntcIdx mod 9"/> <xsl:choose> <xsl:when test="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB"> <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = '0')]/@RGB"/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <!DOCTYPE stylesheet [ <!ENTITY UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZ"> <!ENTITY LOWERCASE "abcdefghijklmnopqrstuvwxyz"> <!ENTITY UPPER2LOWER " '&UPPERCASE;' , '&LOWERCASE;' "> <!ENTITY LOWER2UPPER " '&LOWERCASE;' , '&UPPERCASE;' "> <!ENTITY ALPHALOWER "ABCDEFxX0123456789"> <!ENTITY HEXUPPER "ABCDEFxX0123456789"> <!ENTITY HEXLOWER "abcdefxX0123456789"> <!ENTITY HEXU2L " '&HEXLOWER;' , '&HEXUPPER;' "> <!ENTITY ALLMODS "MODULE[(@INSTANCE)]"> <!ENTITY BUSMODS "MODULE[(@MODCLASS ='BUS')]"> <!ENTITY CPUMODS "MODULE[(@MODCLASS ='PROCESSOR')]"> <!ENTITY MODPRMS "MODULE/PARAMETERS/PARAMETER"> <!ENTITY MODIOFS "MODULE/IOINTERFACES/IOINTERFACE"> <!ENTITY ALLIOFS "&MODIOFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <!ENTITY MODBIFS "MODULE/BUSINTERFACES/BUSINTERFACE"> <!ENTITY ALLBIFS "&MODBIFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <!ENTITY MSTBIFS "&MODBIFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (@TYPE = 'MASTER')]"> <!ENTITY SLVBIFS "&MODBIFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (@TYPE = 'SLAVE')]"> <!ENTITY MOSBIFS "&MODBIFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE')) and ((@TYPE = 'MASTER') or (@TYPE = 'SLAVE'))]"> <!ENTITY P2PBIFS "&MODBIFS;[(not(@IS_VALID) or (@IS_VALID = 'TRUE')) and ((@TYPE = 'TARGET') or (@TYPE = 'INITIATOR'))]"> <!ENTITY MODPORTS "MODULE/PORTS/PORT"> <!ENTITY ALLPORTS "&MODPORTS;[ (not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <!ENTITY NDFPORTS "&MODPORTS;[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (not(@BUS) and not(@IOS)))]"> <!ENTITY DEFPORTS "&MODPORTS;[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and ((@BUS) or (@IOS)))]"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> <xsl:variable name="G_ROOT" select="/"/> <xsl:variable name="G_EDKSYS" select="$G_ROOT/EDKSYSTEM"/> <xsl:variable name="G_MODULES" select="$G_EDKSYS/MODULES"/> <xsl:variable name="G_EDKVERSION"> <xsl:if test="$G_ROOT/EDKSYSTEM/@EDKVERSION"><xsl:value-of select="$G_ROOT/EDKSYSTEM/@EDKVERSION"/></xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/@EDKVERSION)">NA</xsl:if> </xsl:variable> <xsl:variable name="G_TIMESTAMP"> <xsl:if test="$G_ROOT/EDKSYSTEM/@TIMESTAMP"><xsl:value-of select="$G_ROOT/EDKSYSTEM/@TIMESTAMP"/></xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/@TIMESTAMP)">NA</xsl:if> </xsl:variable> <xsl:variable name="G_FAMILY"> <xsl:if test="$G_ROOT/EDKSYSTEM/SYSTEMINFO/@ARCH"><xsl:value-of select="$G_ROOT/EDKSYSTEM/SYSTEMINFO/@ARCH"/></xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/SYSTEMINFO/@ARCH)">NA</xsl:if> </xsl:variable> <xsl:variable name="G_DEVICE"> <xsl:if test="$G_ROOT/EDKSYSTEM/SYSTEMINFO/@PART"><xsl:value-of select="$G_ROOT/EDKSYSTEM/SYSTEMINFO/@PART"/></xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/SYSTEMINFO/@PART)">NA</xsl:if> </xsl:variable> <xsl:variable name="G_XPS_TITLE">XPS Project Report</xsl:variable> <xsl:variable name="G_TOC_WIDTH" select="200"/> <xsl:variable name="G_MAIN_WIDTH" select="850"/> <xsl:variable name="G_OVSPECFICS_WIDTH" select="300"/> <xsl:variable name="G_OVRESOURCES_WIDTH" select="550"/> <xsl:variable name="G_NUMOF_IPS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'IP')])"/> <xsl:variable name="G_NUMOF_BUSSES" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[((@MODCLASS = 'BUS') or (@MODCLASS = 'BUS_ARBITER'))])"/> <xsl:variable name="G_NUMOF_BRIDGES" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'BUS_BRIDGE')])"/> <xsl:variable name="G_NUMOF_MEMORYS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY')])"/> <xsl:variable name="G_NUMOF_DEBUGGERS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'DEBUG')])"/> <xsl:variable name="G_NUMOF_PROCESSORS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PROCESSOR')])"/> <xsl:variable name="G_NUMOF_PERIPHERALS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PERIPHERAL')])"/> <xsl:variable name="G_NUMOF_MEMORY_CNTLRS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY_CNTLR')])"/> <xsl:variable name="G_NUMOF_INTERRUPT_CNLTRS" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'INTERRUPT_CNTLR')])"/> <xsl:variable name="G_NUMOF_MODULES_W_TIMING" select="count($G_ROOT/EDKSYSTEM/MODULES/MODULE/TIMING)"/> <!-- INDEX KEYS FOR FAST ACCESS --> <xsl:key name="G_MAP_MODULES" match="&ALLMODS;" use="@INSTANCE"/> <xsl:key name="G_MAP_MODULES" match="&ALLMODS;" use="@MODCLASS"/> <xsl:key name="G_MAP_MODULES" match="&ALLMODS;" use="@MODTYPE"/> <xsl:key name="G_MAP_PROCESSORS" match="&CPUMODS;" use="@INSTANCE"/> <xsl:key name="G_MAP_BUSSES" match="&BUSMODS;" use="@INSTANCE"/> <xsl:key name="G_MAP_BUSSES" match="&BUSMODS;" use="@BUSSTD"/> <xsl:key name="G_MAP_BUSSES" match="&BUSMODS;" use="@BUSSTD_PSF"/> <xsl:key name="G_MAP_PARAMETERS" match="&MODPRMS;" use="../../@INSTANCE"/> <xsl:key name="G_MAP_ALL_IOFS" match="&ALLIOFS;" use="../../@INSTANCE"/> <xsl:key name="G_MAP_ALL_BIFS" match="&ALLBIFS;" use="../../@INSTANCE"/> <xsl:key name="G_MAP_ALL_BIFS_BY_BUS" match="&ALLBIFS;" use="@BUSNAME"/> <xsl:key name="G_MAP_MST_BIFS" match="&MSTBIFS;" use="@BUSNAME"/> <xsl:key name="G_MAP_SLV_BIFS" match="&SLVBIFS;" use="@BUSNAME"/> <xsl:key name="G_MAP_MOS_BIFS" match="&MOSBIFS;" use="@BUSNAME"/> <xsl:key name="G_MAP_P2P_BIFS" match="&P2PBIFS;" use="@BUSNAME"/> <xsl:key name="G_MAP_P2P_BIFS" match="&P2PBIFS;" use="@BUSSTD"/> <xsl:key name="G_MAP_P2P_BIFS" match="&P2PBIFS;" use="@BUSSTD_PSF"/> <xsl:key name="G_MAP_ALL_PORTS" match="&ALLPORTS;" use="../../@INSTANCE"/> <xsl:key name="G_MAP_DEF_PORTS" match="&DEFPORTS;" use="../../@INSTANCE"/> <!-- Default ports --> <xsl:key name="G_MAP_NDF_PORTS" match="&NDFPORTS;" use="../../@INSTANCE"/> <!-- Non Default ports --> <xsl:variable name="G_BIFTYPES"> <BIFTYPE TYPE="SLAVE"/> <BIFTYPE TYPE="MASTER"/> <BIFTYPE TYPE="MASTER_SLAVE"/> <BIFTYPE TYPE="TARGET"/> <BIFTYPE TYPE="INITIATOR"/> <BIFTYPE TYPE="MONITOR"/> <BIFTYPE TYPE="USER"/> <BIFTYPE TYPE="TRANSPARENT"/> </xsl:variable> <xsl:variable name="G_BUSSTDS"> <BUSSTD NAME="AXI"/> <BUSSTD NAME="AXIS"/> <BUSSTD NAME="XIL"/> <BUSSTD NAME="OCM"/> <BUSSTD NAME="OPB"/> <BUSSTD NAME="LMB"/> <BUSSTD NAME="FSL"/> <BUSSTD NAME="DCR"/> <BUSSTD NAME="FCB"/> <BUSSTD NAME="PLB"/> <BUSSTD NAME="PLB_P2P"/> <BUSSTD NAME="PLBV34"/> <BUSSTD NAME="PLBV34_P2P"/> <BUSSTD NAME="PLBV46"/> <BUSSTD NAME="PLBV46_P2P"/> <BUSSTD NAME="USER"/> <BUSSTD NAME="TRS"/> <BUSSTD NAME="TRANS"/> <BUSSTD NAME="TRANSPARENT"/> </xsl:variable> </xsl:stylesheet>
<gh_stars>1-10 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet href="../../../../../docbook/docbook-xsl-1.69.1/html/docbook.xsl" type="text/xsl"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> <!ENTITY copy "&#169;"> <!ENTITY reg "&#174;"> <!ENTITY trade "&#8482;"> <!ENTITY mdash "&#8212;"> <!ENTITY ldquo "&#8220;"> <!ENTITY rdquo "&#8221;"> <!ENTITY pound "&#163;"> <!ENTITY yen "&#165;"> <!ENTITY euro "&#8364;"> ]> <article> <articleinfo> <!-- Use "HOWTO", "mini HOWTO", "FAQ" in title, if appropriate --> <title> RTeasy Hilfe </title> <author> <firstname> Torben </firstname> <surname> Schneider </surname> <affiliation> <!-- Valid email...spamblock/scramble if so desired --> <address> <email> <EMAIL> </email> </address> </affiliation> </author> <!-- All dates specified in ISO "YYYY-MM-DD" format --> <pubdate> 2005-11-09 </pubdate> <!-- Most recent revision goes at the top; list in descending order --> <revhistory> <revision> <revnumber> 0.1 </revnumber> <date> 2005-11-09 </date> <authorinitials> TS </authorinitials> <revremark> Docbook-Version der RTeasy Hilfe </revremark> </revision> </revhistory> <!-- Provide a good abstract; a couple of sentences is sufficient --> <abstract> <para> Dieses Dokument soll die Funktionen von RTeasy und ihre Bedienung erl &auml; utern. </para> </abstract> </articleinfo> <!-- Content follows...include introduction, license information, feedback --> <sect1 id="intro"> <title> Einf &uuml; hrung </title> <para> RTeasy ist eine Entwicklungsumgebung f &uuml; r die Registertransfersprache. Mit RTeasy ist es m &ouml; glich Registertransferprogramme zu entwerfen und zu simulieren. Au &szlig; erdem kann RTeasy RT-Programme in VHDL &uuml; bersetzen. </para> <!-- Give credit where credit is due...very important --> <sect2 id="credits"> <title> Credits / Contributors </title> <para> In this document, I have the pleasure of acknowledging: </para> <!-- Please scramble addresses; help prevent spam/email harvesting --> <itemizedlist> <listitem> <para> Individual 1 <email> someone1 (at) somewhere.org </email> </para> </listitem> <listitem> <para> Individual 2 <email> someone2 (at) somewhere.org </email> </para> </listitem> </itemizedlist> </sect2> </sect1> <!-- The rest of the document follows. This is where your subject-specific content goes. A logical reading progression should be present - installation, setup, configuration, using, advanced topics, etc. --> <!-- Other Sections of Interest... --> <sect1 id="rteasy_start"> <title> RTeasy starten </title> <para> Um RTeasy benutzen zu k &ouml; nnen ben &ouml; tigen sie eine Java Virtual Machine(JVM). Bei Problemen &uuml; berpr &uuml; fen Sie bitte die Systemvoraussetzungen auf <ulink url="http://www.iti.uni-luebeck.de/~albrecht/rteasy/"> http://www.iti.uni-luebeck.de/~albrecht/rteasy/ </ulink> . Sie starten RTeasy &uuml; ber die Shell mit dem Befehl <command> java -jar rteasy_version.jar </command> </para> <para> Es &ouml; ffnet sich das Hauptfenster ( <xref linkend="mainwindow"/> ) . Sie k &ouml; nnen nun RTeasy die Einstellungen von RTeasy anpassen ( <xref linkend="settings"/> ), ein neues Programm erstellen oder ein vorhandenes Programm &ouml; ffnen ( <xref linkend="filemenu"/> ) </para> </sect1> <sect1 id="mainwindow"> <title> Hauptfenster </title> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/hauptfenster.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> <para> Das Hauptfenster ist der &quot; Desktop &quot; f &uuml; r die anderen RTeasyfenster. Alle Fenster k &ouml; nnen innerhalb dieser Arbeitsfl &auml; che beliebig platziert werden. In der Men &uuml; leiste befinden sich die Men &uuml; punkte <simplelist type="horiz" columns="1"> <member> <guimenu> Datei </guimenu> ( <xref linkend="filemenu"/> ) </member> <member> <guimenu> Bearbeiten </guimenu> ( <xref linkend="editmenu"/> ) </member> <member> <guimenu> Simulator </guimenu> ( <xref linkend="simmenu"/> ) </member> <member> <guimenu> Entwurf </guimenu> ( <xref linkend="designmenu"/> ) </member> <member> <guimenu> Hilfe </guimenu> ( <xref linkend="helpmenu"/> ) </member> </simplelist> Je nachdem ob sie sich im Editier- ( <xref linkend="editmode"/> ) oder Simulationsmodus( <xref linkend="simmode"/> ) befinden, sind unterschiedliche Punkte in den Men &uuml; s aktiv. </para> <para> Darunter befindet sich die Leiste f &uuml; r die Simulationskontrolle ( <xref linkend="simcontrol"/> ). Im Editiermodus sind alle Schaltfl &auml; chen inaktiv bis auf die Schaltfl &auml; che <guibutton> Simulieren </guibutton> . </para> <sect2 id="modi"> <title> Editor-/Simulatormodus </title> <para> RTeasy kann sich in zwei unterschiedlichen Zust &auml; nden befinden. Im <emphasis> Editiermodus </emphasis> ( <xref linkend="editmode"/> ) k &ouml; nnen Sie ein RTeasy-Programm bearbeiten und ver &auml; ndern. Ausserdem k &ouml; nnen Sie sich in diesem Modus die &Uuml; bersetzung in VHDL anzeigen lassen. Im <emphasis> Simulationsmodus </emphasis> ( <xref linkend="simmode"/> ) k &ouml; nnen Sie das Programm ausf &uuml; hren und sich die Register-, Bus- und Speicherinhalte anzeigen lassen. In diesem Modus k &ouml; nnen sie das Programm nicht ver &auml; ndern. </para> <sect3 id="editmode"> <title> Editiermodus </title> <para> Sie befinden sich standardm &auml; ssig in diesem Modus, wenn eine Datei geladen wird oder ein neues Programm erzeugt wird. Befindet sich RTeasy im Simultationsmodus, k &ouml; nnen Sie die Schaltfl &auml; che <guibutton> Bearbeiten </guibutton> benutzen, um in den Editiermodus zu gelangen. </para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/BearbeitenBtn.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> <sect4 id="filemenu"> <title> Dateimen &uuml; </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/dateimenue.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> </para> <para> <note> <para> Diese Men &uuml; punkte beenden den Simulationsmodus und wechseln in den Editiermodus. </para> </note> </para> <formalpara> <title> <guimenuitem> Neu </guimenuitem> </title> <para> Schliesst das aktuelle RTeasy-Programm und &ouml; ffnet ein neues, leeres RT-Programm im Editorfenster ( <xref linkend="editor"/> ). </para> </formalpara> <formalpara> <title> <guimenuitem> &Ouml; ffnen <accel> (F3) </accel> </guimenuitem> </title> <para> L &auml; d ein Rteasy-Programm aus einer Datei in den Editor ( <xref linkend="editor"/> ). </para> </formalpara> <formalpara> <title> <guimenuitem> Speichern <accel> (F2) </accel> </guimenuitem> </title> <para> Speichert das Programm an den Ort, der in der Kopfzeile des Editorfensters angezeigt wird. Sollte die Datei noch nie abbespeichert worden sein, &ouml; ffnet sich ein Dialog, in dem Sie ausw &auml; hlen k &ouml; nnen an welchen Ort die Datei gespeichert werden soll. </para> </formalpara> <formalpara> <title> <guimenuitem> Speichern als <accel> (STRG+F2) </accel> </guimenuitem> </title> <para> Speichert das Programm an den im Dialog ausgew &auml; hlten Ort. </para> </formalpara> <formalpara> <title> <guimenuitem> Beenden </guimenuitem> </title> <para> Beendet RTeasy. </para> </formalpara> </sect4> <sect4 id="editmenu"> <title> Bearbeiten-Men &uuml; </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/BearbeitenMenu.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> <note> <para> Diese Men &uuml; punkte sind nur im Editiermodus aktiv. </para> </note> </para> <formalpara> <title> <guimenuitem> Zur &uuml; ck <accel> (STRG+Z) </accel> </guimenuitem> </title> <para> Macht die letzte(n) &Auml; nderung(en) im Editor r &uuml; ckg &auml; ngig sofern dies m &ouml; glich ist. </para> </formalpara> <formalpara> <title> <guimenuitem> Wiederholen <accel> (STRG+Y) </accel> </guimenuitem> </title> <para> Wiederholt die letzte(n) zur &uuml; ckgenommene(n) &Auml; nderung(en) im Editor. </para> </formalpara> <formalpara> <title> <guimenuitem> Kopieren <accel> (STRG+C) </accel> </guimenuitem> </title> <para> Kopiert den im Editor markierten Text in die Zwischenablage. </para> </formalpara> <formalpara> <title> <guimenuitem> Ausschneiden <accel> (STRG+X) </accel> </guimenuitem> </title> <para> Entfernt den im Editor markierten Text und kopiert ihn in die Zwischenablage. </para> </formalpara> <formalpara> <title> <guimenuitem> Einf &uuml; gen <accel> (STRG+V) </accel> </guimenuitem> </title> <para> F &uuml; gt den Inhalt der Zwischenablage an die aktuelle Cursorposition im Editorfenster ein. </para> </formalpara> <formalpara> <title> <guimenuitem> Pretty Print </guimenuitem> </title> <para> Dieser Men &uuml; punkt versucht das Programm zu kompilieren. Ist dies erfolgreich, dann wird das Programm in eine einheitliche und &uuml; bersichliche Struktur gebracht. Warnungen werden soweit wie m &ouml; glich behoben. Die auftretenden Fehler und Warnungen erscheinen im Logfenster ( <xref linkend="logwindow"/> ). </para> </formalpara> <formalpara id="settings"> <title> <guimenuitem> Einstellungen </guimenuitem> </title> <para> Hier k &ouml; nnen sie das Verhalten und Aussehen von RTeasy anpassen. <simplelist columns="1"> <member> <guilabel> Language / Sprache: </guilabel> - Hier k &ouml; nnen Sie die Sprache f &uuml; r Schaltfl &auml; chenbeschriftungen, Fehlermeldungen usw. festlegen </member> <member> <guilabel> Plug &amp; Feel </guilabel> - Legt das Aussehen der RTeasyfenster fest. </member> <member> <guilabel> Ausf &uuml; hrliche Warnungen </guilabel> </member> </simplelist> <note> <para> Dieser Men &uuml; punkt ist immer aktiv. </para> </note> </para> </formalpara> </sect4> </sect3> <sect3 id="simmode"> <title> Simulationsmodus </title> <para> Wenn sie sich im Simulationsmodus befinden, dann k &ouml; nnen sie das eingegebene RT-Programm ausf &uuml; hren und Informationen wie Inhalte von Registern und Bussen etc. anzeigen und bearbeiten. Wenn sie sich im Editiermodus befinden, dann k &ouml; nnen sie mittels <guibutton> Simulieren </guibutton> in den Simulationsmodus wechseln. ( <xref linkend="modi"/> ) </para> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/SimulierenBtn.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> </para> <sect4 id="simcontrol"> <title> Simulatorsteuerung </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/simkontrolle.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> </para> <note> <para> Nur im Simulationsmodus sind die Schaltfl &auml; chen f &uuml; r die Simulationssteuerung aktiv. </para> </note> <formalpara> <title> <guibutton> Bearbeiten </guibutton> </title> <para> wechselt in den Editiermodus ( <xref linkend="editmode"/> ) </para> </formalpara> <formalpara> <title> <guibutton> Reset </guibutton> </title> <para> setzt Programmz &auml; hler und Inhalte von Registern und Bussen wieder auf die Initialwerte </para> </formalpara> <formalpara> <title> <guibutton> Step </guibutton> </title> <para> f &uuml; hrt den n &auml; chsten parallel Anweisungsblock aus </para> </formalpara> <formalpara> <title> <guibutton> MicroStep </guibutton> </title> <para> f &uuml; hrt die n &auml; chste Anweisung aus </para> </formalpara> <formalpara> <title> <guibutton> Run </guibutton> </title> <para> f &uuml; hrt das Programm aus bis es terminiert oder unterbrochen wird </para> </formalpara> <formalpara> <title> <guibutton> Breakpoints </guibutton> </title> <para> &ouml; ffnet das Breakpoint-Fenster <xref linkend="breakpointwindow"/> in dem Haltepunkte hinzugef &uuml; gt oder gel &ouml; scht werden k &ouml; nnen </para> </formalpara> </sect4> <sect4 id="simmenu"> <title> Simulator-Men &uuml; </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/SimulatorMenu.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> </para> <formalpara> <title> <guimenuitem> Reset <accel> (STRG+R) </accel> </guimenuitem> </title> <para> setzt Programmz &auml; hler und Inhalte von Registern und Bussen wieder auf die Initialwerte </para> </formalpara> <formalpara> <title> <guimenuitem> Step <accel> (STRG+S) </accel> </guimenuitem> </title> <para> f &uuml; hrt den n &auml; chsten parallel Anweisungsblock aus </para> </formalpara> <formalpara> <title> <guimenuitem> MicroStep <accel> (STRG+M) </accel> </guimenuitem> </title> <para> f &uuml; hrt die n &auml; chste Anweisung aus </para> </formalpara> <formalpara> <title> <guimenuitem> Run </guimenuitem> </title> <para> f &uuml; hrt das Programm aus bis es terminiert oder unterbrochen wird </para> </formalpara> <formalpara> <title> <guimenuitem> Breakpoints </guimenuitem> </title> <para> &ouml; ffnet das Breakpoint-Fenster <xref linkend="breakpointwindow"/> in dem Haltepunkte hinzugef &uuml; gt oder gel &ouml; scht werden k &ouml; nnen </para> </formalpara> <formalpara> <title> <guimenuitem> Alle Speicher r &uuml; cksetzen </guimenuitem> </title> <para> L &ouml; scht den Inhalt aller deklarierten Speicher. </para> </formalpara> <formalpara> <title> <guimenuitem> Log l &ouml; schen </guimenuitem> </title> <para> L &ouml; scht den Inhalt des Logfensters. ( <xref linkend="logwindow"/> ) </para> </formalpara> </sect4> </sect3> <sect3 id="designmenu"> <title> Entwurf </title> <para> Noch nicht implementiert </para> </sect3> <sect3 id="helpmenu"> <title> Hilfe-Men &uuml; </title> <formalpara> <title> <guimenuitem> Hilfe </guimenuitem> </title> <para> Zeigt die Hilfeseiten von RTeasy an. </para> </formalpara> <formalpara> <title> <guimenuitem> &Uuml; ber </guimenuitem> </title> <para> Zeigt Informationen &uuml; ber das Programm. </para> </formalpara> </sect3> </sect2> </sect1> <sect1 id="editor"> <title> Editorfenster </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata fileref="pics/editor.jpg" format="JPG"/> </imageobject> </mediaobject> </screenshot> </para> <para> Das Editorfenster zeigt den aktuellen Quelltext des RT-Programms an. Im Editiermodus ( <xref linkend="editmode"/> ) kann man den Quelltext ver &auml; ndern. Im Simulationsmodus ( <xref linkend="simmode"/> ) zeigt das Fenster die zuletzt ausgef &uuml; hrte Anweisung an. Im kann der Quelltext nicht ver &auml; ndert werden. </para> <sect2> <title> Im Editiermodus </title> <para> Der Editor funktioniert wie jeder beliebige Texteditor unter Windows. </para> <formalpara> Bedeutung <title> Markieren, Cut, Copy und Paste </title> <para> Speicher &uuml; &auml; &uuml; Dieses Fenster zeigt den Inhalt eines deklarierten Speichers an. Mittels Mausklick auf das Feld Inhalt an der entsprechenden Adressposition kann man den Wert an dieser Adresse ver &auml; ndern. Die Eingabewerte f &uuml; r die entsprechende Basis entspechen denen des Simulationsfensters. &uuml; Basis &uuml; Hier kann man die f &uuml; r Ein- und Ausgabe des Inhalts angeben. Die Adresswerte sind immer hexadezimal. ( ) &gt; Go to &uuml; Springt zu der eingebenen Adresse (hexadezimal). &uuml; Reset &gt; Setzt alle Werte dieses Speichers zur &uuml; ck auf die Initialwerte. &auml; &auml; Laden &uuml; &auml; L &auml; d den Speicherinhalt aus einer Datei. &uuml; Speichern Speichert den Speicherinhalt in eine Datei. F &auml; &uuml; r den korrekten Aufbau eines solchen Speicherabbilds schauen sie sich bitte die Grammatik in der Dokumentation an. &ouml; Breakpoint-Fenster &uuml; &ouml; Das Breakpointfenster zeigt die Haltepunkte, an denen die Ausf &uuml; hrung des RT-Programms gestoppt wird. &uuml; Hinzuf &uuml; gen F &uuml; &auml; gt einen Breakpoint hinzu. Dazu klicken Sie auf Hinzuf &uuml; gen und dann auf den Anweisungsblock im Editor, an dem Sie den Haltepunkt setzen wollen. Die Zustandsnummer wird im Breakpoint-Fenster hinzugef &uuml; gt und der Zustand wird farblich markiert. ( ) &auml; L &uuml; &ouml; schen &uuml; L &ouml; scht den im Breakpoint-Fenster markierten Haltepunkt. &lt; Markierung setzen Ein Mausklick auf den Haltepunkt markiert den Anweisungsblock im Editor. &uuml; Markierung aufheben &uuml; Diese Schaltfl &uuml; &auml; che l &ouml; scht die farbliche Kennzeichnung im Editorfenster. &ouml; Das Logfenster &auml; In diesem Fenster erscheinen alle Fehler und Warnungen die w &auml; hrend des Kompilierens und Ausf &uuml; hrens auftreten. Die Schaltfl &auml; che L &ouml; schen l &ouml; scht alle bisherigen Ausgaben. &ouml; Hexadezimaldarstellung mit Vorzeichen &ouml; Eingaben, die die Bitbreite des Busses/Registers &uuml; bersteigen werden von links abgeschnitten. &uuml; Speicher &uuml; &auml; Zu jedem deklarierten Speicher wird eine Schaltfl &auml; che angezeigt, mit der man das Fenster f &uuml; r den jeweiligen Speicher anzeigen lassen kann. ( ) &auml; </para> </formalpara> <table> <title> Tastenbelegung </title> <tgroup> <thead> </thead> <row> <entry> Taste(n) </entry> <entry> Bedeutung </entry> </row> <tr> <td></thead></td></tr> <tbody> </tbody> <row> <entry> Pfeiltasten </entry> <entry> Im Text in die gew &uuml; nschte Richtung bewegen </entry> </row> <row> <entry> Strg+Pfeiltasten </entry> <entry> w &ouml; rterweise in gew &uuml; nschte Richtung bewegen </entry> </row> <row> <entry> &lt; -- Backspace </entry> <entry> Zeichen vor Cursor l &ouml; schen </entry> </row> <row> <entry> Entf </entry> <entry> Zeichen hinter Cursor l &ouml; schen </entry> </row> <row> <entry> Pos 1 </entry> <entry> an Zeilenanfang springen </entry> </row> <row> <entry> Ende </entry> <entry> an Zeilenende springen </entry> </row> <row> <entry> Strg+Pos 1 </entry> <entry> an Programmanfang springen </entry> </row> <row> <entry> Strg+Ende </entry> <entry> an Programmende springen </entry> </row> <row> <entry> Bild hoch/Bild runter </entry> <entry> Seitenweise durch Programmtext scrollen </entry> </row> <row> <entry> Tabulator </entry> <entry> Spezialzeichen, bewirkt Einr &uuml; ckung um 8 Zeichen, z &auml; hlt aber nur als eines </entry> </row> <row> <entry> Shift gedr &uuml; ckt halten und Richtungstasten </entry> <entry> Markier-Modus </entry> </row> <row> <entry> Strg+A </entry> <entry> Alles markieren. </entry> </row> <row> <entry> Strg+C </entry> <entry> Markierten Text kopieren </entry> </row> <row> <entry> Strg+X </entry> <entry> Markierten Text ausschneiden </entry> </row> <row> <entry> Strg+V </entry> <entry> aus Zwischenablage einf &uuml; gen </entry> </row> <tr> <td></tbody></td></tr> </tgroup> </table> <para> Der Editor wurde mit der Java-Klasse JTextArea implementiert, weitere Tastenbelegungen finden sich <ulink> hier </ulink> . </para> </sect2> <sect2> <title> Im Simulationsmodus </title> <para> Wird ein RT-Programm simuliert werden die zuletzt ausgef &uuml; hrten Anweisungen farblich markiert: </para> <table> <title> Farbmarkierungen </title> <tgroup> <thead> </thead> <row> <entry> Farbe </entry> <entry> Beschreibung </entry> </row> <tr> <td></thead></td></tr> <tbody> </tbody> <row> <entry> <emphasis> Block </emphasis> </entry> <entry> Zuletzt ausgef &uuml; hrter Anweisungsblock (Step) </entry> </row> <row> <entry> <emphasis> Anweisung </emphasis> </entry> <entry> Zuletzt ausgef &uuml; hrte Anweisung (MicroStep) </entry> </row> <row> <entry> <emphasis> Block </emphasis> </entry> <entry> Anweisungsblock, bei dem die Ausf &uuml; hrung abgebrochen wurde (Run) </entry> </row> <row> <entry> <emphasis> Block </emphasis> </entry> <entry> Derzeit ausgew &auml; hlter Breakpoint </entry> </row> <tr> <td></tbody></td></tr> </tgroup> </table> </sect2> </sect1> <sect1> <title> Simulationsstatus-Fenster </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> </para> <para> Das Simulationsstatus-Fenster wird nur w &auml; hrend der Simulation ( <xref> ) angezeigt. In diesem Fenster befinden sich alle Informationen zu Registern, Bussen, Speichern und dem Zustands- und Programmz &auml; hler. </para> <formalpara> <title> Zustand- und Programmz &auml; hler </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> Hier werden der zuletzt ausgef &uuml; hrte Zustand sowie die Anzahl der vergangenen Takte angezeigt. </para> </formalpara> <formalpara> <title> Register und Busse </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> Hier werden die Inhalte von Registern und Bussen angezeigt. <emphasis> Diese Farbe </emphasis> signalisiert dass der Wert eines Registers bzw. eines Busses im letzten Schritt ver &auml; ndert wurde. Mit einem Mausklick auf den Wert des Registers kann man diesen ver &auml; ndern. Der Wert wird erst &uuml; bernommen, wenn der der Wert mit der ENTER-Taste oder mit einem Klick ausserhalb des Feldes best &auml; tigt wird. Mit ESC wird der eingegebene Wert verworfen Die dritte Spalte zeigt an, mit welcher Basis die Werte angezeigt und gesetzt werden. </para> </formalpara> <table> <title> Basisdarstellung </title> <tgroup> <thead> </thead> <row> <entry> Wert </entry> <entry> Basis </entry> <entry> Eingabe Zeichen </entry> <entry> Bedeutung </entry> </row> <tr> <td></thead></td></tr> <tbody> </tbody> <row> <entry> BIN </entry> <entry> 2 </entry> <entry> 0, 1 </entry> <entry> Bin &auml; rdarstellung </entry> </row> <row> <entry> DEC </entry> <entry> 10 </entry> <entry> 0,...,9 </entry> <entry> Dezimaldarstellung ohne Vorzeichen </entry> </row> <row> <entry> HEX </entry> <entry> 16 </entry> <entry> 0,..,9,A,...,F </entry> <entry> Hexadezimaldarstellung ohne Vorzeichen </entry> </row> <row> <entry> DEC2 </entry> <entry> 10 </entry> <entry> 0,..,9 </entry> <entry> Dezimaldarstellung mit Vorzeichen </entry> </row> <row> <entry> HEX2 </entry> <entry> 16 </entry> <entry> 0,...,9,A,...,F </entry> <entry> Hexadezimaldarstellung mit Vorzeichen </entry> </row> <tr> <td></tbody></td></tr> </tgroup> </table> <note> <para> Eingaben, die die Bitbreite des Busses/Registers &uuml; bersteigen werden von links abgeschnitten. </para> </note> <formalpara> <title> Speicher </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> Zu jedem deklarierten Speicher wird eine Schaltfl &auml; che angezeigt, mit der man das Fenster f &uuml; r den jeweiligen Speicher anzeigen lassen kann. ( <xref> ) </para> </formalpara> </sect1> <sect1> <title> Speicher </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> </para> <para> Dieses Fenster zeigt den Inhalt eines deklarierten Speichers an. Mittels Mausklick auf das Feld Inhalt an der entsprechenden Adressposition kann man den Wert an dieser Adresse ver &auml; ndern. Die Eingabewerte f &uuml; r die entsprechende Basis entspechen denen des Simulationsfensters. </para> <formalpara> <title> <guibutton> Basis </guibutton> </title> <para> Hier kann man die f &uuml; r Ein- und Ausgabe des Inhalts angeben. Die Adresswerte sind immer hexadezimal. ( <xref> ) </para> </formalpara> <formalpara> <title> <guibutton> Go to </guibutton> </title> <para> Springt zu der eingebenen Adresse (hexadezimal). </para> </formalpara> <formalpara> <title> <guibutton> Reset </guibutton> </title> <para> Setzt alle Werte dieses Speichers zur &uuml; ck auf die Initialwerte. </para> </formalpara> <formalpara> <title> <guibutton> Laden </guibutton> </title> <para> L &auml; d den Speicherinhalt aus einer Datei. </para> </formalpara> <formalpara> <title> <guibutton> Speichern </guibutton> </title> <para> Speichert den Speicherinhalt in eine Datei. <note> <para> F &uuml; r den korrekten Aufbau eines solchen Speicherabbilds schauen sie sich bitte die Grammatik in der Dokumentation an. </para> </note> </para> </formalpara> </sect1> <sect1> <title> Breakpoint-Fenster </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> Das Breakpointfenster zeigt die Haltepunkte, an denen die Ausf &uuml; hrung des RT-Programms gestoppt wird. </para> <formalpara> <title> <guibutton> Hinzuf &uuml; gen </guibutton> </title> <para> F &uuml; gt einen Breakpoint hinzu. Dazu klicken Sie auf <guibutton> Hinzuf &uuml; gen </guibutton> und dann auf den Anweisungsblock im Editor, an dem Sie den Haltepunkt setzen wollen. Die Zustandsnummer wird im Breakpoint-Fenster hinzugef &uuml; gt und der Zustand wird farblich markiert. ( <xref> ) </para> </formalpara> <formalpara> <title> <guibutton> L &ouml; schen </guibutton> </title> <para> L &ouml; scht den im Breakpoint-Fenster markierten Haltepunkt. </para> </formalpara> <formalpara> <title> <guibutton> Markierung setzen </guibutton> </title> <para> Ein Mausklick auf den Haltepunkt markiert den Anweisungsblock im Editor. </para> </formalpara> <formalpara> <title> <guibutton> Markierung aufheben </guibutton> </title> <para> Diese Schaltfl &auml; che l &ouml; scht die farbliche Kennzeichnung im Editorfenster. </para> </formalpara> </sect1> <sect1> <title> Das Logfenster </title> <para> <screenshot> <mediaobject> <imageobject> <imagedata> </imageobject> </mediaobject> </screenshot> In diesem Fenster erscheinen alle Fehler und Warnungen die w &auml; hrend des Kompilierens und Ausf &uuml; hrens auftreten. Die Schaltfl &auml; che <guibutton> L &ouml; schen </guibutton> l &ouml; scht alle bisherigen Ausgaben. </para> </sect1> </article> </xsl:template> </xsl:stylesheet>
<reponame>orangesocks/XSharpPublic<filename>Tools/SHFB/XSharpVs/VS2013XSharp/Transforms/codeTemplates.xsl <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" > <!-- ======================================================================================== --> <xsl:import href="globalTemplates.xsl"/> <!-- ============================================================================================ Code languages ============================================================================================= --> <!-- This gets the language ID for syntax section and code example titles --> <xsl:template name="t_codeLang"> <xsl:param name="p_codeLang"/> <xsl:variable name="v_codeLangLC" select="translate($p_codeLang,$g_allUpperCaseLetters,$g_allLowerCaseLetters)"/> <xsl:choose> <!-- Languages without a syntax generator. The presentation style content files will contain any required resource items for these (i.e. devlang_HTML). --> <xsl:when test="$v_codeLangLC = 'html' or $v_codeLangLC = 'htm'"> <xsl:text>HTML</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'bat' or $v_codeLangLC = 'batch'"> <xsl:text>batch</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'pshell' or $v_codeLangLC = 'powershell' or $v_codeLangLC = 'ps1'"> <xsl:text>PShell</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'py'"> <xsl:text>Python</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'sql' or $v_codeLangLC = 'sqlserver' or $v_codeLangLC = 'sql server'"> <xsl:text>SQL</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'vbs' or $v_codeLangLC = 'vbscript'"> <xsl:text>VBScript</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'vb-c#' or $v_codeLangLC = 'visualbasicandcsharp'"> <xsl:text>VisualBasicAndCSharp</xsl:text> </xsl:when> <xsl:when test="$v_codeLangLC = 'xml' or $v_codeLangLC = 'xmllang' or $v_codeLangLC = 'xsl'"> <xsl:text>XML</xsl:text> </xsl:when> <!-- Special case for XAML. It has a syntax generator but we treat the code elements differently and must use a common ID. --> <xsl:when test="$v_codeLangLC = 'xaml' or $v_codeLangLC = 'xamlusage'"> <xsl:text>XAML</xsl:text> </xsl:when> <!-- None/other. No resource items are needed for these. --> <xsl:when test="$v_codeLangLC = 'none' or $v_codeLangLC = 'other'"> <xsl:value-of select="$v_codeLangLC"/> </xsl:when> <!-- If none of the above, assume it is a language with a syntax generator. The syntax generator content files will contain any required resource items for the language. --> <xsl:otherwise> <xsl:value-of select="$p_codeLang"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- This gets the language name for metadata --> <xsl:template name="t_codeLangName"> <xsl:param name="p_codeLang"/> <xsl:variable name="v_codeLangUnique"> <xsl:call-template name="t_codeLang"> <xsl:with-param name="p_codeLang" select="$p_codeLang"/> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="$v_codeLangUnique = 'none' or $v_codeLangUnique = 'other'" /> <xsl:otherwise> <xsl:value-of select="$v_codeLangUnique"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ============================================================================================ Syntax and Code sections ============================================================================================= --> <xsl:template name="t_putSyntaxSections"> <xsl:param name="p_nodes"/> <xsl:variable name="v_id" select="generate-id(msxsl:node-set($p_nodes))" /> <!-- Count non-XAML snippets and XAML snippets with something other than boilerplate content --> <xsl:variable name="v_nodeCount" select="count(msxsl:node-set($p_nodes)/self::node()[@codeLanguage != 'XAML' or (@codeLanguage = 'XAML' and boolean(./div[@class='xamlAttributeUsageHeading' or @class='xamlObjectElementUsageHeading' or @class='xamlContentElementUsageHeading' or @class='xamlPropertyElementUsageHeading']))])" /> <div class="codeSnippetContainer"> <div class="codeSnippetContainerTabs"> <xsl:for-each select="msxsl:node-set($p_nodes)"> <xsl:choose> <!-- Suppress tabs for boilerplate XAML which isn't currently shown --> <xsl:when test="@codeLanguage='XAML' and not(boolean(./div[ @class='xamlAttributeUsageHeading' or @class='xamlObjectElementUsageHeading' or @class='xamlContentElementUsageHeading' or @class='xamlPropertyElementUsageHeading']))" /> <xsl:otherwise> <div id="{$v_id}_tab{position()}"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$v_nodeCount = 1"> <xsl:text>codeSnippetContainerTabSingle</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>codeSnippetContainerTab</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:choose> <xsl:when test="$v_nodeCount = 1"> <include item="devlang_{@codeLanguage}" undefined="{@codeLanguage}"/> </xsl:when> <xsl:otherwise> <!-- Use onclick rather than href or HV 2.0 messes up the link --> <a href="#" onclick="javascript:ChangeTab('{$v_id}','{@style}','{position()}','{$v_nodeCount}');return false;"> <include item="devlang_{@codeLanguage}" undefined="{@codeLanguage}"/> </a> </xsl:otherwise> </xsl:choose> </div> </xsl:otherwise> </xsl:choose> </xsl:for-each> </div> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <a id="{$v_id}_copyCode" href="#" class="copyCodeSnippet" onclick="javascript:CopyToClipboard('{$v_id}');return false;"> <includeAttribute name="title" item="copyCode" /> <include item="copyCode" /> </a> </div> </div> <xsl:for-each select="msxsl:node-set($p_nodes)"> <xsl:choose> <!-- Suppress snippets for boilerplate XAML which isn't currently shown --> <xsl:when test="@codeLanguage='XAML' and not(boolean(./div[ @class='xamlAttributeUsageHeading' or @class='xamlObjectElementUsageHeading' or @class='xamlContentElementUsageHeading' or @class='xamlPropertyElementUsageHeading']))" /> <xsl:otherwise> <div id="{$v_id}_code_Div{position()}" class="codeSnippetContainerCode"> <xsl:attribute name="style"> <xsl:choose> <xsl:when test="$v_nodeCount = 1 or position() = 1"> <xsl:text>display: block</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>display: none</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:choose> <xsl:when test="@codeLanguage='XAML'"> <xsl:call-template name="XamlSyntaxBlock" /> </xsl:when> <xsl:otherwise> <pre xml:space="preserve"><xsl:copy-of select="node()"/></pre> </xsl:otherwise> </xsl:choose> </div> </xsl:otherwise> </xsl:choose> </xsl:for-each> </div> </div> <!-- Register the tab set even for single tabs as we may need to hide the Copy link --> <script type="text/javascript">AddLanguageTabSet("<xsl:value-of select="$v_id" />");</script> </xsl:template> <xsl:template name="t_putCodeSections"> <xsl:param name="p_nodes"/> <xsl:variable name="v_id" select="generate-id(msxsl:node-set($p_nodes))" /> <xsl:variable name="v_nodeCount" select="count(msxsl:node-set($p_nodes))" /> <div class="codeSnippetContainer"> <xsl:choose> <!-- Omit the tab if there is a title attribute with a single space --> <xsl:when test="$v_nodeCount = 1 and msxsl:node-set($p_nodes)//@title = ' '" /> <xsl:otherwise> <div class="codeSnippetContainerTabs"> <xsl:for-each select="msxsl:node-set($p_nodes)"> <div id="{$v_id}_tab{position()}"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$v_nodeCount = 1"> <xsl:text>codeSnippetContainerTabSingle</xsl:text> </xsl:when> <xsl:when test="@phantom"> <xsl:text>codeSnippetContainerTabPhantom</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>codeSnippetContainerTab</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:choose> <xsl:when test="$v_nodeCount = 1"> <xsl:choose> <xsl:when test="@title"> <xsl:value-of select="@title" /> </xsl:when> <xsl:otherwise> <include item="devlang_{@codeLanguage}" undefined="{@codeLanguage}"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <!-- Use onclick rather than href or HV 2.0 messes up the link --> <a href="#" onclick="javascript:ChangeTab('{$v_id}','{@style}','{position()}','{$v_nodeCount}');return false;"> <include item="devlang_{@codeLanguage}" undefined="{@codeLanguage}"/> </a> </xsl:otherwise> </xsl:choose> </div> </xsl:for-each> </div> </xsl:otherwise> </xsl:choose> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <a id="{$v_id}_copyCode" href="#" class="copyCodeSnippet" onclick="javascript:CopyToClipboard('{$v_id}');return false;"> <includeAttribute name="title" item="copyCode" /> <include item="copyCode" /> </a> </div> </div> <xsl:for-each select="msxsl:node-set($p_nodes)"> <div id="{$v_id}_code_Div{position()}" class="codeSnippetContainerCode"> <xsl:attribute name="style"> <xsl:choose> <xsl:when test="$v_nodeCount = 1 or position() = 1"> <xsl:text>display: block</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>display: none</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:choose> <xsl:when test="@phantom"> <include item="noCodeExample" /> </xsl:when> <xsl:otherwise> <pre xml:space="preserve"><xsl:copy-of select="node()"/></pre> </xsl:otherwise> </xsl:choose> </div> </xsl:for-each> </div> </div> <!-- Register the tab set even for single tabs as we may need to hide the Copy link --> <script type="text/javascript">AddLanguageTabSet("<xsl:value-of select="$v_id" />");</script> </xsl:template> <!-- ============================================================================================ XAML Syntax ============================================================================================= --> <xsl:template name="XamlSyntaxBlock"> <!-- Branch based on page type --> <xsl:choose> <!-- Display boilerplate for page types that cannot be used in XAML --> <xsl:when test="$g_apiTopicSubGroup='method' or $g_apiTopicSubGroup='constructor' or $g_apiTopicSubGroup='interface' or $g_apiTopicSubGroup='delegate' or $g_apiTopicSubGroup='field'"> <xsl:call-template name="ShowXamlSyntaxBoilerplate"/> </xsl:when> <!-- Class and structure --> <xsl:when test="$g_apiTopicSubGroup='class' or $g_apiTopicSubGroup='structure'"> <xsl:choose> <xsl:when test="div[@class='xamlObjectElementUsageHeading']"> <xsl:call-template name="ShowAutogeneratedXamlSyntax"> <xsl:with-param name="autogenContent"> <xsl:copy-of select="div[@class='xamlObjectElementUsageHeading']"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="ShowXamlSyntaxBoilerplate"> <xsl:with-param name="p_messageId"> <xsl:copy-of select="."/> </xsl:with-param> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:when> <!-- Enumeration --> <xsl:when test="$g_apiTopicSubGroup='enumeration'"> <xsl:choose> <xsl:when test="div[@class='nonXamlAssemblyBoilerplate']"/> <xsl:otherwise> <pre xml:space="preserve"><include item="enumerationOverviewXamlSyntax"/><xsl:text/></pre> </xsl:otherwise> </xsl:choose> </xsl:when> <!-- Property --> <xsl:when test="$g_apiTopicSubGroup='property' or $g_apiTopicSubSubGroup='attachedProperty'"> <!-- Property Element Usage --> <xsl:if test="div[@class='xamlPropertyElementUsageHeading' or @class='xamlContentElementUsageHeading']"> <xsl:call-template name="ShowAutogeneratedXamlSyntax"> <xsl:with-param name="autogenContent"> <xsl:copy-of select="div[@class='xamlPropertyElementUsageHeading' or @class='xamlContentElementUsageHeading']"/> </xsl:with-param> </xsl:call-template> </xsl:if> <!-- Attribute Usage --> <xsl:if test="div[@class='xamlAttributeUsageHeading']"> <xsl:call-template name="ShowAutogeneratedXamlSyntax"> <xsl:with-param name="autogenContent"> <xsl:copy-of select="div[@class='xamlAttributeUsageHeading']"/> </xsl:with-param> </xsl:call-template> </xsl:if> <!-- Show auto-generated boilerplate if no other content to override it --> <xsl:if test="not(div[@class='xamlPropertyElementUsageHeading' or @class='xamlContentElementUsageHeading' or @class='xamlAttributeUsageHeading'])"> <xsl:call-template name="ShowXamlSyntaxBoilerplate"> <xsl:with-param name="p_messageId"> <xsl:copy-of select="div/*"/> </xsl:with-param> </xsl:call-template> </xsl:if> </xsl:when> <!-- Event --> <xsl:when test="$g_apiTopicSubGroup='event' or $g_apiTopicSubSubGroup='attachedEvent'"> <!-- If XamlSyntaxUsage component generated an Attribute Usage block, this template will show it --> <xsl:call-template name="ShowAutogeneratedXamlSyntax"> <xsl:with-param name="autogenContent"> <xsl:copy-of select="div[@class='xamlAttributeUsageHeading']"/> </xsl:with-param> </xsl:call-template> <!-- If XamlSyntaxUsage component generated a boilerplate block, this template will show it --> <xsl:call-template name="ShowXamlSyntaxBoilerplate"> <xsl:with-param name="p_messageId"> <xsl:copy-of select="div/*"/> </xsl:with-param> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:template> <!-- Displays one of the standard XAML boilerplate strings. --> <xsl:template name="ShowXamlSyntaxBoilerplate"> <xsl:param name="p_messageId"/> <!-- Do not show any XAML syntax boilerplate strings --> <xsl:variable name="boilerplateId"/> <!-- If future requirements call for showing one or more boilerplate strings for XAML, use the commented out code to specify the ids of the shared content items to include. NOTE: The markup like div/@class='interfaceOverviewXamlSyntax' is added by XamlUsageSyntax.cs in BuildAssembler. --> <!-- <xsl:variable name="boilerplateId"> <xsl:value-of select="div/@class[.='interfaceOverviewXamlSyntax' or .='propertyXamlSyntax_abstractType' or .='classXamlSyntax_abstract']"/> </xsl:variable> --> <xsl:if test="$boilerplateId != ''"> <pre xml:space="preserve"><include item="{$boilerplateId}"> <xsl:choose> <xsl:when test="$p_messageId !='' or (count(msxsl:node-set($p_messageId)/*) &gt; 0)"> <parameter><xsl:copy-of select="msxsl:node-set($p_messageId)"/></parameter> </xsl:when> <!-- Make sure we at least pass in an empty param because some boilerplates expect them --> <xsl:otherwise> <parameter/> </xsl:otherwise> </xsl:choose> </include><xsl:text/></pre> </xsl:if> </xsl:template> <!-- Displays the auto-generated XAML syntax for page types other than enumerations --> <xsl:template name="ShowAutogeneratedXamlSyntax"> <xsl:param name="autogenContent"/> <xsl:if test="count(msxsl:node-set($autogenContent))>0"> <xsl:for-each select="msxsl:node-set($autogenContent)/div"> <pre xml:space="preserve"><xsl:copy-of select="node()"/><xsl:text/></pre> </xsl:for-each> </xsl:if> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> <!-- ====================================================== BUS INTERFACE DIMENSIONS ====================================================== --> <xsl:variable name="IPD_HGAP" select="16"/> <xsl:variable name="IPD_VGAP" select="16"/> <xsl:variable name="IPD_HPORT_GAP" select="16"/> <xsl:variable name="IPD_CENTER_W" select="180"/> <xsl:variable name="IPD_PRT_W" select="8"/> <xsl:variable name="IPD_PRT_H" select="8"/> <xsl:variable name="IPD_PRT_SY" select="8"/> <xsl:variable name="IPD_PRT_SPC" select="16"/> <!-- ====================================================== BUS INTERFACE DIMENSIONS ====================================================== --> <xsl:variable name="IPD_BIF_H" select="16"/> <xsl:variable name="IPD_BIF_W" select="32"/> <xsl:variable name="IPD_BIFC_H" select="24"/> <xsl:variable name="IPD_BIFC_W" select="24"/> <xsl:variable name="IPD_BIFC_dx" select="ceiling($IPD_BIFC_W div 5)"/> <xsl:variable name="IPD_BIFC_dy" select="ceiling($IPD_BIFC_H div 5)"/> <xsl:variable name="IPD_BIFC_Hi" select="($IPD_BIFC_H - ($IPD_BIFC_dy * 2))"/> <xsl:variable name="IPD_BIFC_Wi" select="($IPD_BIFC_W - ($IPD_BIFC_dx * 2))"/> <xsl:variable name="IPD_BIF_TYPE_ONEWAY" select="'OneWay'"/> <!-- ====================================================== GLOLBAL BUS INTERFACE DIMENSIONS (Define for global MdtSVG_BifShapes.xsl which is used across all diagrams to define the shapes of bifs the same across all diagrams) ====================================================== --> <xsl:variable name="BIF_H" select="$IPD_BIF_H"/> <xsl:variable name="BIF_W" select="$IPD_BIF_W"/> <xsl:variable name="BIFC_H" select="$IPD_BIFC_H"/> <xsl:variable name="BIFC_W" select="$IPD_BIFC_W"/> <xsl:variable name="BIFC_dx" select="$IPD_BIFC_dx"/> <xsl:variable name="BIFC_dy" select="$IPD_BIFC_dy"/> <xsl:variable name="BIFC_Hi" select="$IPD_BIFC_Hi"/> <xsl:variable name="BIFC_Wi" select="$IPD_BIFC_Wi"/> </xsl:stylesheet>
<fo:block font-weight="bold">Adults:</fo:block> <xsl:for-each select="person[@age &gt;= 21]"> <fo:block><xsl:value-of select="position()"/>. <xsl:value-of select="@name"/></fo:block> </xsl:for-each>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml"/> <xsl:template match="/*"> <!-- Use a template to insert some text into a simple SVG graphic with hideous colors. --> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"> <rect x="0" y="0" width="400" height="200" fill="cyan"/> <circle cx="200" cy="100" r="50" fill="yellow"/> <text x="200" y="115" style="font-size: 40px; text-align: center; text-anchor: middle; fill: black;"> <!-- The text inside the element --> <xsl:value-of select="."/> </text> </svg> </xsl:template> </xsl:stylesheet>
<filename>Task/Prime-decomposition/XSLT/prime-decomposition-2.xslt <numbers> <number><value>1</value></number> <number><value>2</value></number> <number><value>4</value></number> <number><value>8</value></number> <number><value>9</value></number> <number><value>255</value></number> </numbers>
<reponame>SoCdesign/audiomixer <?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG Tiny 1.1//EN" doctype-system="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"/> --> <!-- ======================= DEF BLOCK =================================== --> <xsl:template name="Define_AllStacks"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@EAST &lt; $G_ROOT/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH)]"> <xsl:call-template name="Define_Stack"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="Define_Stack"> <xsl:param name="iStackIdx" select="100"/> <!-- Define the stack's peripheral shapes--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and not(@MODCLASS = 'MEMORY_UNIT'))]"> <xsl:for-each select="MODULE"> <xsl:variable name="modInst_" select="@INSTANCE"/> <xsl:variable name="modType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInst_)]/@MODTYPE"/> <xsl:call-template name="Define_Peripheral"> <xsl:with-param name="iModInst" select="$modInst_"/> <xsl:with-param name="iModType" select="$modType_"/> <xsl:with-param name="iShapeId" select="../@SHAPE_ID"/> <xsl:with-param name="iHorizIdx" select="../@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="../@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:for-each> </xsl:for-each> <!-- Define the stack's memory shapes--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@MODCLASS='MEMORY_UNIT'))]"> <xsl:call-template name="Define_MemoryUnit"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:for-each> <!-- Define the stack's processors--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[@INSTANCE and @BIFS_W and @BIFS_H and (@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:call-template name="Define_Processor"/> </xsl:for-each> <!-- Make an inventory of all the things in this processor's stack --> <xsl:variable name="pstackW_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <xsl:variable name="pstackH_"> <xsl:call-template name="F_Calc_Stack_Height"> <xsl:with-param name="iStackIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Proc Stack Height <xsl:value-of select="$pstackH_"/></xsl:message> <xsl:message>Proc Stack Height <xsl:value-of select="$pstackH_"/></xsl:message> --> <xsl:variable name="procW_" select="$BLKD_MOD_W"/> <xsl:variable name="procX_" select="(ceiling($pstackW_ div 2) - ceiling($procW_ div 2))"/> <xsl:variable name="sbsGap_" select="($BLKD_PROC2SBS_GAP + $G_Total_SharedBus_H)"/> <xsl:variable name="stack_name_"> <xsl:call-template name="F_generate_Stack_Name"> <xsl:with-param name="iHorizIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Horiz index<xsl:value-of select="$stackIdx"/></xsl:message> <xsl:message>Drawing stack <xsl:value-of select="$stack_name_"/></xsl:message> --> <!-- Now use all this stuff to draw the stack--> <g id="{$stack_name_}"> <rect x="0" y="0" rx="6" ry="6" width = "{$pstackW_}" height= "{$pstackH_}" style="fill:{$COL_BG}; stroke:none;"/> <!-- First draw the the processor's peripherals--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:sort select="@STACK_VERTI_INDEX" data-type="number"/> <xsl:variable name="shapeW_" select="(@MODS_W * $BLKD_MOD_W)"/> <xsl:variable name="shapeX_" select="(ceiling($pstackW_ div 2) - ceiling($shapeW_ div 2))"/> <xsl:variable name="stack_SymName_"> <xsl:call-template name="F_generate_Stack_SymbolName"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Drawing stack peripheral <xsl:value-of select="$stack_SymName_"/></xsl:message> --> <xsl:variable name="shapeY_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <use x="{$shapeX_}" y="{$shapeY_}" xlink:href="#{$stack_SymName_}"/> </xsl:for-each> <!-- Then draw the slave buckets for the shared busses that this processor is master to --> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:sort select="@SHAPE_VERTI_INDEX" data-type="number"/> <xsl:variable name="bucketW_" select="(($BLKD_MOD_BKTLANE_W * 2) + (($BLKD_MOD_W * @MODS_W) + ($BLKD_MOD_BUCKET_G * (@MODS_W - 1))))"/> <xsl:variable name="bucketX_" select="(ceiling($pstackW_ div 2) - ceiling($bucketW_ div 2))"/> <xsl:variable name="bucketY_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>SBS Bucket Y <xsl:value-of select="$bucketY_"/></xsl:message> --> <use x="{$bucketX_}" y="{$bucketY_}" xlink:href="#sbsbucket_{@BUSNAME}"/> <xsl:variable name="slavesOfTxt_">SLAVES OF <xsl:value-of select="@BUSNAME"/></xsl:variable> <!-- <text class="bkt_label" x="{$bucketX_}" y="{$bucketY_ - 4}"><xsl:value-of select="$slavesOfTxt_"/></text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="$bucketX_"/> <xsl:with-param name="iY" select="($bucketY_ - 4)"/> <xsl:with-param name="iText" select="$slavesOfTxt_"/> <xsl:with-param name="iClass" select="'bkt_label'"/> </xsl:call-template> </xsl:for-each> <!-- Then draw the the processor itself --> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:sort select="@SHAPE_VERTI_INDEX" data-type="number"/> <xsl:variable name="procY_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stack_SymName_"> <xsl:call-template name="F_generate_Stack_SymbolName"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <use x="{$procX_}" y="{$procY_}" xlink:href="#{$stack_SymName_}"/> <!-- <xsl:if test = "not(@IS_LIKEPROC)"> <text class="ipclass_label" x="{$procX_}" y="{$procY_ - 4}">PROCESSOR</text> </xsl:if> <xsl:if test = "@IS_LIKEPROC = 'TRUE'"> <text class="ipclass_label" x="{$procX_}" y="{$procY_ - 4}">USER MODULE</text> </xsl:if> --> <xsl:if test = "not(@IS_LIKEPROC)"> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="$procX_"/> <xsl:with-param name="iY" select="($procY_ - 4)"/> <xsl:with-param name="iText" select="'PROCESSOR'"/> <xsl:with-param name="iClass" select="'ipclass_label'"/> </xsl:call-template> </xsl:if> <xsl:if test = "@IS_LIKEPROC = 'TRUE'"> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="$procX_"/> <xsl:with-param name="iY" select="($procY_ - 4)"/> <xsl:with-param name="iText" select="'USER MODULE'"/> <xsl:with-param name="iClass" select="'ipclass_label'"/> </xsl:call-template> </xsl:if> </xsl:for-each> </g> </xsl:template> <xsl:template name="Define_Processor"> <xsl:param name="iProcInst" select="@INSTANCE"/> <xsl:param name="iModType" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/@MODTYPE"/> <xsl:variable name="label_y_"> <xsl:value-of select="$BLKD_MOD_LANE_H"/> </xsl:variable> <!-- <xsl:message>The proctype is <xsl:value-of select="$procType"/></xsl:message> --> <xsl:variable name="procH_" select="(($BLKD_MOD_LANE_H * 2) + (($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIFS_H) + ($BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procW_" select="(($BLKD_MOD_LANE_W * 2) + (($BLKD_BIF_W * @BIFS_W) + $BLKD_MOD_BIF_GAP_H))"/> <xsl:variable name="procColor_"> <xsl:choose> <xsl:when test="contains($iModType,'microblaze')"><xsl:value-of select="$COL_PROC_BG_MB"/></xsl:when> <xsl:when test="contains($iModType,'ppc')"><xsl:value-of select="$COL_PROC_BG_PP"/></xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_PROC_BG_USR"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>The proc color is <xsl:value-of select="$procColor"/></xsl:message> --> <xsl:variable name="procName_"> <xsl:call-template name="F_generate_Stack_SymbolName"> <xsl:with-param name="iHorizIdx" select="@STACK_HORIZ_INDEX"/> <xsl:with-param name="iVertiIdx" select="@SHAPE_VERTI_INDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>The proc name is <xsl:value-of select="$procName_"/></xsl:message> --> <g id="{$procName_}"> <rect x="0" y="0" rx="6" ry="6" width = "{$procW_}" height= "{$procH_}" style="fill:{$procColor_}; stroke:{$COL_WHITE}; stroke-width:2"/> <rect x="{ceiling($procW_ div 2) - ceiling($BLKD_MOD_LABEL_W div 2)}" y="{$BLKD_MOD_LANE_H}" rx="3" ry="3" width= "{$BLKD_MOD_LABEL_W}" height="{$BLKD_MOD_LABEL_H}" style="fill:{$COL_WHITE}; stroke:none;"/> <!-- <text class="bciptype" x="{ceiling($procW_ div 2)}" y="{$BLKD_MOD_LANE_H + 8}"> <xsl:value-of select="$iModType"/> </text> <text class="bciplabel" x="{ceiling($procW_ div 2)}" y="{$BLKD_MOD_LANE_H + 16}"> <xsl:value-of select="$iProcInst"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="ceiling($procW_ div 2)"/> <xsl:with-param name="iY" select="($BLKD_MOD_LANE_H + 8)"/> <xsl:with-param name="iText" select="$iModType"/> <xsl:with-param name="iClass" select="'bc_iptype'"/> </xsl:call-template> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="ceiling($procW_ div 2)"/> <xsl:with-param name="iY" select="($BLKD_MOD_LANE_H + 16)"/> <xsl:with-param name="iText" select="$iProcInst"/> <xsl:with-param name="iClass" select="'bc_ipinst'"/> </xsl:call-template> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/@GROUP"> <rect x="{ceiling($BLKD_MOD_W div 2) - ceiling($BLKD_MOD_LABEL_W div 2)}" y="{$BLKD_MOD_LANE_H + $BIF_H + ceiling($BLKD_BIF_H div 3) - 2}" rx="3" ry="3" width= "{$BLKD_MOD_LABEL_W}" height="{$BLKD_BIF_H}" style="fill:{$COL_IORING_LT}; stroke:none;"/> <!-- <text class="ioplblgrp" x="{ceiling($BLKD_MOD_W div 2)}" y="{$BLKD_MOD_LANE_H + $BIF_H + ceiling($BIF_H div 3) + 12}"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/@GROUP"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="ceiling($BLKD_MOD_W div 2)"/> <xsl:with-param name="iY" select="($BLKD_MOD_LANE_H + $BIF_H + ceiling($BIF_H div 3) + 12)"/> <xsl:with-param name="iText" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/@GROUP"/> <xsl:with-param name="iClass" select="'iogrp_label'"/> </xsl:call-template> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/BUSINTERFACE[(@BIF_X and @BIF_Y)]"> <xsl:variable name="bifBusStd_"> <xsl:choose> <xsl:when test="@BUSSTD"> <xsl:value-of select="@BUSSTD"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'TRS'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="bifBusColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$bifBusStd_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="bifName_"> <xsl:choose> <xsl:when test="string-length(@NAME) &lt;= 5"> <xsl:value-of select="@NAME"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring(@NAME,0,5)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="bif_x_" select="(( $BLKD_BIF_W * @BIF_X) + ($BLKD_MOD_BIF_GAP_H * @BIF_X) + ($BLKD_MOD_LANE_W * 1))"/> <xsl:variable name="bif_y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="horz_line_y_" select="($bif_y_ + ceiling($BLKD_BIFC_H div 2))"/> <xsl:variable name="horz_line_x1_"> <xsl:choose> <xsl:when test="@BIF_X = '0'">0</xsl:when> <xsl:otherwise><xsl:value-of select="($BLKD_MOD_W - $BLKD_MOD_LANE_W)"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="horz_line_x2_"> <xsl:choose> <xsl:when test="@BIF_X = '0'"><xsl:value-of select="$BLKD_MOD_LANE_W"/></xsl:when> <xsl:otherwise><xsl:value-of select="$BLKD_MOD_W + 1"/></xsl:otherwise> </xsl:choose> </xsl:variable> <line x1="{$horz_line_x1_}" y1="{$horz_line_y_ - 2}" x2="{$horz_line_x2_}" y2="{$horz_line_y_ - 2}" style="stroke:{$bifBusColor_};stroke-width:1"/> <use x="{$bif_x_}" y="{$bif_y_}" xlink:href="#{$bifBusStd_}_BifLabel"/> <!-- <text class="bif_label" x="{$bif_x_ + ceiling($BIF_W div 2)}" y="{$bif_y_ + ceiling($BIF_H div 2) + 3}"> <xsl:value-of select="$bifName_"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($bif_x_ + ceiling($BIF_W div 2))"/> <xsl:with-param name="iY" select="($bif_y_ + ceiling($BIF_H div 2) + 3)"/> <xsl:with-param name="iText" select="$bifName_"/> <xsl:with-param name="iClass" select="'bif_label'"/> </xsl:call-template> </xsl:for-each> <xsl:variable name="intcIdx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/INTERRUPTINFO/@INTC_INDEX"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iProcInst)]/INTERRUPTINFO/@INTC_INDEX"/> </xsl:when> <xsl:otherwise>"_no_interrupt_cntlr_"</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message> The intc index should <xsl:value-of select="$interrupt_cntlr_"/></xsl:message> <xsl:message> The intc index is <xsl:value-of select="/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $interrupt_cntlr_)]/@INTC_INDEX"/></xsl:message> --> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(INTERRUPTINFO[(@INTC_INDEX = $intcIdx_)])]"> <xsl:variable name="intrColor_"> <xsl:call-template name="F_IntcIdx2RGB"> <xsl:with-param name="iIntcIdx" select="$intcIdx_"/> <!-- <xsl:with-param name="iIntcIdx" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $interrupt_cntlr_)]/INTERRUPTINFO/@INTC_INDEX"/> --> </xsl:call-template> </xsl:variable> <xsl:call-template name="F_draw_InterruptedProc"> <xsl:with-param name="iIntr_X" select="($BLKD_MOD_W - ceiling($BLKD_INTR_W div 2))"/> <xsl:with-param name="iIntr_Y" select="3"/> <xsl:with-param name="iIntr_COL" select="$intrColor_"/> <xsl:with-param name="iIntr_IDX" select="$intcIdx_"/> </xsl:call-template> </xsl:if> </g> </xsl:template> </xsl:stylesheet>
<filename>docs/demos/jswidget/trunk/license_xsl/support.xsl <?xml version="1.0" encoding="utf8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template name="version"> <xsl:param name="specified_version" /> <xsl:param name="jurisdiction" /> <xsl:choose> <xsl:when test="$specified_version != ''"> <xsl:value-of select="$specified_version"/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$jurisdiction='fi'">1.0</xsl:when> <xsl:when test="$jurisdiction='jp'">2.1</xsl:when> <xsl:when test="$jurisdiction='dk' or $jurisdiction='ar' or $jurisdiction='au' or $jurisdiction='hu' or $jurisdiction='si' or $jurisdiction='se' or $jurisdiction='scotland' or $jurisdiction='ca' or $jurisdiction='my' or $jurisdiction='br' or $jurisdiction='bg' or $jurisdiction='mx' or $jurisdiction='pl' or $jurisdiction='cn' or $jurisdiction='it' or $jurisdiction='pe' or $jurisdiction='mt' or $jurisdiction='co' or $jurisdiction='za' or $jurisdiction='pt' or $jurisdiction='in' or $jurisdiction='ch' or $jurisdiction='il' or $jurisdiction='mk' or $jurisdiction='tw'">2.5</xsl:when> <xsl:when test="$jurisdiction='' or $jurisdiction='generic' or $jurisdiction='-' or $jurisdiction='nl' or $jurisdiction='gr' or $jurisdiction='lu' or $jurisdiction='nz' or $jurisdiction='ph' or $jurisdiction='rs' or $jurisdiction='us' or $jurisdiction='pr' or $jurisdiction='hr' or $jurisdiction='no' or $jurisdiction='ec' or $jurisdiction='de' or $jurisdiction='at' or $jurisdiction='ro' or $jurisdiction='hk' or $jurisdiction='gt' or $jurisdiction='es' or $jurisdiction='sg' or $jurisdiction='th' or $jurisdiction='cz'">3.0</xsl:when> <xsl:otherwise>2.0</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="common.xsl"/> <xsl:output method="text"/> <xsl:template match="/"> <xsl:text>library,cell,view,name,type,interface,contents</xsl:text> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="edif/library/cell/view"/> </xsl:template> <xsl:template match="view"> <xsl:value-of select="ancestor::library/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="ancestor::cell/@name"/> <xsl:text>,</xsl:text> <xsl:value-of select="@name"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="." mode="_name"/> <xsl:text>,</xsl:text> <xsl:value-of select="viewtype"/> <xsl:text>,</xsl:text> <xsl:if test="interface">true</xsl:if> <xsl:text>,</xsl:text> <xsl:if test="contents">true</xsl:if> <xsl:text>&#10;</xsl:text> </xsl:template> </xsl:stylesheet>
<filename>Task/Execute-HQ9+/XSLT/execute-hq9+-7.xslt <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:lo="urn:uuid:59afd337-03a8-49d9-a7a8-8e2cbc4ef9cc"> <!-- Note: xmlns:lo is defined as a sort of pseudo-private namespace --> <!-- Given a count and a suffix (default " on the wall"), renders one number-containing line of the bottles song --> <xsl:template name="lo:line"> <xsl:param name="count"/> <xsl:param name="suffix"> on the wall</xsl:param> <xsl:value-of select="$count"/> <xsl:text> bottle</xsl:text> <xsl:if test="$count != 1">s</xsl:if> <xsl:text> of beer</xsl:text> <xsl:value-of select="$suffix"/> <xsl:text>&#10;</xsl:text> </xsl:template> <!-- Given a count, renders one verse of the bottles song --> <xsl:template name="lo:verse"> <xsl:param name="count"/> <xsl:call-template name="lo:line"> <xsl:with-param name="count" select="$count"/> </xsl:call-template> <xsl:call-template name="lo:line"> <xsl:with-param name="count" select="$count"/> <!-- empty suffix for this line --> <xsl:with-param name="suffix"/> </xsl:call-template> <xsl:text>Take one down, pass it around&#10;</xsl:text> <xsl:call-template name="lo:line"> <xsl:with-param name="count" select="$count - 1"/> </xsl:call-template> <xsl:text>&#10;</xsl:text> </xsl:template> <!-- Given a starting count, renders the entire bottles song --> <xsl:template name="lo:song"> <xsl:param name="count"/> <xsl:if test="$count &gt; 0"> <xsl:call-template name="lo:verse"> <xsl:with-param name="count" select="$count"/> </xsl:call-template> <xsl:call-template name="lo:song"> <xsl:with-param name="count" select="$count - 1"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- The entire bottles song --> <xsl:variable name="entire-bottles-song"> <xsl:call-template name="lo:song"> <xsl:with-param name="count" select="99"/> </xsl:call-template> </xsl:variable> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Matrix-multiplication/XSLT-1.0/matrix-multiplication-1.xslt <?xml-stylesheet href="matmul.templ.xsl" type="text/xsl"?> <mult> <A> <r><c>1</c><c>2</c></r> <r><c>3</c><c>4</c></r> <r><c>5</c><c>6</c></r> <r><c>7</c><c>8</c></r> </A> <B> <r><c>1</c><c>2</c><c>3</c></r> <r><c>4</c><c>5</c><c>6</c></r> </B> </mult>
<reponame>SoCdesign/audiomixer<filename>ZedBoard_Linux_Design/hw/xps_proj/__xps/.dswkshop/MdtXdsGen_HTMLDatasheet.xsl <?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink"> <xsl:output method="html"/> <xsl:include href="MdtXdsGen_Colors.xsl"/> <xsl:include href="MdtXdsGen_Globals.xsl"/> <xsl:include href="MdtXdsGen_HTMLTOCTree.xsl"/> <xsl:include href="MdtXdsGen_HTMLMemoryMap.xsl"/> <xsl:include href="MdtXdsGen_HTMLIPSection.xsl"/> <!-- <xsl:param name="PARAM_FRAME" select="'MAIN'"/> <xsl:param name="PARAM_FRAME" select="'INDEX'"/> <xsl:param name="PARAM_FRAME" select="'TOCTREE'"/> <xsl:param name="PARAM_FRAME" select="'NOFRAMES'"/> --> <xsl:param name="PARAM_FRAME" select="'MAIN'"/> <xsl:param name="PARAM_DEBUG" select="'FALSE'"/> <xsl:param name="PARAM_PREFIX" select="'system'"/> <xsl:variable name="FRAME_FRMMAIN"><xsl:value-of select="$PARAM_PREFIX"/>_main</xsl:variable> <xsl:variable name="FNM_FRMMAIN_HTML"><xsl:value-of select="$FRAME_FRMMAIN"/>.html</xsl:variable> <xsl:variable name="FNM_FRMMAIN_HTML_NOFRM"><xsl:value-of select="$FRAME_FRMMAIN"/>NF.html</xsl:variable> <xsl:variable name="IMG_FRMMAIN_BLKD">imgs/<xsl:value-of select="$PARAM_PREFIX"/>_blkd.jpg</xsl:variable> <!-- ======================= MAIN DATASHEET SECTION =============================== --> <xsl:template match="EDKSYSTEM[@EDKVERSION and @EDWVERSION]"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> --- Writing Frame: <xsl:value-of select="$PARAM_FRAME"/></xsl:message> </xsl:if> <xsl:choose> <xsl:when test="(($PARAM_FRAME='MAIN') or ($PARAM_FRAME='NOFRAMES'))"> <xsl:call-template name="WriteFrame_MAIN"/> </xsl:when> <xsl:when test="$PARAM_FRAME='TOCTREE'"> <xsl:call-template name="WriteFrame_TOCTREE"/> </xsl:when> <xsl:when test="$PARAM_FRAME='INDEX'"> <xsl:call-template name="WriteFrame_INDEX"/> </xsl:when> <xsl:when test="$PARAM_FRAME='BLKD'"> <xsl:call-template name="WriteFrame_BLKD"/> </xsl:when> <xsl:otherwise> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message>Unknown frame <xsl:value-of select="$PARAM_FRAME"/> requested.</xsl:message> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ======================================== MAIN FRAME ======================================== --> <xsl:template name="WriteFrame_MAIN"> <HTML> <HEAD> <TITLE><xsl:value-of select="$G_XPS_TITLE"/></TITLE> <!--specify a css for the file --> <meta http-equiv="PRAGMA" content="NO-CACHE"/> <meta http-equiv="content-Type" content="text/html; charset=iso-8859-1"/> </HEAD> <BODY BGCOLOR="{$COL_WHITE}"> <!-- ======================================== TABLE OF CONTENTS and OVERVIEW ======================================== --> <xsl:if test="($PARAM_FRAME = 'NOFRAMES')"> <xsl:call-template name="WriteContents_TOCFLAT"/> </xsl:if> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Overview </xsl:message> </xsl:if> <TABLE BGCOLOR="{$COL_WHITE}" WIDTH="{$G_MAIN_WIDTH}" COLS="1" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:if test="not($PARAM_FRAME = 'NOFRAMES')"> <TD COLSPAN="1" ALIGN="LEFT" VALIGN="TOP"> <A HREF="{$FNM_FRMMAIN_HTML_NOFRM}" target="ANCHOR_TOP" style="text-decoration:none"><SPAN style="color:{$COL_GREEN}; font: bold 14px Verdana Arial,Helvetica,sans-serif">Printable Version</SPAN></A> </TD> <TR></TR> </xsl:if> <TD COLSPAN="1" WIDTH="100%" VALIGN="TOP"> <A name="ANCHOR_OVERVIEW"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Overview'"/> </xsl:call-template> <xsl:call-template name="WriteContents_Overview"/> </TD> <!-- ======================================== BLOCK DIAGRAM ======================================== --> <TR/> <TD COLSPAN="1" WIDTH="100%" VALIGN="TOP"> <BR/> <A name="ANCHOR_BLOCKDIAGRAM"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Block Diagram'"/> </xsl:call-template> <BR></BR> <IMG SRC="{$IMG_FRMMAIN_BLKD}" AlT="BlockDiagram" BORDER="0" VSPACE="0" HSPACE="0"/> </TD> <!-- ======================================== EXTERNAL PORTS ======================================== --> <TR/> <TD COLSPAN="1" WIDTH="100%" VALIGN="TOP"> <A name="ANCHOR_EXTERNALPORTS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'External Ports'"/> </xsl:call-template> <BR></BR> <xsl:call-template name="WriteContents_ExternalPorts"/> </TD> <!-- ======================================== PROCESSORS ======================================== --> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Processors</xsl:message> </xsl:if> <xsl:if test="($G_NUMOF_PROCESSORS &gt; 0)"> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_PROCESSORS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Processors'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_MODULES"> <xsl:variable name="num_of_procs_" select="count(key('G_MAP_MODULES', 'PROCESSOR'))"/> <xsl:for-each select="key('G_MAP_MODULES', 'PROCESSOR')"> <xsl:sort select="@MODTYPE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </xsl:for-each> <!-- <xsl:message>Num of processors in the design <xsl:value-of select="$num_of_procs_"/></xsl:message> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[((@MODCLASS='PROCESSOR') and (contains(@MODTYPE,'microblaze')))]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[((@MODCLASS='PROCESSOR') and (contains(@MODTYPE,'ppc')))]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> --> </TABLE> </TD> </xsl:if> <!-- ======================================== DEBUGGERS ======================================== --> <xsl:if test="($G_NUMOF_DEBUGGERS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Debuggers</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_DEBUGGERS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Debuggers'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='DEBUG')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== INTERRUPT CONTROLLERS ======================================== --> <xsl:if test="($G_NUMOF_INTERRUPT_CNLTRS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Interrupt Controllers</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_INTERRUPT_CNTLRS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Interrupt Controllers'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='INTERRUPT_CNTLR')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== BUSSES ======================================== --> <xsl:if test="($G_NUMOF_BUSSES &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Busses</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_BUSSES"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Busses'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='BUS')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== BRIDGES ======================================== --> <xsl:if test="($G_NUMOF_BRIDGES &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Bridges</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_BRIDGES"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Bridges'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='BUS_BRIDGE')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== MEMORYS ======================================== --> <xsl:if test="($G_NUMOF_MEMORYS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Memorys</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_MEMORYS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Memorys'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='MEMORY')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== MEMORY CONTROLLERS ======================================== --> <xsl:if test="($G_NUMOF_MEMORY_CNTLRS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Memory Controllers</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_MEMORY_CNTLRS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Memory Controllers'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='MEMORY_CNTLR')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== PERIPHERALS ======================================== --> <xsl:if test="($G_NUMOF_PERIPHERALS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Peripherals</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_PERIPHERALS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Peripherals'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PERIPHERAL')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== IP ======================================== --> <xsl:if test="($G_NUMOF_IPS &gt; 0)"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing IPS</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_PERIPHERALS"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'IP'"/> </xsl:call-template> <BR></BR> <TABLE ALIGN="LEFT" WIDTH="{$G_MAIN_WIDTH}" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'IP')]"> <xsl:sort select="@INSTANCE"/> <TR/> <TD COLSPAN="1" ALIGN="LEFT"> <xsl:call-template name="WriteContents_IPSection"/> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <!-- ======================================== TIMING INFORMATION ======================================== --> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Timing Information</xsl:message> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="100%"> <BR></BR> <BR></BR> <A name="ANCHOR_TIMINGINFO"/> <xsl:call-template name="WriteContents_NavigateHeader"> <xsl:with-param name="iHeaderName" select="'Timing Information'"/> </xsl:call-template> <BR></BR> <BR></BR> <xsl:call-template name="WriteContents_TimingInfo"/> </TD> </TABLE> </BODY> </HTML> </xsl:template> <xsl:template name="WriteContents_Overview"> <TABLE WIDTH="{$G_MAIN_WIDTH}" VALIGN="TOP" ALIGN="LEFT" BORDER="0" CELLPADDING="0" CELLSPACING="1" COLS="2" BGCOLOR="{$COL_WHITE}"> <TD COLSPAN="1" ALIGN="LEFT" VALIGN="TOP"> <xsl:call-template name="WriteContents_ResourcesTable"/> </TD> <TD COLSPAN="1" ALIGN="RIGHT" VALIGN="TOP"> <xsl:call-template name="WriteContents_SpecificsTable"/> </TD> </TABLE> </xsl:template> <xsl:template name="WriteContents_ResourcesTable"> <xsl:variable name="BusDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'BUS')]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:variable name="ProcDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PROCESSOR')]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:variable name="BrdgDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'BUS_BRIDGE')]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:variable name="BramDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY')]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:variable name="CntlrDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY_CNTLR')]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:variable name="OtherDescs_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[not((@MODCLASS = 'BUS') or (@MODCLASS = 'PROCESSOR') or (@MODCLASS = 'BUS_BRIDGE') or (@MODCLASS = 'MEMORY') or (@MODCLASS = 'MEMORY_CNTLR'))]/DESCRIPTION[(@TYPE ='SHORT')]"/> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Overview Resources </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($ProcDescs_)"/> Processors </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($BusDescs_)"/> Busses </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($BrdgDescs_)"/> Bridges </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($BramDescs_)"/> Memorys </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($CntlrDescs_)"/> Memory Controllers </xsl:message> <xsl:message> ---- Found <xsl:value-of select="count($OtherDescs_)"/> Other Modules</xsl:message> </xsl:if> <TABLE WIDTH="{$G_OVRESOURCES_WIDTH}" BORDER="0" CELLPADDING="0" CELLSPACING="1" COLS="0" BGCOLOR="{$COL_WHITE}"> <TD COLSPAN="2" BGCOLOR="{$COL_WHITE}" ALIGN="CENTER" VALIGN="TOP"> <SPAN style="color:{$COL_XLNX}; font: bold 14px Verdana,Arial,Helvetica,sans-serif">Resources Used</SPAN> </TD> <TR/> <!-- Processors overview --> <xsl:for-each select="exsl:node-set($ProcDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($ProcDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> <!-- Busses Overview --> <xsl:for-each select="exsl:node-set($BusDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($BusDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> <!-- Bridges Overview --> <xsl:for-each select="exsl:node-set($BrdgDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($BrdgDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> <!-- Memory Overview --> <xsl:for-each select="exsl:node-set($BramDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($BramDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> <!-- Memory Controllers Overview --> <xsl:for-each select="exsl:node-set($CntlrDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($CntlrDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> <!-- Other assorted modules Overview --> <xsl:for-each select="exsl:node-set($OtherDescs_)[not(text() = preceding::text())]"> <xsl:variable name="DscOf" select="text()"/> <xsl:variable name="NumOf" select="count($OtherDescs_[text() = $DscOf])"/> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="RIGHT" WIDTH="5%"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$NumOf"/><xsl:text>&#160;&#160;</xsl:text></SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="LEFT" WIDTH="95%"> <SPAN style="color:{$COL_BLACK}; font: italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$DscOf"/></SPAN> </TD> <TR/> </xsl:for-each> </TABLE> </xsl:template> <xsl:template name="WriteContents_SpecificsTable"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing Overview Specifics </xsl:message> </xsl:if> <TABLE WIDTH="{$G_OVSPECFICS_WIDTH}" BORDER="0" CELLPADDING="0" CELLSPACING="1" COLS="2" BGCOLOR="{$COL_BLACK}"> <TD COLSPAN="2" BGCOLOR="{$COL_XLNX}" ALIGN="CENTER"> <SPAN style="color:{$COL_WHITE}; font: bold 14px Verdana,Arial,Helvetica,sans-serif">Specifics</SPAN> </TD> <TR/> <TD COLSPAN="1" BGCOLOR="{$COL_GRAY}" ALIGN="LEFT" WIDTH="30%"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Generated</SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="CENTER" WIDTH="70%"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$G_ROOT/EDKSYSTEM/@TIMESTAMP"/></SPAN> </TD> <TR/> <TD COLSPAN="1" BGCOLOR="{$COL_GRAY}" ALIGN="LEFT" WIDTH="30%"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">EDK Version</SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="CENTER"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$G_EDKVERSION"/></SPAN> </TD> <TR/> <TD COLSPAN="1" BGCOLOR="{$COL_GRAY}" ALIGN="LEFT" WIDTH="30%"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Device Family</SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="CENTER"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$G_FAMILY"/></SPAN> </TD> <TR/> <TD COLSPAN="1" BGCOLOR="{$COL_GRAY}" ALIGN="LEFT" WIDTH="30%"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Device</SPAN> </TD> <TD COLSPAN="1" BGCOLOR="{$COL_WHITE}" ALIGN="CENTER"> <SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$G_DEVICE"/></SPAN> </TD> <TR/> </TABLE> </xsl:template> <xsl:template name="WriteContents_ExternalPorts"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message> ---- Writing External Ports </xsl:message> </xsl:if> <xsl:variable name="NUMOF_ALL_" select="count($G_ROOT/EXTERNALPORTS/PORT)"/> <xsl:variable name="NUMOF_I_" select="count($G_ROOT/EXTERNALPORTS/PORT[(@DIR='I')])"/> <xsl:variable name="NUMOF_O_" select="count($G_ROOT/EXTERNALPORTS/PORT[(@DIR='O')])"/> <xsl:variable name="NUMOF_IO_" select="count($G_ROOT/EXTERNALPORTS/PORT[(@DIR='IO')])"/> <xsl:variable name="table_width_"> <xsl:if test="$NUMOF_ALL_ &gt; 16"><xsl:value-of select="$G_MAIN_WIDTH"/></xsl:if> <xsl:if test="$NUMOF_ALL_ &lt;= 16"><xsl:value-of select="$G_MAIN_WIDTH"/></xsl:if> </xsl:variable> <xsl:variable name="left_extra_"> <xsl:if test="($NUMOF_ALL_ mod 2) = 1">1</xsl:if> <xsl:if test="not(($NUMOF_ALL_ mod 2) = 1)">0</xsl:if> </xsl:variable> <xsl:variable name="num_left_" select="floor($NUMOF_ALL_ div 2) + $left_extra_"/> <xsl:variable name="num_rhgt_" select="floor($NUMOF_ALL_ div 2)"/> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{$table_width_}" COLS="8" CELLSPACING="1" CELLPADDING="1" BORDER="0"> <!-- <TD COLSPAN="8" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">EXTERNAL PORTS</SPAN></TD> --> <TR></TR> <TD COLSPAN="8" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"> These are the external ports defined in the MHS file. </SPAN> </TD> <TR></TR> <TD COLSPAN="8" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Attributes Key</SPAN> <BR></BR> <SPAN style="color:{$COL_BLACK}; font: italic 10px Verdana,Arial,Helvetica,sans-serif">The attributes are obtained from the SIGIS and IOB_STATE parameters set on the PORT in the MHS file </SPAN> <BR></BR> <SPAN style="color:{$COL_ATTR_CLK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">CLK</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">&#160;&#160;indicates Clock ports, (SIGIS = CLK)&#160;</SPAN> <BR></BR> <SPAN style="color:{$COL_ATTR_INT}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">INTR</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;&#160;indicates Interrupt ports,(SIGIS = INTR)&#160;</SPAN> <BR></BR> <SPAN style="color:{$COL_ATTR_RST}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">RESET</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;&#160;indicates Reset ports, (SIGIS = RST)&#160;</SPAN> <BR></BR> <SPAN style="color:{$COL_ATTR_BUF}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">BUF or REG</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;&#160;Indicates ports that instantiate or infer IOB primitives, (IOB_STATE = BUF or REG)&#160;</SPAN> </TD> <xsl:if test="$NUMOF_ALL_ &lt;= 16"> <TR></TR> <TD COLSPAN="7" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="100%" COLS="9" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">#</SPAN></TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">NAME</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">DIR</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">[LSB:MSB]</SPAN></TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">SIG</SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">ATTRIBUTES</SPAN></TD> <xsl:for-each select="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <xsl:sort data-type="number" select="@GROUP_INDEX" order = "ascending"/> <xsl:variable name="glb_bg_col_"> <xsl:call-template name="Group2Color"> <xsl:with-param name="group" select="@GROUP"/> </xsl:call-template> </xsl:variable> <TR></TR> <TD COLSPAN="1" WIDTH="5%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@INDEX"/></SPAN><SPAN style="color:{$COL_BLACK}; vertical-align: super; font: bold 10px Arial,Helvetica,sans-serif"><xsl:value-of select="@GROUP"/></SPAN> </TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@DIR"/></SPAN></TD> <xsl:if test="@MSB and @LSB"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@LSB"/>:<xsl:value-of select="@MSB"/></SPAN></TD> </xsl:if> <xsl:if test="not(@MSB and @LSB)"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">1</SPAN></TD> </xsl:if> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@SIGNAME"/></SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <xsl:if test="@SIGIS='CLK'"><SPAN style="color:{$COL_ATTR_CLK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='DCMCLK'"><SPAN style="color:{$COL_ATTR_CLK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RST'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RESET'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='INTERRUPT'"><SPAN style="color:{$COL_ATTR_INT}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;INTR&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='BUF'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;BUF&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='REG'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;REG&#160;</SPAN></xsl:if> </TD> </xsl:for-each> </TABLE> </TD> </xsl:if> <xsl:if test="$NUMOF_ALL_ &gt; 16"> <TR></TR> <TD COLSPAN="3" WIDTH="49%"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="100%" COLS="9" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TD COLSPAN="1" WIDTH="5" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">#</SPAN></TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">NAME</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">DIR</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">[LSB:MSB]</SPAN></TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">SIG</SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">ATTRIBUTES</SPAN></TD> <xsl:for-each select="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <xsl:sort data-type="number" select="@GROUP_INDEX" order = "ascending"/> <xsl:if test="position() &lt;= $num_left_"> <xsl:variable name="glb_bg_col_"> <xsl:call-template name="Group2Color"> <xsl:with-param name="group" select="@GROUP"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>NAME: <xsl:value-of select="@NAME"/></xsl:message> <xsl:message>SIGIS: <xsl:value-of select="@SIGIS"/></xsl:message> --> <TR></TR> <TD COLSPAN="1" WIDTH="5%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@INDEX"/></SPAN><SPAN style="color:{$COL_BLACK}; vertical-align: super; font: bold 10px Arial,Helvetica,sans-serif"><xsl:value-of select="@GROUP"/></SPAN> </TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@DIR"/></SPAN></TD> <xsl:if test="@MSB and @LSB"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@LSB"/>:<xsl:value-of select="@MSB"/></SPAN></TD> </xsl:if> <xsl:if test="not(@MSB and @LSB)"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">1</SPAN></TD> </xsl:if> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@SIGNAME"/></SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <xsl:if test="@SIGIS='CLK'"><SPAN style="color:{$COL_GREEN}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='DCMCLK'"><SPAN style="color:{$COL_GREEN}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RST'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RESET'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='INTERRUPT'"><SPAN style="color:{$COL_ATTR_INT}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;INTR&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='BUF'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;BUF&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='REG'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;REG&#160;</SPAN></xsl:if> </TD> </xsl:if> </xsl:for-each> </TABLE> </TD> <TD COLSPAN="1" WIDTH="2%" BGCOLOR="{$COL_GRAY}"> <SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;</SPAN> </TD> <TD COLSPAN="3" WIDTH="49%"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="100%" COLS="9" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">NAME</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">DIR</SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">[LSB:MSB]</SPAN></TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">SIG</SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">ATTRIBUTES</SPAN></TD> <xsl:for-each select="$G_ROOT/EDKSYSTEM/EXTERNALPORTS/PORT"> <xsl:sort data-type="number" select="@GROUP_INDEX" order = "ascending"/> <xsl:if test="position() &gt; $num_left_"> <!-- <xsl:variable name="glb_bg_col_"> <xsl:choose> <xsl:when test="(@GROUP mod 2) = 1"> <xsl:value-of select="$COL_ASH"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> --> <xsl:variable name="glb_bg_col_"> <xsl:call-template name="Group2Color"> <xsl:with-param name="group" select="@GROUP"/> </xsl:call-template> </xsl:variable> <TR></TR> <TD COLSPAN="1" WIDTH="5%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@INDEX"/></SPAN><SPAN style="color:{$COL_BLACK}; vertical-align: super; font: bold 10px Arial,Helvetica,sans-serif"><xsl:value-of select="@GROUP"/></SPAN> </TD> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@DIR"/></SPAN></TD> <xsl:if test="@MSB and @LSB"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@LSB"/>:<xsl:value-of select="@MSB"/></SPAN></TD> </xsl:if> <xsl:if test="not(@MSB and @LSB)"> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">1</SPAN></TD> </xsl:if> <TD COLSPAN="2" WIDTH="30%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@SIGNAME"/></SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="LEFT" BGCOLOR="{$glb_bg_col_}"> <xsl:if test="@SIGIS='CLK'"><SPAN style="color:{$COL_GREEN}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='DCMCLK'"><SPAN style="color:{$COL_GREEN}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;CLK&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RST'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='RESET'"><SPAN style="color:{$COL_ATTR_RST}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;RESET&#160;</SPAN></xsl:if> <xsl:if test="@SIGIS='INTERRUPT'"><SPAN style="color:{$COL_ATTR_INT}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;INTR&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='BUF'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;BUF&#160;</SPAN></xsl:if> <xsl:if test="@IOB_STATE='REG'"><SPAN style="color:{$COL_ATTR_BUF}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;REG&#160;</SPAN></xsl:if> </TD> </xsl:if> </xsl:for-each> <xsl:if test="$left_extra_ &gt; 0"> <TR></TR> <TD COLSPAN="9" WIDTH="100%" ALIGN="left" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_WHITE}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;</SPAN></TD> </xsl:if> </TABLE> </TD> </xsl:if> </TABLE> </xsl:template> <!-- ====================================== LAYOUT TABLE OF CONTENTS ====================================== --> <xsl:template name="WriteContents_TOCFLAT"> <!-- <xsl:variable name="toc_col_"> <xsl:if test="$PARAM_DS_TYPE='NOFRAMES'"> <xsl:value-of select="$COL_LGRY"/> </xsl:if> <xsl:if test="$PARAM_DS_TYPE='FRAMES'"> <xsl:value-of select="$COL_WHITE"/> </xsl:if> </xsl:variable> <xsl:variable name="toc_width_"> <xsl:if test="$PARAM_DS_TYPE='NOFRAMES'"> <xsl:value-of select="$G_MAIN_WIDTH"/> </xsl:if> <xsl:if test="$PARAM_DS_TYPE='FRAMES'"> <xsl:value-of select="$DS_TOC_WIDTH"/> </xsl:if> </xsl:variable> <xsl:variable name="toc_target_"> <xsl:if test="$PARAM_DS_TYPE='NOFRAMES'"> <xsl:value-of select="$PARAM_DS_FRAME_SELF"/> </xsl:if> <xsl:if test="$PARAM_DS_TYPE='FRAMES'"> <xsl:value-of select="$PARAM_DS_FRAME_MAIN"/> </xsl:if> </xsl:variable> <xsl:variable name="trg_html_"> <xsl:if test="$PARAM_DS_TYPE='NOFRAMES'"> <xsl:value-of select="''"/> </xsl:if> <xsl:if test="$PARAM_DS_TYPE='FRAMES'"> <xsl:value-of select="$DS_HTML_MAIN"/> </xsl:if> </xsl:variable> --> <A name="ANCHOR_TOC"/> <TABLE BGCOLOR="{$COL_GRAY_LT}" WIDTH="{$G_MAIN_WIDTH}" COLS="2" CELLSPACING="0" CELLPADDING="3" BORDER="0"> <TH COLSPAN="2" WIDTH="100%" ALIGN="CENTER"><SPAN style="color:{$COL_XLNX}; font: bold 20px Arial,Helvetica,sans-serif">TABLE OF CONTENTS</SPAN></TH> <TR></TR> <TD COLSPAN="1" WIDTH="40%" ALIGN="left"> <BR></BR> <A HREF="#ANCHOR_OVERVIEW" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Overview</SPAN></A> <BR></BR> <A HREF="#ANCHOR_BLOCKDIAGRAM" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Block Diagram</SPAN></A> <BR></BR> <A HREF="#ANCHOR_EXTERNALPORTS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">External Ports</SPAN></A> <BR></BR> <xsl:if test="$G_NUMOF_PROCESSORS &gt; 1"> <A HREF="#ANCHOR_PROCESSORS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Processors</SPAN></A> </xsl:if> <xsl:if test="not($G_NUMOF_PROCESSORS &gt; 1)"> <A HREF="#ANCHOR_PROCESSORS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Processor</SPAN></A> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='PROCESSOR')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> <xsl:if test="MEMORYMAP/MEMRANGE[(@INSTANCE)]"> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}_MEMORYMAP" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;memory map</SPAN></A> </xsl:if> </xsl:for-each> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'DEBUG')]"> <BR></BR> <A HREF="#ACHOR_DEBUGGERS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana Arial,Helvetica,sans-serif">Debuggers</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='DEBUG')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'INTERRUPT_CNTLR')]"> <BR></BR> <A HREF="#ANCHOR_INTERRUPT_CNTLRS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 14px Verdana Arial,Helvetica,sans-serif">Interrupt Controllers</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'INTERRUPT_CNTLR')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[((@MODCLASS='BUS') or (@MODCLASS='BUS_ARBITER'))]"> <BR></BR> <A HREF="#ANCHOR_BUSSES" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Busses</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[((@MODCLASS='BUS') or (@MODCLASS='BUS_ARBITER'))]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULE[(@MODCLASS = 'BUS_BRIDGE')]"> <BR></BR> <A HREF="#ANCHOR_BRIDGES" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Bridges</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='BUS_BRIDGE')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='MEMORY')]"> <BR></BR> <A HREF="#ANCHOR_MEMORYS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Memory</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS='MEMORY')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY_CNTLR')]"> <BR></BR> <A HREF="#ANCHOR_MEMORY_CNTLRS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Memory Controllers</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'MEMORY_CNTLR')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PERIPHERAL')]"> <BR></BR> <A HREF="#ANCHOR_PERIPHERALS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Peripherals</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'PERIPHERAL')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Courier Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'IP')]"> <BR></BR> <A HREF="#ANCHOR_IPS" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">IP</SPAN></A> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@MODCLASS = 'IP')]"> <xsl:sort select="@INSTANCE"/> <BR></BR> <A HREF="#ANCHOR_{@INSTANCE}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 14px Courier Verdana Arial,Helvetica,sans-serif">&#160;&#160;&#160;<xsl:value-of select="@INSTANCE"/></SPAN><xsl:if test="LICENSEINFO[(@ICON_NAME and not(@ICON_NAME = 'ps_core_preferred'))]"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" vspace="0" hspace="0"/></xsl:if></A> </xsl:for-each> </xsl:if> <BR></BR> <A HREF="#ANCHOR_TIMINGINFO" style="text-decoration:none"><SPAN style="color:{$COL_BLACK}; font: bold 16px Verdana Arial,Helvetica,sans-serif">Timing Information</SPAN></A> </TD> </TABLE> </xsl:template> <xsl:template name="Group2Color"> <xsl:param name="group" select="'A'"/> <xsl:variable name="letter"> <xsl:value-of select="substring($group,(string-length($group) -string-length($group)) + 1)"/> </xsl:variable> <xsl:choose> <xsl:when test="$group = 'GLB'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'A'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'C'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'E'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'G'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'I'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'K'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'M'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'O'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'Q'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'S'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'U'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'W'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'Y'"><xsl:value-of select="$COL_GRAY_LT"/></xsl:when> <xsl:when test="$letter = 'B'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'D'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'F'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'H'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'J'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'L'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'N'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'P'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'R'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'T'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'V'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'X'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:when test="$letter = 'Z'"><xsl:value-of select="$COL_WHITE"/></xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="WriteContents_TimingInfo"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{ceiling($G_MAIN_WIDTH div 2)}" COLS="5" CELLSPACING="1" CELLPADDING="1" BORDER="1"> <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">Post Synthesis Clock Limits</SPAN></TD> <TR></TR> <xsl:if test="$G_NUMOF_MODULES_W_TIMING &lt; 1"> <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> No clocks could be identified in the design. Run platgen to generate synthesis information. </SPAN> </TD> </xsl:if> <xsl:if test="$G_NUMOF_MODULES_W_TIMING &gt; 0"> <TD COLSPAN="5" WIDTH="100%" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> These are the post synthesis clock frequencies. The critical frequencies are marked with </SPAN> <SPAN style="color:{$COL_GREEN}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> green. </SPAN> <BR></BR> <SPAN style="color:{$COL_RED}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> The values reported here are post synthesis estimates calculated for each individual module. These values will change after place and route is performed on the entire system. </SPAN> </TD> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="left" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">MODULE</SPAN></TD> <TD COLSPAN="2" WIDTH="40%" ALIGN="left" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">CLK Port</SPAN></TD> <TD COLSPAN="1" WIDTH="20%" ALIGN="left" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">MAX FREQ</SPAN></TD> <xsl:for-each select="$G_ROOT/EDKSYSTEM/MODULES/MODULE/TIMING"> <xsl:sort data-type="number" select="@MAXFREQ" order="ascending"/> <xsl:variable name="maxFreq_" select="@MAXFREQ"/> <xsl:variable name="freqUnit_" select="@FREQUNITS"/> <xsl:variable name="freqCol_"> <xsl:if test="position() = 1"> <xsl:value-of select="$COL_GREEN"/> </xsl:if> <xsl:if test="not(position() = 1)"> <xsl:value-of select="$COL_BLACK"/> </xsl:if> </xsl:variable> <xsl:for-each select="TIMECLK"> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <A HREF="#ANCHOR_{../../@INSTANCE}" style="text-decoration:none"> <SPAN style="color:{$COL_XLNX}; font: italic 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="../../@INSTANCE"/></SPAN> </A> </TD> <TD COLSPAN="2" WIDTH="40%" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="@SIGNAME"/> </SPAN> </TD> <TD COLSPAN="1" WIDTH="20%" ALIGN="left" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$freqCol_}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="$maxFreq_"/><xsl:value-of select="$freqUnit_"/> </SPAN> </TD> </xsl:for-each> </xsl:for-each> </xsl:if> </TABLE> </xsl:template> <xsl:template name="WriteContents_NavigateHeader"> <xsl:param name="iHeaderName" select="' '"/> <TABLE BGCOLOR="{$COL_XLNX}" WIDTH="{$G_MAIN_WIDTH}" COLS="3" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <TH COLSPAN="1" WIDTH="90%" ALIGN="left"><SPAN style="color:{$COL_WHITE}; font: bold 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$iHeaderName"/></SPAN></TH> <xsl:choose> <xsl:when test="$PARAM_FRAME = 'NOFRAMES'"> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER"><A HREF="#ANCHOR_TOC" style="text-decoration:none"><SPAN style="color:{$COL_GRAY_LT}; font: bold italic 14px Verdana Arial,Helvetica,sans-serif">TOC</SPAN></A></TH> </xsl:when> <xsl:when test="(not($PARAM_FRAME = 'NOFRAMES') and not($iHeaderName = 'Overview'))"> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER"><A HREF="#ANCHOR_OVERVIEW" style="text-decoration:none"><SPAN style="color:{$COL_GRAY_LT}; font: bold italic 14px Verdana Arial,Helvetica,sans-serif">TOP</SPAN></A></TH> </xsl:when> </xsl:choose> </TABLE> </xsl:template> <xsl:template name="WriteFrame_BLKD"> <HTML> <HEAD><TITLE>Block Diagram</TITLE></HEAD> <!-- <xsl:message> Embedded image name <xsl:value-of select="$DS_BLKD_NAME"/></xsl:message> <xsl:message> Embedded image name <xsl:value-of select="$DS_BLKD_NAME"/></xsl:message> <xsl:message> Embedded image type <xsl:value-of select="$DS_BLKD_TYPE"/></xsl:message> <xsl:message> Embedded image width <xsl:value-of select="$DS_BLKD_WIDTH"/></xsl:message> <xsl:message> Embedded image height <xsl:value-of select="$DS_BLKD_HEIGHT"/></xsl:message> --> <BODY class="main_body"> <xsl:if test="$DS_BLKD_TYPE = 'svg'"> <EMBED src="{$DS_BLKD_NAME}" WIDTH="{$DS_BLKD_WIDTH}" height="{$DS_BLKD_HEIGHT}" type="image/svg+xml"/> </xsl:if> <xsl:if test="not($DS_BLKD_TYPE = 'svg')"> <IMG SRC="{$DS_BLKD_NAME}" alt="BlockDiagram" WIDTH="{$DS_BLKD_WIDTH}" height="{$DS_BLKD_HEIGHT}" BORDER="0" vspace="0" hspace="0"/> </xsl:if> <BR></BR> <BR></BR> <xsl:call-template name="WriteContents_ExternalPorts"/> <BR></BR> </BODY> </HTML> </xsl:template> <xsl:template name="WriteFrame_TOC"> <HTML> <HEAD> <TITLE>Table of Contents</TITLE> <BASE target="{$PARAM_FRAME_MAIN}"/> </HEAD> <!-- Layout Table of contents --> <BODY class="main_body"> <xsl:call-template name="WriteContents_TOCFLAT"/> </BODY> </HTML> </xsl:template> <xsl:template name="WriteFrame_INDEX"> <HTML> <HEAD><TITLE><xsl:value-of select="$G_XPS_TITLE"/></TITLE></HEAD> <HEAD><TITLE>XPS Project Report</TITLE></HEAD> <FRAMESET COLS="20%,80%" BORDER="0" FRAMESPACING="0"> <FRAME SRC="{$FNM_TOCTREE_HTML}" MARGINWIDTH="0" MARINHEIGHT="0" FRAMEBORDER="NO" BORDER="NO" NAME="{$FRAME_TOCTREE}" SCROLLING="YES"/> <FRAME SRC="{$FNM_FRMMAIN_HTML}" MARGINWIDTH="0" MARINHEIGHT="0" FRAMEBORDER="NO" BORDER="NO" NAME="{$FRAME_FRMMAIN}" SCROLLING="YES"/> </FRAMESET> </HTML> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> <xsl:output method="html" encoding="UTF-8" indent="no" /> <xsl:param name="generate.toc"> appendix nop article toc,title book toc,title,figure,table,example,equation part nop preface nop qandadiv nop qandaset nop reference toc,title section nop set toc </xsl:param> </xsl:stylesheet>
<xsl:text>Goodbye, World! </xsl:text>
<gh_stars>1-10 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="xsl exsl"> <xsl:output method="text"/> <xsl:template name="FizzBuzz" match="/"> <xsl:param name="n" select="1" /> <xsl:variable name="_"> <_><xsl:value-of select="$n" /></_> </xsl:variable> <xsl:apply-templates select="exsl:node-set($_)/_" /> <xsl:if test="$n < 100"> <xsl:call-template name="FizzBuzz"> <xsl:with-param name="n" select="$n + 1" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="_[. mod 3 = 0]">Fizz </xsl:template> <xsl:template match="_[. mod 5 = 0]">Buzz </xsl:template> <xsl:template match="_[. mod 15 = 0]" priority="1">FizzBuzz </xsl:template> <xsl:template match="_"> <xsl:value-of select="concat(.,'&#x0A;')" /> </xsl:template> </xsl:stylesheet>
<gh_stars>0 <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xhtml="https://www.w3.org/1999/xhtml" xmlns="https://www.w3.org/1999/xhtml" xmlns:xsl="https://www.w3.org/1999/XSL/Transform" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:fn="https://www.w3.org/2005/02/xpath-functions" xmlns:xdt="https://www.w3.org/2005/02/xpath-datatypes" exclude-result-prefixes="xhtml xsl fn xs xdt"> <xsl:output omit-xml-declaration="yes" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> <xsl:attribute-set name="ricoTable"> <xsl:attribute name="cellspacing">0</xsl:attribute> <xsl:attribute name="cellpadding">0</xsl:attribute> </xsl:attribute-set> <!-- the identity template --> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <!-- in some cases, IE was duplicating br tags --> <xsl:template match="xhtml:br"> <xsl:copy> <xsl:copy-of select="@*"/> </xsl:copy> </xsl:template> <!-- Transform head section --> <xsl:template match="xhtml:head"> <xsl:copy> <xsl:apply-templates mode="head"/> <script type="text/javascript"> //<![CDATA[ if (typeof ricoInit!='undefined') { if (window.addEventListener) window.addEventListener('load', ricoInit, false); else if (window.attachEvent) window.attachEvent('onload', ricoInit); } // ]]> </script> </xsl:copy> </xsl:template> <xsl:template match="*[name()!='script']" mode="head"> <xsl:copy> <xsl:copy-of select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="xhtml:script" mode="head"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:value-of select="." disable-output-escaping="yes"/> </xsl:copy> </xsl:template> <!-- Transform tables with class ricoSimpleGrid --> <xsl:template match="xhtml:table[@class='ricoSimpleGrid']"> <xsl:choose> <xsl:when test="xhtml:thead"> <xsl:call-template name="processTable"> <xsl:with-param name="id" select="@id"/> <xsl:with-param name="headRows" select="xhtml:thead/xhtml:tr"/> <xsl:with-param name="bodyRows" select="xhtml:tbody/xhtml:tr"/> </xsl:call-template> </xsl:when> <xsl:when test="xhtml:tbody"> <xsl:call-template name="processTable"> <xsl:with-param name="id" select="@id"/> <xsl:with-param name="headRows" select="xhtml:tbody/xhtml:tr[1]"/> <xsl:with-param name="bodyRows" select="xhtml:tbody/xhtml:tr[position() &gt; 1]"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="processTable"> <xsl:with-param name="id" select="@id"/> <xsl:with-param name="headRows" select="xhtml:tr[1]"/> <xsl:with-param name="bodyRows" select="xhtml:tr[position() &gt; 1]"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Perform the actual table transformation --> <xsl:template name="processTable"> <xsl:param name="id" /> <xsl:param name="headRows" /> <xsl:param name="bodyRows" /> <xsl:variable name="headIdx"> <xsl:choose> <xsl:when test="$headRows[@class='ricoHeading']"> <xsl:value-of select="count($headRows[@class='ricoHeading']/preceding-sibling::*)+1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="count($headRows)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="headMain" select="$headRows[position()=$headIdx]"/> <xsl:variable name="headCols" select="$headMain/xhtml:th | $headMain/xhtml:td"/> <!-- <p><xsl:value-of select="$id"/> <br />headRowCnt: <xsl:value-of select="count($headRows)"/> <br />headIdx: <xsl:value-of select="$headIdx"/> <br />bodyRowCnt: <xsl:value-of select="count($bodyRows)"/> </p> --> <xsl:element name="div"> <xsl:attribute name="id"><xsl:value-of select="concat($id,'_outerDiv')"/></xsl:attribute> <xsl:attribute name="class">ricoLG_outerDiv</xsl:attribute> <xsl:attribute name="onload"></xsl:attribute> <!-- Create frozen (left) pane --> <xsl:element name="div"> <xsl:attribute name="id"><xsl:value-of select="concat($id,'_frozenTabsDiv')"/></xsl:attribute> <xsl:attribute name="class">ricoLG_frozenTabsDiv</xsl:attribute> <xsl:call-template name="convertTHead"> <xsl:with-param name="rows" select="$headRows"/> <xsl:with-param name="headIdx" select="$headIdx"/> <xsl:with-param name="frozen" select="1"/> <xsl:with-param name="id" select="concat($id,'_tab0h')"/> </xsl:call-template> <xsl:call-template name="convertTBody"> <xsl:with-param name="rows" select="$bodyRows"/> <xsl:with-param name="cols" select="$headCols"/> <xsl:with-param name="id" select="concat($id,'_tab0')"/> <xsl:with-param name="frozen" select="1"/> </xsl:call-template> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id"><xsl:value-of select="concat($id,'_innerDiv')"/></xsl:attribute> <xsl:attribute name="class">ricoLG_innerDiv</xsl:attribute> <xsl:element name="div"> <xsl:attribute name="id"><xsl:value-of select="concat($id,'_scrollTabsDiv')"/></xsl:attribute> <xsl:attribute name="class">ricoLG_scrollTabsDiv</xsl:attribute> <xsl:call-template name="convertTHead"> <xsl:with-param name="rows" select="$headRows"/> <xsl:with-param name="headIdx" select="$headIdx"/> <xsl:with-param name="frozen" select="0"/> <xsl:with-param name="id" select="concat($id,'_tab1h')"/> </xsl:call-template> </xsl:element> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id"><xsl:value-of select="concat($id,'_scrollDiv')"/></xsl:attribute> <xsl:attribute name="class">ricoLG_scrollDiv</xsl:attribute> <xsl:call-template name="convertTBody"> <xsl:with-param name="rows" select="$bodyRows"/> <xsl:with-param name="cols" select="$headCols"/> <xsl:with-param name="id" select="concat($id,'_tab1')"/> <xsl:with-param name="frozen" select="0"/> </xsl:call-template> </xsl:element> </xsl:element> </xsl:template> <!-- Convert thead section --> <xsl:template name="convertTHead"> <xsl:param name = "rows" /> <xsl:param name = "headIdx" /> <xsl:param name = "frozen" /> <xsl:param name = "id" /> <xsl:element name="table" use-attribute-sets="ricoTable"> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> <xsl:attribute name="class">ricoLG_table ricoLG_top <xsl:if test="$frozen">ricoLG_left</xsl:if> <xsl:if test="not($frozen)">ricoLG_right</xsl:if> </xsl:attribute> <xsl:element name="thead"> <xsl:for-each select="$rows"> <xsl:choose> <xsl:when test="position() = $headIdx"> <xsl:apply-templates select="." mode="convertHeadRow"> <xsl:with-param name="id" select="concat($id,'_main')"/> <xsl:with-param name="frozen" select="$frozen"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="convertHeadRow"> <xsl:with-param name="id" select="concat($id,'_',position())"/> <xsl:with-param name="frozen" select="$frozen"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:element> <tbody /> </xsl:element> </xsl:template> <xsl:template match="*" mode="convertHeadRow"> <xsl:param name = "id" /> <xsl:param name = "frozen" /> <xsl:variable name="class" select="@class"/> <xsl:variable name="cells" select="xhtml:th | xhtml:td"/> <xsl:element name="tr"> <xsl:if test="$id"> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> </xsl:if> <xsl:attribute name="class">ricoLG_hdg <xsl:value-of select="$class"/></xsl:attribute> <xsl:for-each select="$cells[@class='ricoFrozen' and $frozen or not(@class='ricoFrozen') and not($frozen)]"> <xsl:copy> <xsl:copy-of select="@*"/> <div class='ricoLG_col' style='width:100px'> <xsl:element name="div"> <xsl:attribute name="class">ricoLG_cell <xsl:value-of select="@class"/></xsl:attribute> <xsl:copy-of select="* | @*[name()!='class'] | text()"/> </xsl:element> </div> </xsl:copy> </xsl:for-each> </xsl:element> </xsl:template> <!-- Convert tbody section --> <xsl:template name="convertTBody"> <xsl:param name = "rows" /> <xsl:param name = "cols" /> <xsl:param name = "id" /> <xsl:param name = "frozen" /> <xsl:element name="table" use-attribute-sets="ricoTable"> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> <xsl:attribute name="class">ricoLG_table ricoLG_bottom <xsl:if test="$frozen">ricoLG_left</xsl:if> <xsl:if test="not($frozen)">ricoLG_right</xsl:if> </xsl:attribute> <xsl:element name="tbody"> <tr> <xsl:for-each select="$cols"> <xsl:if test="@class='ricoFrozen' and $frozen or not(@class='ricoFrozen') and not($frozen)"> <xsl:variable name="colpos" select="position()"/> <td> <div class='ricoLG_col' style='width:100px'> <xsl:for-each select="$rows"> <xsl:element name="div"> <xsl:attribute name="class">ricoLG_cell <xsl:value-of select="xhtml:td[$colpos]/@class"/></xsl:attribute> <xsl:copy-of select="xhtml:td[$colpos]/* | xhtml:td[$colpos]/@*[name()!='class'] | xhtml:td[$colpos]/text()"/> </xsl:element> </xsl:for-each> </div> </td> </xsl:if> </xsl:for-each> </tr> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <!-- exclude-result-prefixes="html" --> <!-- xmlns="http://www.w3.org/1999/xhtml" --> <!-- xmlns:html="http://www.w3.org/1999/xhtml" --> <xsl:variable name="xdigs">0123456789ABCDEF</xsl:variable> <xsl:variable name="uuasciimap"> !&quot;#$%&amp;'()*+,-./0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</xsl:variable> <xsl:variable name="uureplaceablemap"> &quot;#$%&amp; +, / :;&lt;=&gt;?@ [\]^ ` {|}~</xsl:variable> <xsl:variable name="uu8859map">&#160;&#161;&#162;&#163;&#164;&#165;&#166;&#167;&#168;&#169;&#170;&#171;&#172;&#173;&#174;&#175;&#176;&#177;&#178;&#179;&#180;&#181;&#182;&#183;&#184;&#185;&#186;&#187;&#188;&#189;&#190;&#191;&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#215;&#216;&#217;&#218;&#219;&#220;&#221;&#222;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#240;&#241;&#242;&#243;&#244;&#245;&#246;&#247;&#248;&#249;&#250;&#251;&#252;&#253;&#254;&#255;</xsl:variable> <!-- includes characters that must be escaped, spaces where not required: --> <xsl:variable name="uemap" select="concat($uureplaceablemap, $uu8859map)" /> <!-- Two strings, for translate(), to detect if string includes unhandled character (out-of-range: --> <xsl:variable name="space10" select="' '" /> <xsl:variable name="space20" select="concat($space10,$space10)" /> <xsl:variable name="space50" select="concat($space20,$space20,$space10)" /> <xsl:variable name="uuallowedmap" select="concat($space50,$space50,$space50,$space20,$space20,' ')" /> <xsl:variable name="uuallowed" select="concat($uuasciimap,$uu8859map)" /> <xsl:template name="check_range"> <xsl:param name="str" /> <xsl:variable name="test" select="normalize-space(translate($str,$uuallowedmap, $uuallowed))" /> <check_range test="{$test}" /> <xsl:if test="string-length($test)"> <xsl:message>Unexpected characters in string to be escaped.</xsl:message> </xsl:if> </xsl:template> <xsl:template name="hexify"> <xsl:param name="val" /> <xsl:variable name="lsn" select="$val mod 16" /> <xsl:variable name="msn" select="floor(($val) div 16)" /> <xsl:text>%</xsl:text> <xsl:value-of select="substring($xdigs,($msn)+1,1)" /> <xsl:value-of select="substring($xdigs,($lsn)+1,1)" /> </xsl:template> <xsl:template name="uuescape"> <xsl:param name="str" /> <xsl:variable name="char" select="substring($str,1,1)" /> <xsl:variable name="uubefore" select="substring-before($uemap,$char)" /> <xsl:variable name="uublen" select="string-length($uubefore)" /> <xsl:choose> <xsl:when test="$uublen &gt; 0"> <xsl:call-template name="hexify"> <xsl:with-param name="val"> <xsl:choose> <xsl:when test="$uublen &gt; 94"> <xsl:value-of select="($uublen)+65" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="($uublen)+32" /> </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:when test="$char=' '">%20</xsl:when> <xsl:otherwise><xsl:value-of select="$char" /></xsl:otherwise> </xsl:choose> <xsl:if test="string-length($str) &gt; 1"> <xsl:call-template name="uuescape"> <xsl:with-param name="str" select="substring($str,2)" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="/"> <xsl:variable name="lenall" select="string-length($uuallowed)" /> <xsl:variable name="lenmap" select="string-length($uuallowedmap)" /> <xsl:variable name="apos">'</xsl:variable> <xsl:variable name="nl"> </xsl:variable> <xsl:if test="$lenall != $lenmap"> <xsl:value-of select="concat('allowedlen=',$lenall,' != allowedmap=',$lenmap)" /> </xsl:if> <xsl:apply-templates select="*" /> </xsl:template> <xsl:template match="test"> <xsl:text> </xsl:text> <!-- <xsl:call-template name="check_range"> --> <!-- <xsl:with-param name="str" select="." /> --> <!-- </xsl:call-template> --> <xsl:element name="test"> <xsl:attribute name="source"><xsl:value-of select="." /></xsl:attribute> <xsl:attribute name="result"> <xsl:call-template name="uuescape"> <xsl:with-param name="str" select="." /> </xsl:call-template> </xsl:attribute> </xsl:element> </xsl:template> </xsl:stylesheet>
<filename>Task/Create-an-HTML-table/XSLT/create-an-html-table-1.xslt <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" version="4.01" indent="yes"/> <!-- Most XSLT processors have some way to supply a different value for this parameter --> <xsl:param name="column-count" select="3"/> <xsl:template match="/"> <html> <head> <title>Rosetta Code: Create an HTML table (XSLT)</title> </head> <body> <xsl:apply-templates/> </body> </html> <xsl:variable name="values" select="/*/*"/> </xsl:template> <!-- Rendering HTML from XSLT is so basic as to be trivial. The trickier part of this transform is taking the single-column list of numbers in the input and folding it into multiple columns. A common strategy is to only apply templates to every Nth value in the list, but then to have that template pull in the skipped values to form a row. --> <xsl:template match="/numbers"> <table> <tr> <th/> <th>X</th> <th>Y</th> <th>Z</th> </tr> <!-- Here, we have the template applied to every Nth input element rather than every element. In XSLT, indices are 1-based, so the start index of every row mod N is 1. --> <xsl:apply-templates select="number[position() mod $column-count = 1]"/> </table> </xsl:template> <xsl:template match="number"> <tr> <th> <xsl:value-of select="position()"/> </th> <!-- Here, we compensate for the skipping by including the skipped values in the processing for this value. --> <xsl:for-each select=". | following-sibling::number[position() &lt; $column-count]"> <td> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> </xsl:template> </xsl:stylesheet>
<filename>admin/cys/mys/res/mysstatic.xsl <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:apply-templates select="mys"></xsl:apply-templates> </xsl:template> <!--MAIN BODY--> <xsl:template match="mys"> <DIV id="divHeader" style="overflow:hidden; width: 100%;" noWrap=""> <TABLE class="MysBodyTable" cellpadding="0" cellspacing="0"> <!--Header Row --> <tr class="mysHeaderRow" > <td> <span class="mysLogoSpan"> <center> <img width="48" height="48"> <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute> </img> </center> </span> </td> <td valign="top" width="100%" colspan="2" > <table cellpadding="0" cellspacing="0" height="100%" width="100%"> <tr valign="top"> <td width="50%"> <div class="mysTitle"><xsl:value-of select="@title"/></div> <div style="margin-bottom:10px"> <span class="mysServerCaption"><b><xsl:value-of select="@serverCaption"/></b></span> <b><span class="mysServer" id="server"></span></b> </div> </td> <td valign="middle" width="50%" align="right"> <table style="margin-left:0px" width="100%"> <tr> <td align="right" width="100%"> <div style="margin-left:4px" class="mysSearchCaption"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></div> </td> <td > <input type="edit" id="search" size="15" maxlength="256" onkeydown="if (window.event.keyCode == 13) {{ SearchHelp ( search.value ) ; }}"> <xsl:attribute name="ACCESSKEY"><xsl:value-of select="@searchAccessKey"/></xsl:attribute> </input> <!-- The following label assigns Name to input field for accessibility--> <label style="display:none" for="search"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></label> </td> <td valign="middle"> <div style="margin-right:24px;"> <img id="searchImg" tabindex="0" width="27" height="27" src="greenarrow_large.gif" onclick="SearchHelp(search.value);" onkeydown="if(window.event.keyCode == 13 || window.event.keyCode == 32) {{ SearchHelp(search.value); }}"/> <!-- The following label assigns Name to input field for accessibility--> <label style="display:none" for="searchImg"><xsl:value-of select="@searchCaption" disable-output-escaping="yes"/></label> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </TABLE> </DIV> <DIV id="divBody" style=" overflow:auto; WIDTH:100%;" noWrap="" > <TABLE id="mainbody" class="MysBodyTable" cellpadding="0" cellspacing="0"> <!--Body Row --> <tr> <td colspan="3"> <table height="100%" width="100%" cellpadding="0" cellspacing="0"> <tr> <!--Main Body Cell --> <td class="mysTaskPaneCell" colspan="2" width="100%" valign="top" style="margin-left: 24px; margin-right: 23px"> <xsl:apply-templates select="tasklist"/> </td> <!--Tool Tray Cell --> <td rowspan="2" valign="top" style="margin-left: 24px; margin-right: 23px;"> <xsl:apply-templates select="tools"/> </td> </tr> <tr> <td valign="bottom"> <div class="mysTdDontDisplayCaption" id="logonBoxDiv"> <input class="mysChkDontDisplayCaption" id="logonBox" type="checkbox" name="chkDontDisplay" onclick="setLogonBox(this.checked);" > <xsl:attribute name="ACCESSKEY"><xsl:value-of select="@dontDisplayAccessKey"/></xsl:attribute> </input> <label for="logonBox"> <xsl:value-of select="@dontDisplayCaption" disable-output-escaping="yes"/> </label> </div> </td> </tr> <tr height="12px"><td></td></tr> </table> </td> </tr> </TABLE> </DIV> </xsl:template> <!--TASKS--> <xsl:template match="/mys/tasklist"> <table class="mysTasks" cellpadding="0" cellspacing="0"> <xsl:for-each select="task"> <tr> <td> <xsl:apply-templates select="."/> </td> </tr> </xsl:for-each> </table> </xsl:template> <!--single task--> <xsl:template match="/mys/tasklist/task"> <table class="mysTask" cellpadding="0" cellspacing="0"> <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> <tr ID="taskHeader"><!--Title row--> <td rowspan="5" valign="top" align="center"><!--Cell for icon--> <span class="mysTaskLogoCellSpan"> <img class="mysTaskLogo" height="36" width="36"> <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute> </img> </span> </td> <td width="100%" valign="top"><!--Title cell--> <div class="mysTaskTitle"><xsl:value-of select="@title"/></div> <table class="mysMinTaskWidth"></table> </td> </tr> <tr id="taskBody" height="100%"><!--Body row--> <td valign="top" ><!--Description cell--> <div class="mysTaskDescription"><xsl:value-of select="description"/></div> </td> <td valign="top" colspan="2" ><!--subtask cell--> <div class="mysTaskSubTaskPane" > <xsl:apply-templates select="subtasks"/> </div> </td> </tr> <tr style="display:none" id="taskBodyNoInfo" height="100%"><!--Body row--> <td valign="top" ><!--Description cell--> <div width="100%" class="mysTaskDescription"> <table> <tr> <td colspan="2"> <div class="mysTaskNoDataDescription" width="100%"><xsl:value-of select="@nodatadescription"/><br/><br/></div> </td> </tr> <tr> <td valign="top"> <img width="20" height="20" src="info.gif"/> </td> <td> <div class="mysTaskNoDataDescription" width="100%"><xsl:value-of select="@nodata"/></div> </td> </tr> </table> </div> </td> <td valign="top" colspan="2" ><!--subtask cell--> <div class="mysTaskSubTaskPane" > </div> </td> </tr> <tr id="roleDescription"><td><div class="mysRoleListDescription"><xsl:value-of select="@roledescription"/></div></td></tr> <tr id="taskRoles"><!--Roles row--> <td colspan="3"> <span class="mysTaskRolesPane" id="roles"/> </td> </tr> </table> </xsl:template> <xsl:template match="/mys/tasklist/task/subtasks"> <table width="100%" class="mysSubTasks" cellpadding="0" cellspacing="0"> <xsl:for-each select="subtask"> <tr class="mysSubtaskRow"> <td valign="top"> <div class="mysSubtaskImageCell"> <center> <a class="mysSubtaskLink" tabIndex="-1" hideFocus="true" > <xsl:choose> <xsl:when test="@type = 'url'"> <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> </xsl:when> <xsl:when test="@type = 'help'"> <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'hcp'"> <xsl:attribute name="href">javascript:execCmd('"<xsl:value-of select="@link" />"')</xsl:attribute> </xsl:when> <xsl:when test="@type = 'program'"> <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'cpl'"> <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="href">about:blank</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute> <img width="20" height="20" border="0" > <xsl:attribute name="src"><xsl:value-of select="image/@src"/></xsl:attribute> </img> </a> </center> </div> </td> <td width="100%" valign="top"> <div class="mysSubtaskTextCell"> <a class="mysSubtaskLink"> <xsl:choose> <xsl:when test="@type = 'url'"> <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> </xsl:when> <xsl:when test="@type = 'help'"> <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'hcp'"> <xsl:attribute name="href">javascript:execCmd("iexplore.exe " + "<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'program'"> <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'cpl'"> <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="href">about:blank</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute> <xsl:attribute name="onmouseover">this.style.textDecoration='underline';</xsl:attribute> <xsl:attribute name="onmouseout">this.style.textDecoration='none';</xsl:attribute> <xsl:value-of select="@name" /> </a> </div> </td> </tr> </xsl:for-each> </table> </xsl:template> <xsl:template match="/mys/tasklist/subtasks/subtask"> asdf </xsl:template> <!--Tools area--> <xsl:template match="/mys/tools"> <table class="mysToolTrays" cellpadding="0" cellspacing="0"> <xsl:for-each select="tooltray"> <tr> <td> <xsl:apply-templates select="."/> </td> </tr> </xsl:for-each> </table> </xsl:template> <!--Tools tray--> <xsl:template match="/mys/tools/tooltray"> <table class="mysToolTray" cellpadding="0" cellspacing="0"> <tr class="mysToolTrayTitleRow"> <td width="100%" ><div class="mysToolTrayTitle"><b><xsl:value-of select="@title" disable-output-escaping="yes"/></b></div></td> </tr> <tr class="mysToolTrayTopRowSpacer"> <td></td> </tr> <xsl:for-each select="tool"> <tr class="mysToolLinkRow"> <td> <xsl:apply-templates select="."/> </td> </tr> </xsl:for-each> <tr class="mysToolTrayBottomRowSpacer"> <td></td> </tr> </table> </xsl:template> <xsl:template match="/mys/tools/tooltray/tool"> <div class="mysToolLinkRow"> <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> <xsl:if test="@id"> <xsl:attribute name="style">display: none;</xsl:attribute> </xsl:if> <a class="mysToolLink"> <xsl:attribute name="accesskey"><xsl:value-of select="@accesskey"/></xsl:attribute> <xsl:choose> <xsl:when test="@type = 'url'"> <xsl:attribute name="href"><xsl:value-of select="@link" /></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> </xsl:when> <xsl:when test="@type = 'help'"> <xsl:attribute name="href">javascript:execChm("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'hcp'"> <xsl:attribute name="href">javascript:execCmd('"<xsl:value-of select="@link" />"')</xsl:attribute> </xsl:when> <xsl:when test="@type = 'program'"> <xsl:attribute name="href">javascript:execCmd("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:when test="@type = 'cpl'"> <xsl:attribute name="href">javascript:execCpl("<xsl:value-of select="@link" />")</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="href">about:blank</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:attribute name="title"><xsl:value-of select="@tooltip" /></xsl:attribute> <xsl:attribute name="onmouseover">this.style.textDecoration = 'underline';</xsl:attribute> <xsl:attribute name="onmouseout">this.style.textDecoration = 'none';</xsl:attribute> <xsl:value-of select="@name" /> </a> </div> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text" encoding="utf-8"/> <!-- Outputs a line for a single FizzBuzz iteration. --> <xsl:template name="fizzbuzz-single"> <xsl:param name="n"/> <!-- $s will be "", "Fizz", "Buzz", or "FizzBuzz". --> <xsl:variable name="s"> <xsl:if test="$n mod 3 = 0">Fizz</xsl:if> <xsl:if test="$n mod 5 = 0">Buzz</xsl:if> </xsl:variable> <!-- Output $s. If $s is blank, also output $n. --> <xsl:value-of select="$s"/> <xsl:if test="$s = ''"> <xsl:value-of select="$n"/> </xsl:if> <!-- End line. --> <xsl:value-of select="'&#10;'"/> </xsl:template> <!-- Calls fizzbuzz-single over each value in a range. --> <xsl:template name="fizzbuzz-range"> <!-- Default parameters: From 1 through 100 --> <xsl:param name="startAt" select="1"/> <xsl:param name="endAt" select="$startAt + 99"/> <!-- Simulate a loop with tail recursion. --> <!-- Loop condition --> <xsl:if test="$startAt &lt;= $endAt"> <!-- Loop body --> <xsl:call-template name="fizzbuzz-single"> <xsl:with-param name="n" select="$startAt"/> </xsl:call-template> <!-- Increment counter, repeat --> <xsl:call-template name="fizzbuzz-range"> <xsl:with-param name="startAt" select="$startAt + 1"/> <xsl:with-param name="endAt" select="$endAt"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- Main procedure --> <xsl:template match="/"> <!-- Default parameters are used --> <xsl:call-template name="fizzbuzz-range"/> </xsl:template> </xsl:stylesheet>
<tt> <knight> <square file="1" rank="1" /> </knight> </tt>
<gh_stars>0 <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="common.xsl"/> <xsl:output method="text"/> <!--root/edif/library/external/cell/view--> <xsl:template match="/"> <xsl:apply-templates select="edif"/> </xsl:template> <xsl:template match="edif"> <xsl:apply-templates select="design"/> <xsl:apply-templates select="library"/> <xsl:apply-templates select="external"/> </xsl:template> <xsl:template match="design"> <xsl:text>トップデザイン:</xsl:text> <xsl:call-template name="_name"/> <xsl:text>&#32;&#32;</xsl:text> <xsl:value-of select="cellref/libraryref/@name"/> <xsl:text>-</xsl:text> <xsl:value-of select="cellref/@name"/> <xsl:text>&#10;</xsl:text> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="library|external"> <xsl:text>ライブラリ:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="technology"/> <xsl:apply-templates select="cell"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="technology"> <xsl:apply-templates select="figuregroup"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="figuregroup"> <xsl:text>&#32;&#32;グループ:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="cell"> <xsl:text>&#32;&#32;セル:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="view"/> </xsl:template> <xsl:template match="view"> <xsl:text>&#32;&#32;&#32;&#32;ビュー:</xsl:text> <xsl:call-template name="_name"/> <xsl:text>&#32;</xsl:text> <xsl:variable name="id" select="concat(../../@name,'-',../@name,'-',@name)"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="interface[count(*)!=0]"/> <xsl:apply-templates select="contents[count(*)!=0]"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="interface"> <xsl:text>&#32;&#32;&#32;&#32;&#32;&#32;(I/F)</xsl:text> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="name"/> <xsl:apply-templates select="port"/> <xsl:apply-templates select="symbol"/> </xsl:template> <xsl:template match="contents"> <xsl:text>&#32;&#32;&#32;&#32;&#32;&#32;(本体)</xsl:text> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="page"/> </xsl:template> <xsl:template match="page"> <xsl:text>&#32;(ページ&#32;</xsl:text> <xsl:call-template name="_name"/> <xsl:text>)</xsl:text> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="instance"/> <xsl:apply-templates select="net"/> </xsl:template> <!--interface--> <xsl:template match="port"> <xsl:text>&#32;ポート:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="symbol"> <xsl:text>&#32;シンボル:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="portimplementation"/> </xsl:template> <xsl:template match="portimplementation"> <xsl:text>&#32;&#32;ポート実装:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <!--contents/page--> <xsl:template match="instance"> <xsl:text>&#32;&#32;部品:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="portinstance"/> </xsl:template> <xsl:template match="portinstance"> <xsl:text>&#32;&#32;&#32;&#32;部品ポート:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <xsl:template match="net"> <xsl:text>&#32;&#32;&#32;&#32;ネット:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> <xsl:apply-templates select="array"/> </xsl:template> <xsl:template match="array"> <xsl:text>&#32;&#32;&#32;&#32;バス:</xsl:text> <xsl:call-template name="_name"/> <xsl:apply-templates select="designator"/> <xsl:apply-templates select="property"/> <xsl:text>&#10;</xsl:text> </xsl:template> <!--common--> <xsl:template match="name"> <xsl:text>&#32;name[</xsl:text> <xsl:call-template name="_name"/> <xsl:text>]</xsl:text> </xsl:template> <xsl:template match="designator"> <xsl:if test="string-length(normalize-space(text()))!=0"> <xsl:text>&#32;designator[</xsl:text> <xsl:value-of select="text()"/> <xsl:text>]</xsl:text> </xsl:if> </xsl:template> <xsl:template match="property"> <xsl:text>&#32;</xsl:text> <xsl:call-template name="_name"/> <xsl:text>=</xsl:text> <xsl:call-template name="_value"/> </xsl:template> <!--common function--> <!-- <xsl:template name="_name"> <xsl:call-template name="_pprint"> <xsl:with-param name="s"> <xsl:choose> <xsl:when test="count(rename)!=0"> <xsl:value-of select="rename/text()"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@name"/> </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="_value"> <xsl:call-template name="_pprint"> <xsl:with-param name="s"> <xsl:value-of select="string/text()"/> <xsl:value-of select="integer/text()"/> <xsl:value-of select="number/text()"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="_pprint"> <xsl:param name="s"/> <xsl:variable name="s2"> <xsl:if test="not (starts-with($s,'&amp;'))"> <xsl:value-of select="substring($s,1,1)"/> </xsl:if> <xsl:value-of select="substring($s,2)"/> </xsl:variable> <xsl:variable name="s3" select="translate($s2,'&quot;','')"/> <xsl:value-of select="$s3" disable-output-escaping="yes"/> </xsl:template> --> </xsl:stylesheet>
<reponame>cjungmann/schemafw <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <xsl:import href="sfw_generics.xsl" /> <xsl:import href="sfw_schema.xsl" /> <!-- This stylesheet is intended to be imported into another stylesheet. It expects to be passed an element with the following attributes: @month YYYY-MM @initialDay The day-of-week of the first of the month @countOfDays The number of days/last day of the month. These are optional: @today YYYY-MM-DD @selected YYYY-MM-DD The default is to print the calendar from Sunday to Saturday. the $day_left and $day_right variables can squeeze the calendar. Set $day-left=2 and $day-right=6 to make a Monday-Friday calendar. Pass class name or names in the table_class param when you call the build_calendar template. Other classes that are automatically set are: every day td will include the cal_day class. td.today for a date that matches @today td.selected for a date that matches @selected div.day_head for the number at the top of each day Customize your calendar by creating a stylesheet to handle these classes and by overriding the named-template build_day_content. This template will be called with a single 'date' parameter which will contain the YYYY-MM-DD date. --> <!-- Change these variables by defining them in the stylesheet that imports this stylesheet. 1 is Sunday, 7 is Saturday. Display weekdays only by using day_left="2" day_right="6" --> <xsl:variable name="day_left" select="1" /> <xsl:variable name="day_right" select="7" /> <!-- The variables for day and month names precede templates that use them. --> <xsl:variable name="day_names" select="'Sunday Monday Tuesday WednesdayThursday Friday Saturday '" /> <xsl:template name="get_day_name"> <xsl:param name="ndx" /> <xsl:value-of select="normalize-space(substring($day_names,1+((($ndx)-1)*9),9))" /> </xsl:template> <xsl:variable name="month_names" select="'January February March April May June July August SeptemberOctober November December '" /> <xsl:template name="get_month_name"> <xsl:param name="ndx" /> <xsl:value-of select="substring($month_names,1+((($ndx)-1)*9),9)" /> </xsl:template> <xsl:template name="make_next_month"> <xsl:param name="month" /> <xsl:variable name="old_year" select="substring($month,1,4)" /> <xsl:variable name="newmonth" select="((substring($month,6,2)) mod 12) + 1" /> <xsl:variable name="year"> <xsl:choose> <xsl:when test="$newmonth=1"> <xsl:value-of select="($old_year)+1" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$old_year" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat($year,'-',substring((($newmonth)+100),2))" /> </xsl:template> <xsl:template name="make_day_heads"> <xsl:param name="day" select="$day_left" /> <xsl:variable name="day_name"> <xsl:call-template name="get_day_name"> <xsl:with-param name="ndx" select="$day" /> </xsl:call-template> </xsl:variable> <td class="cal_day_head"><xsl:value-of select="substring($day_name,1,3)" /></td> <xsl:if test="($day)+1 &lt;=($day_right)"> <xsl:call-template name="make_day_heads"> <xsl:with-param name="day" select="($day)+1" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name="build_day_content"> <xsl:param name="date" /> </xsl:template> <xsl:template name="build_day"> <xsl:param name="today" /> <xsl:param name="month" /> <xsl:param name="lastday" /> <xsl:param name="ndx" /> <xsl:param name="date" /> <xsl:if test="($ndx)&gt;=($day_left)"> <xsl:variable name="ddate"> <xsl:choose> <xsl:when test="$date &gt; $lastday"> <xsl:value-of select="(($date) - ($lastday))" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$date" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="zdate" select="substring((($ddate)+100),2)" /> <xsl:variable name="fulldate"> <xsl:choose> <xsl:when test="$ddate != $date"> <xsl:variable name="nextmonth"> <xsl:call-template name="make_next_month"> <xsl:with-param name="month" select="$month" /> </xsl:call-template> </xsl:variable> <xsl:value-of select="concat($nextmonth,'-',$zdate)" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($month,'-',$zdate)" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="classes"> <xsl:text>cal_day</xsl:text> <xsl:if test="$date!=$ddate"> <xsl:value-of select="' nextmonth'" /> </xsl:if> <xsl:if test="$fulldate=$today"> <xsl:value-of select="' today'" /> </xsl:if> </xsl:variable> <xsl:element name="td"> <xsl:if test="string-length($classes)"> <xsl:attribute name="class"> <xsl:value-of select="$classes" /> </xsl:attribute> </xsl:if> <xsl:if test="$date&gt;0 and $date&lt;=$lastday"> <xsl:attribute name="data-name"> <xsl:value-of select="$fulldate" /> </xsl:attribute> <div class="day_head"> <xsl:value-of select="$ddate" /> </div> <div class="day_content"> <xsl:call-template name="build_day_content"> <xsl:with-param name="date" select="$fulldate" /> </xsl:call-template> </div> </xsl:if> </xsl:element> </xsl:if> <xsl:if test="(($ndx)+1) &lt;= ($day_right)"> <xsl:call-template name="build_day"> <xsl:with-param name="today" select="$today" /> <xsl:with-param name="month" select="$month" /> <xsl:with-param name="lastday" select="$lastday" /> <xsl:with-param name="ndx" select="($ndx)+1" /> <xsl:with-param name="date" select="($date)+1" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name="build_weeks"> <xsl:param name="today" /> <xsl:param name="month" /> <xsl:param name="lastday" /> <xsl:param name="ndx" select="1" /> <xsl:param name="date" /> <tr> <xsl:call-template name="build_day"> <xsl:with-param name="today" select="$today" /> <xsl:with-param name="month" select="$month" /> <xsl:with-param name="lastday" select="$lastday" /> <xsl:with-param name="ndx" select="$ndx" /> <xsl:with-param name="date" select="$date" /> </xsl:call-template> </tr> <xsl:if test="($date)+7 &lt;= $lastday"> <xsl:call-template name="build_weeks"> <xsl:with-param name="today" select="$today" /> <xsl:with-param name="month" select="$month" /> <xsl:with-param name="lastday" select="$lastday" /> <xsl:with-param name="date" select="($date)+7" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="*" mode="build_calendar_head"> <xsl:variable name="ndx_month" select="number(substring(@month,6,2))" /> <xsl:variable name="ndx_year" select="number(substring(@month,1,4))" /> <xsl:variable name="str_month" select="substring(string(100+$ndx_month),2,2)" /> <xsl:variable name="month_next"> <xsl:variable name="mon" select="($ndx_month mod 12)+1" /> <xsl:variable name="year"> <xsl:choose> <xsl:when test="$mon &gt; $ndx_month"> <xsl:value-of select="$ndx_year" /> </xsl:when> <xsl:otherwise><xsl:value-of select="1 + $ndx_year" /></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat($year,'-',substring(string(100+$mon),2,2),'-01')" /> </xsl:variable> <xsl:variable name="month_last"> <xsl:variable name="mon" select="(($ndx_month+10) mod 12)+1" /> <xsl:variable name="year"> <xsl:choose> <xsl:when test="$mon &gt; $ndx_month"> <xsl:value-of select="-1+$ndx_year" /> </xsl:when> <xsl:otherwise><xsl:value-of select="$ndx_year" /></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat($year,'-',substring(string(100+$mon),2,2),'-01')" /> </xsl:variable> <xsl:variable name="year_next"> <xsl:value-of select="concat(1+$ndx_year,'-',$str_month,'-01')" /> </xsl:variable> <xsl:variable name="year_last"> <xsl:value-of select="concat(-1+$ndx_year,'-',$str_month,'-01')" /> </xsl:variable> <tr> <td colspan="2" class="calnav cn_left"> <xsl:element name="button"> <xsl:attribute name="type">button</xsl:attribute> <xsl:attribute name="data-type">calmove</xsl:attribute> <xsl:attribute name="data-jump"> <xsl:value-of select="$year_last" /> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="concat('last year (', $year_last, ')')" /> </xsl:attribute> <xsl:text> &lt;&lt;&lt; </xsl:text> </xsl:element> <xsl:element name="button"> <xsl:attribute name="type">button</xsl:attribute> <xsl:attribute name="data-type">calmove</xsl:attribute> <xsl:attribute name="data-jump"> <xsl:value-of select="$month_last" /> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="concat('last month (', $month_last, ')')" /> </xsl:attribute> <xsl:text> &lt; </xsl:text> </xsl:element> </td> <td colspan="3" class="cal_title"> <xsl:call-template name="get_month_name"> <xsl:with-param name="ndx" select="$ndx_month" /> </xsl:call-template> <xsl:value-of select="$ndx_year" /> </td> <td colspan="2" class="calnav cn_right"> <xsl:element name="button"> <xsl:attribute name="type">button</xsl:attribute> <xsl:attribute name="data-type">calmove</xsl:attribute> <xsl:attribute name="data-jump"> <xsl:value-of select="$month_next" /> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="concat('next month (', $month_next, ')')" /> </xsl:attribute> <xsl:text> &gt; </xsl:text> </xsl:element> <xsl:element name="button"> <xsl:attribute name="type">button</xsl:attribute> <xsl:attribute name="data-type">calmove</xsl:attribute> <xsl:attribute name="data-jump"> <xsl:value-of select="$year_next" /> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="concat('next year (', $year_next, ')')" /> </xsl:attribute> <xsl:text> &gt;&gt;&gt; </xsl:text> </xsl:element> </td> </tr> <tr> <xsl:call-template name="make_day_heads" /> </tr> </xsl:template> <xsl:template match="*[@month][@initialDay][@countOfDays]" mode="build_calendar"> <xsl:param name="table_class" /> <xsl:param name="sfw_class" select="'calendar'" /> <xsl:variable name="buttons" select="../buttons | ../schema/buttons" /> <xsl:variable name="class"> <xsl:text>Schema calendar</xsl:text> <xsl:if test="$table_class"> <xsl:value-of select="concat(' ',$table_class)" /> </xsl:if> </xsl:variable> <xsl:element name="table"> <xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute> <!-- Hard-code data-result attribute instead of handing off to add_result_attribute. --> <!-- <xsl:apply-templates select="." mode="add_result_attribute" /> --> <xsl:attribute name="data-result"> <xsl:apply-templates select="ancestor-or-self::*[@rndx]" mode="gen_path" /> </xsl:attribute> <xsl:apply-templates select=".." mode="add_sfw_class_attribute" /> <!-- schema is optional, so union with result: --> <xsl:apply-templates select="..|../schema" mode="add_on_click_attributes" /> <xsl:apply-templates select="../@calmove_base" mode="add_url_attribute" /> <thead> <xsl:apply-templates select="$buttons" mode="construct_buttons" /> <xsl:apply-templates select="." mode="build_calendar_head" /> </thead> <tbody> <xsl:call-template name="build_weeks"> <xsl:with-param name="today" select="@today" /> <xsl:with-param name="month" select="@month" /> <xsl:with-param name="lastday" select="@countOfDays" /> <xsl:with-param name="date" select="1-(@initialDay)" /> </xsl:call-template> </tbody> </xsl:element> </xsl:template> <xsl:template match="*[@month][@initialDay]" mode="make_dmdy"> <xsl:param name="date" /> <xsl:variable name="initialDay" select="@initialDay" /> <xsl:variable name="ref" select="@month" /> <xsl:variable name="yref" select="substring($ref,1,4)" /> <xsl:variable name="mref" select="substring($ref,6,2)" /> <xsl:variable name="ynum" select="substring($date,1,4)" /> <xsl:variable name="mnum" select="substring($date,6,2)" /> <xsl:variable name="dnum" select="substring($date,9,2)" /> <xsl:variable name="dow" select="(-1 + $dnum + $initialDay) mod 7" /> <xsl:call-template name="get_day_name"> <xsl:with-param name="ndx" select="$dow" /> </xsl:call-template> <xsl:text>, </xsl:text> <xsl:call-template name="get_month_name"> <xsl:with-param name="ndx" select="$mnum" /> </xsl:call-template> <xsl:value-of select="concat(' ',$dnum,' ',$ynum)" /> </xsl:template> <xsl:template match="calendar[@rndx]"> <xsl:apply-templates select="*[local-name()=current()/@row-name]" mode="build_calendar" /> </xsl:template> <xsl:template match="*[@sfw_refill_body][row[@month][@initialDay][@countOfDays]]"> <xsl:call-template name="build_weeks"> <xsl:with-param name="today" select="row/@today" /> <xsl:with-param name="month" select="row/@month" /> <xsl:with-param name="lastday" select="row/@countOfDays" /> <xsl:with-param name="date" select="1-(row/@initialDay)" /> </xsl:call-template> </xsl:template> <!-- This template (and comment) will be discarded when sfw_calendar.xsl is imported to a stylesheet that already includes <xsl:template match="/">. --> <xsl:template match="/"> <html> <head><title>Test Calendar</title></head> <body> <xsl:apply-templates select="*/*[@rndx='1']" mode="build_calendar" /> </body> </html> </xsl:template> </xsl:stylesheet>
<reponame>mayankmanj/acl2<filename>books/xdoc/classic/html-topic-index.xsl<gh_stars>100-1000 <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ; XDOC Documentation System for ACL2 ; Copyright (C) 2009-2011 Centaur Technology ; ; Contact: ; Centaur Technology Formal Verification Group ; 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA. ; http://www.centtech.com/ ; ; License: (An MIT/X11-style license) ; ; Permission is hereby granted, free of charge, to any person obtaining a ; copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation ; the rights to use, copy, modify, merge, publish, distribute, sublicense, ; and/or sell copies of the Software, and to permit persons to whom the ; Software is furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in ; all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ; DEALINGS IN THE SOFTWARE. ; ; Original author: <NAME> <<EMAIL>> html-topic-index.xsl This generates the hierarchical topic-navigator for both the two-frame and three-frame html versions. --> <xsl:include href="html-topic.xsl"/> <xsl:template match="page"> <html> <head> <title><xsl:value-of select="@name"/></title> <link rel="stylesheet" type="text/css" href="xdoc.css"/> <script type="text/javascript" src="xdoc.js"/> <base target="detail"/> </head> <body class="body_brief"> <!-- <h4>Organized Listing</h4> --> <dl class="index_brief"> <dt class="index_brief_dt"><a href="full-index.html">Full Index</a></dt> </dl> <div class="hindex_fix"> <xsl:apply-templates/> </div> </body> </html> </xsl:template> </xsl:stylesheet>
<transform xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0"/>
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <!-- The elements in this stylesheet (should) have no external dependencies. Ensure that any additions herein meet that criteria. --> <xsl:variable name="nl"><xsl:text> </xsl:text></xsl:variable> <!-- simple apostrophe --> <xsl:variable name="apos"><xsl:text>&apos;</xsl:text></xsl:variable> <!-- apostrophe,comma,apostrophe --> <xsl:variable name="aposcomapos">&apos;,&apos;</xsl:variable> <!-- apostrophe, apostrophe --> <xsl:variable name="apospair">&apos;&apos;</xsl:variable> <!-- apostrophe AKA: alias for apostrophe for later replacement --> <xsl:variable name="aposaka">&#xfffd;</xsl:variable> <!-- for changing case --> <xsl:variable name="lowers">abcdefghijklmnopqrstuvwxyz</xsl:variable> <xsl:variable name="uppers">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable> <!-- Within strings that are delimited with apostrophes, a double apostrophe --> <!-- often represents a single apostrophe in the represented string. This --> <!-- convention is widely used in CSV strings and database output. --> <!-- The template translate_apospairs creates a string where double apostrophes --> <!-- are converted into an untypeable alias character (DELETE (ascii 127) named --> <!-- $aposaka. The resulting string can use translate() to replace the $aposaka --> <!-- with a single apostrophe after the individual string has been extracted. --> <xsl:template name="translate_apospairs"> <!-- sfw_utilities.xsl --> <xsl:param name="str" /> <xsl:variable name="left" select="substring-before($str,$apospair)" /> <xsl:variable name="lenleft" select="string-length($left)" /> <xsl:choose> <xsl:when test="$lenleft=0"> <xsl:value-of select="$str" /> </xsl:when> <xsl:otherwise> <xsl:variable name="right" select="substring-after($str,$apospair)" /> <xsl:variable name="last_of_left" select="substring($left,$lenleft,1)" /> <xsl:variable name="first_of_right" select="substring($right,1,1)" /> <xsl:value-of select="$left" /> <!-- see what comes just before and just after the apostrophe pair --> <xsl:choose> <!-- pathological case ',''', keep first apos after comma, convert next two --> <xsl:when test="$last_of_left=',' and $first_of_right=$apos"> <xsl:value-of select="concat($apos,$aposaka)" /> <xsl:call-template name="translate_apospairs"> <xsl:with-param name="str" select="substring($right,2)" /> </xsl:call-template> </xsl:when> <!-- convert '' to single placeholder --> <xsl:otherwise> <xsl:value-of select="$aposaka" /> <xsl:call-template name="translate_apospairs"> <xsl:with-param name="str" select="$right" /> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Returns a path string for use in returning to the context element. --> <xsl:template match="*" mode="get_path"> <!-- sfw_utilities.xsl --> <xsl:if test="parent::*"> <xsl:apply-templates select="parent::*" mode="get_path" /> </xsl:if> <xsl:value-of select="concat('/', name())" /> <xsl:if test="name()='result'"> <xsl:value-of select="concat('[@rndx=', @rndx, ']')" /> </xsl:if> </xsl:template> <!-- Gets next element of a string that contains several items separated by '-' --> <xsl:template name="next_gid"> <!-- sfw_utilities.xsl --> <xsl:param name="gids" /> <xsl:if test="string-length($gids) &gt; 0"> <xsl:choose> <xsl:when test="contains($gids,'-')"> <xsl:value-of select="substring-before($gids,'-')" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$gids" /> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- The following variable and three templates will output a hierarchical view of the node or element selected with mode="dump". Call it from within a <pre> element. To customize the spacer-span, simply define it in the stylesheet that imports sfw_generics.xsl (this stylesheet) and the spacer-span variable in the importing stylesheet will take precedence. A possible useful alternative spacer-span value might be '. ' to more clearly indicate the indentation level. The process could be modified to translate certain entities that are not allowed in a pre element, or to output JSON. I'm leaving that for later if needed. --> <xsl:variable name="spacer-span" select="' '" /> <xsl:template name="spacer"> <xsl:param name="num" /> <xsl:if test="$num &gt; 0"> <xsl:value-of select="$spacer-span" /> <xsl:call-template name="spacer"> <xsl:with-param name="num" select="($num)-1" /> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="@*" mode="dump"> <xsl:param name="level" select="0" /> <xsl:variable name="spaces"> <xsl:call-template name="spacer"> <xsl:with-param name="num" select="($level)" /> </xsl:call-template> </xsl:variable> <xsl:value-of select="concat($spaces,local-name(),': ', .,$nl)" /> </xsl:template> <xsl:template match="*" mode="dump"> <xsl:param name="level" select="0" /> <xsl:variable name="spaces"> <xsl:call-template name="spacer"> <xsl:with-param name="num" select="($level)" /> </xsl:call-template> </xsl:variable> <xsl:value-of select="concat($nl,$spaces, local-name(), $nl)" /> <xsl:apply-templates select="@*" mode="dump"> <xsl:with-param name="level" select="($level)+1" /> </xsl:apply-templates> <xsl:apply-templates select="*" mode="dump"> <xsl:with-param name="level" select="($level)+1" /> </xsl:apply-templates> </xsl:template> </xsl:stylesheet>
<gh_stars>1-10 <xsl:if test="condition"> <!-- executed if XPath expression evaluates to true --> </xsl:if>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <xsl:element name="METADATA"> <xsl:element name="TAXONOMY_ENTRIES"> <xsl:for-each select="METADATA/TAXONOMY_ENTRIES/TAXONOMY_ENTRY"> <TAXONOMY_ENTRY> <xsl:attribute name="CATEGORY"><xsl:value-of select="@CATEGORY"/></xsl:attribute> <xsl:attribute name="ENTRY"><xsl:value-of select="@ENTRY"/></xsl:attribute> <xsl:attribute name="URI"><xsl:value-of select="@URI"/></xsl:attribute> <xsl:attribute name="TYPE"><xsl:value-of select="@TYPE"/></xsl:attribute> <xsl:attribute name="VISIBLE"><xsl:value-of select="@VISIBLE"/></xsl:attribute> <xsl:attribute name="ACTION"><xsl:value-of select="@ACTION"/></xsl:attribute> <xsl:attribute name="ICONURI"><xsl:value-of select="@ICONURI"/></xsl:attribute> <xsl:attribute name="APPLICATIONROOT"><xsl:value-of select="@APPLICATIONROOT"/></xsl:attribute> <xsl:attribute name="INSERTBEFORE"><xsl:value-of select="@INSERTBEFORE"/></xsl:attribute> <xsl:attribute name="TITLE"><xsl:value-of select="TITLE"/></xsl:attribute> <xsl:attribute name="DESCRIPTION"><xsl:value-of select="DESCRIPTION"/></xsl:attribute> <xsl:apply-templates select="KEYWORD"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </TAXONOMY_ENTRY> </xsl:for-each> </xsl:element> <xsl:element name="HELPIMAGE"> <xsl:apply-templates select="METADATA/STOPSIGN_ENTRIES/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="APPLICATION_ENTRIES"> <xsl:apply-templates select="METADATA/STOPSIGN_ENTRIES/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="STOPSIGN_ENTRIES"> <xsl:apply-templates select="METADATA/STOPSIGN_ENTRIES/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="STOPWORD_ENTRIES"> <xsl:apply-templates select="METADATA/STOPWORD_ENTRIES/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="INDEX"> <xsl:apply-templates select="METADATA/INDEX/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="FTS"> <xsl:apply-templates select="METADATA/FTS/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> <xsl:element name="OPERATOR_ENTRIES"> <xsl:apply-templates select="METADATA/OPERATOR_ENTRIES/*"> <xsl:template><xsl:copy><xsl:apply-templates select="@* | * | comment() | pi() | text()"/></xsl:copy></xsl:template> </xsl:apply-templates> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common"> <!-- Use the same general colors for primary colors and mapped colors, (e.g colors of bus standards) as the diagrams --> <xsl:include href="MdtSvgDiag_Colors.xsl"/> <xsl:variable name="COL_INFO" select="'#2233FF'"/> <xsl:variable name="COL_ATTR_BUF" select="'#FF5555'"/> <xsl:variable name="COL_ATTR_CLK" select="'#22FF22'"/> <xsl:variable name="COL_ATTR_INT" select="'#5555FF'"/> <xsl:variable name="COL_ATTR_RST" select="'#FFCC00'"/> <xsl:variable name="COL_CHG_USR" select="'#FFFFAA'"/> <xsl:variable name="COL_CHG_SYS" select="'#AAAAFF'"/> <!-- <xsl:variable name="COL_MODSYSNW" select="'#000099'"/> --> </xsl:stylesheet>
<gh_stars>10-100 <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <!-- =============== xsl scripts =============== --> <xsl:script> <![CDATA[ function HasChildren(e) { if (e.selectSingleNode("./node")) return 1; return 0; } function ChooseColor(d) { d6 = (d-2) % 6; if (d6 == 0) return "ffe0e0"; if (d6 == 1) return "e0ffff"; if (d6 == 2) return "ffe0ff"; if (d6 == 3) return "e0ffe0"; if (d6 == 4) return "e0e0ff"; return "ffffe0"; } ]]> </xsl:script> <!-- ============================================= --> <!-- =============== MAIN TEMPLATE =============== --> <!-- ============================================= --> <xsl:template match="/"> <html> <head> <style> <![CDATA[ body { font-family:verdana; font-size:11 } div { padding-left:10; padding-right:3; padding-top:2; padding-bottom:3; cursor:default } div.help { background-color:f0f0c0; font-size:9; text-decoration:underline } div.showHelp { padding:15; font-size:12; text-decoration:none } div.file { font-weight:bold; font-size:13; padding-left:0; padding-right:0; padding-bottom:8 } div.extra { padding-left:14; padding-top:0; font-size:10 } span.class { font-weight:bold; } span.extraToggle { background-color:f0f0c0; cursor:hand; width:10; font-weight:bold; font-size:11; text-align:center } span.children { font-size:9 } span.label { } span.flags { } span.size { font-size:9 } span.this { } /* display tree specific */ span.tag { background-color:e0e0c0; font-style:italic; font-weight:bold } span.rcVis { } span.rcContainer { } span.zindex { } span.rcUserClip { } span.scroll { } span.scrollbar { } span.border { } span.inset { } span.extraCookie { } span.contentOrigin { } pre.content { margin-top:0; margin-bottom:0; background-color:f0f0d0; display:inline } ]]> </style> <script> <xsl:comment> <![CDATA[ // recursively show or hide an entire subtree rooted at element e function SetDisplay(e, display) { e.style.display = display; var elem = e.children.tags('DIV'); var i = 0; while (elem.length > i) { var className = elem[i].className; if (className == 'node') { SetDisplay(elem[i], display); } i++; } } // recursive show or hide all extra node information for the subtree rooted at element e function SetExtra(e, display) { var elem = e.children.tags('SPAN'); var i = 0; while (i < elem.length) { if (elem[i].className == 'extraToggle') { elem[i].innerText = display == '' ? '-' : '+'; break; } i++; } elem = e.children.tags('DIV'); i = 0; while (i < elem.length) { var className = elem[i].className; if (className == 'extra') { elem[i].style.display = display; } if (className == 'node') { SetExtra(elem[i], display); } i++; } } // process clicks to show or hide nodes or extra node information function OnClick() { var srcElem = event.srcElement; var clickElem = srcElem; // check for extra node information toggle if (srcElem && srcElem.className == 'extraToggle') { srcElem = srcElem.parentElement; if (srcElem && srcElem.className == 'node') { var elem = srcElem.children.tags('DIV'); if (elem.length > 0 && elem[0].className == 'extra') { // toggle extra info in whole subtree if ctrl or shift key is down var display = elem[0].style.display == '' ? 'none' : ''; if (window.event.ctrlKey || window.event.shiftKey) SetExtra(srcElem, display); else { elem[0].style.display = display; clickElem.innerText = display == '' ? '-' : '+'; } } } return; } // find the node that contains this click while (srcElem && srcElem.className != 'node') { srcElem = srcElem.parentElement; } if (srcElem && srcElem.className == 'node') { var elem = srcElem.children.tags('DIV'); var i = 0; while (elem.length > i) { var className = elem[i].className; if (className == 'node') { // toggle display of whole subtree if ctrl or shift key is down var display = elem[i].style.display == '' ? 'none' : ''; if (window.event.ctrlKey || window.event.shiftKey) SetDisplay(elem[i], display); else elem[i].style.display = display; } i++; } } } // toggle display of help function ToggleHelp() { var srcElem = event.srcElement; while (srcElem && srcElem.className != 'help') { srcElem = srcElem.parentElement; } if (srcElem && srcElem.className == 'help') { var elem = srcElem.children.tags('DIV'); if (elem.length > 0 && elem[0].className == 'showHelp') { elem[0].style.display = elem[0].style.display == '' ? 'none' : ''; } } } // disallow all text selection function OnSelectStart() { window.event.returnValue = false; } ]]> </xsl:comment> </script> </head> <body onclick="OnClick()" onselectstart="OnSelectStart()"> <xsl:apply-templates select="treedump/file"/> <xsl:apply-templates select="treedump/help"/> <hr/> <xsl:apply-templates select="treedump/node"/> </body> </html> </xsl:template> <!-- =============== help template =============== --> <xsl:template match="help"> <div class="help" onclick="ToggleHelp()"> Click here for help... <div class="showHelp" style="display:none"> Click on a node to toggle display of children. Shift-click to toggle display of entire subtree.<br/> <xsl:value-of select="."/> </div> </div> </xsl:template> <!-- =============== file template =============== --> <xsl:template match="file"> <div class="file"> <xsl:value-of select="."/> </div> </xsl:template> <!-- =============== node template =============== --> <xsl:template match="node"> <!-- change background color at every new level of the tree --> <div class="node"> <xsl:attribute name="STYLE"> background-color: <xsl:eval>ChooseColor(depth(this))</xsl:eval>; </xsl:attribute> <!-- interior nodes get a hand cursor to indicate that a click will do something --> <xsl:if test="node"> <xsl:attribute name="STYLE"> cursor:hand; </xsl:attribute> </xsl:if> <!-- the following test determines how many levels of the tree are shown initially --> <xsl:if expr="depth(this) &gt; 4"> <xsl:attribute name="STYLE"> display:none; </xsl:attribute> </xsl:if> <!-- number children at this level of the tree --> <xsl:eval>formatIndex(childNumber(this), "1")</xsl:eval>. <!-- show class name of this node --> <xsl:apply-templates select="./class"/> <!-- indicate the number of children belonging to this node --> <xsl:if test="node"> <span class="children"> <xsl:entity-ref name="nbsp"/> (<xsl:eval>selectNodes("node").length</xsl:eval>) </span> </xsl:if> <!-- show the HTML tag corresponding to this display node --> <xsl:apply-templates select="tag"/> <br/> <!-- show a little text corresponding to this display node --> <xsl:apply-templates select="content"/> <!-- add toggle button for additional node info --> <span class="extraToggle">+</span> <!-- show basic tree flags and display tree flags --> <xsl:if test="flags"> <span class="label"> flags: </span> <span class="flags"> <xsl:for-each select="flags"><xsl:value-of/> </xsl:for-each> </span> </xsl:if> <!-- extra information that can be shown for specific display node subclasses --> <div class="extra" style="display:none"> <xsl:apply-templates select="this"/> <xsl:apply-templates select="rcVis"/> <xsl:apply-templates select="rcContainer"/> <xsl:apply-templates select="contentOrigin"/> <xsl:apply-templates select="zindex"/> <xsl:apply-templates select="rcUserClip"/> <xsl:apply-templates select="scroll"/> <xsl:apply-templates select="scrollbar"/> <xsl:apply-templates select="border"/> <xsl:apply-templates select="inset"/> <xsl:apply-templates select="extraCookie"/> <xsl:apply-templates select="size"/> </div> <!-- now process children --> <xsl:apply-templates select="node"/> </div> </xsl:template> <!-- =============== class template =============== --> <xsl:template match="class"> <span class="class"> <xsl:if expr="HasChildren(parentNode)"> <xsl:attribute name="STYLE"> text-decoration:underline; </xsl:attribute> </xsl:if> <xsl:value-of select="."/> </span> </xsl:template> <!-- =============== this template =============== --> <xsl:template match="this"> <span class="label"> this: </span> <span class="this"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== size template =============== --> <xsl:template match="size"> <span class="size"> (<xsl:value-of select="."/> bytes) </span> <br/> </xsl:template> <!-- =============================================================== --> <!-- =============== DISPLAY TREE SPECIFIC TEMPLATES =============== --> <!-- =============================================================== --> <!-- =============== tag template =============== --> <xsl:template match="tag"> <xsl:entity-ref name="nbsp"/> <span class="tag"> &lt;<xsl:value-of select="."/>&gt; </span> </xsl:template> <!-- =============== content template =============== --> <xsl:template match="content"> <xsl:entity-ref name="nbsp"/> <xsl:entity-ref name="nbsp"/> <pre class="content"> <xsl:value-of select="."/> </pre> </xsl:template> <!-- =============== rcVis template =============== --> <xsl:template match="rcVis"> <span class="label"> rcVis: </span> <span class="rcVis"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== rcContainer template =============== --> <xsl:template match="rcContainer"> <span class="label"> rcContainer: </span> <span class="rcContainer"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== zindex template =============== --> <xsl:template match="zindex"> <span class="label"> z-index: </span> <span class="zindex"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== rcUserClip template =============== --> <xsl:template match="rcUserClip"> <span class="label"> rcUserClip: </span> <span class="rcUserClip"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== scroll template =============== --> <xsl:template match="scroll"> <span class="label"> scroll: </span> <span class="scroll"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== scrollbar template =============== --> <xsl:template match="scrollbar"> <span class="label"> <xsl:value-of select="@dir"/> scrollbar: </span> <span class="scrollbar"> width=<xsl:value-of select="@width"/> <xsl:if test=".[not(@visible)]">!</xsl:if>visible <xsl:if test=".[not(@force)]">!</xsl:if>force </span> <br/> </xsl:template> <!-- =============== border template =============== --> <xsl:template match="border"> <span class="label"> <xsl:if test="@uniform">uniform</xsl:if> border: </span> <span class="border"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== inset template =============== --> <xsl:template match="inset"> <span class="label"> inset: </span> <span class="inset"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== extraCookie template =============== --> <xsl:template match="extraCookie"> <span class="label"> extraCookie: </span> <span class="extraCookie"> <xsl:value-of select="."/> </span> <br/> </xsl:template> <!-- =============== contentOrigin template =============== --> <xsl:template match="contentOrigin"> <span class="label"> content origin: </span> <span class="contentOrigin"> <xsl:value-of select="."/> </span> <br/> </xsl:template> </xsl:stylesheet>
<gh_stars>1-10 <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:tour="http://www.seanbdurkin.id.au/tour" exclude-result-prefixes="xsl fn xs tour"> <xsl:use-package name="tour:tours" /> <xsl:output indent="yes" encoding="UTF-8" omit-xml-declaration="yes" /> <xsl:mode on-no-match="shallow-copy" streamable="yes"/> <xsl:template match="knight[square]"> <xsl:variable name="error"> <error>Failed to find solution to Knight's Tour.</error> </xsl:variable> <xsl:copy> <xsl:copy-of select=" let $final-state := tour:solve-tour(( function( $piece-position as element(square)) as element(square)* { (: This function defines a knight's move. :) let $r0 := number( $piece-position/@rank), let $f0 := number( $piece-position/@file), for $r in -2..2, $f in -2..2 return if (abs($r) + abs($f) eq 3) and tour:on-board($r+$r0, $f+$f0) then tour:manufacture-square($r+$r0, $f+$f0) else () } , current()/square)), $solution := $final-state/self::square return if count($solution) eq 64 then $solution else $error/*" /> </xsl:copy> </xsl:template> <!-- Add templates for other piece types if you want to solve their tours too. Solve by calling tour:solve-tour() . --> </xsl:stylesheet>
<gh_stars>1-10 <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- bottles.xsl defines $entire-bottles-song --> <xsl:import href="bottles.xsl"/> <xsl:output method="text" encoding="utf-8"/> <xsl:variable name="hello-world"> <xsl:text>Hello, world!&#10;</xsl:text> </xsl:variable> <!-- Main template --> <xsl:template match="/"> <xsl:call-template name="run"> <xsl:with-param name="code" select="string(.)"/> </xsl:call-template> </xsl:template> <!-- Runs HQ9+ code from string starting at given index (default 1) --> <xsl:template name="run"> <xsl:param name="code"/> <xsl:param name="starting-at" select="1"/> <!-- Fetches instruction and forces to upper-case --> <xsl:variable name="inst" select="translate(substring($code, $starting-at, 1), 'hq', 'HQ')"/> <!-- Only if not at end --> <xsl:if test="$inst != ''"> <xsl:choose> <xsl:when test="$inst = 'H'"> <xsl:value-of select="$hello-world"/> </xsl:when> <xsl:when test="$inst = 'Q'"> <xsl:value-of select="$code"/> <xsl:text>&#10;</xsl:text> </xsl:when> <xsl:when test="$inst = '9'"> <xsl:value-of select="$entire-bottles-song"/> </xsl:when> <xsl:when test="$inst = '+'"> <!-- XSLT has no meaningful equivalent of write-only variables --> </xsl:when> <!-- Otherwise, do nothing --> </xsl:choose> <!-- Proceed with next instruction --> <xsl:call-template name="run"> <xsl:with-param name="code" select="$code"/> <xsl:with-param name="starting-at" select="$starting-at + 1"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2013 by the author(s) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Author(s): <NAME> <<EMAIL>> ================================================================================ Convert a OpTiMSoC System Description XML into its generic representation The OpTiMSoC System Description XML provides two way of describing a NoC: a) A generic way, which describes each router and all NoC links separately. This form is rather verbose (to cover all edge cases). b) A simplified form to describe a well-known interconnect structure, e.g. a mesh. This simplified form can then be converted automatically into the generic form. This way any application only needs to be able to read the generic form, all other forms are automatically converted. This stylesheet does the conversion from the simplified form to the generic form. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:optimsoc="http://www.optimsoc.org/xmlns/optimsoc-system" xmlns="http://www.optimsoc.org/xmlns/optimsoc-system" xmlns:svg="http://www.w3.org/2000/svg"> <xsl:output method="xml" indent="yes" encoding="utf-8"/> <xsl:include href="mesh-to-svg.xsl"/> <!-- Identity transform Copy everything not overwritten below into the output document. --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!-- Autogenerate the NoC layout for known NoC types --> <xsl:template match="optimsoc:layout[@autogen]"> <layout> <xsl:choose> <xsl:when test="/optimsoc:system/optimsoc:meshnoc"> <xsl:call-template name="svg-mesh"/> </xsl:when> <xsl:otherwise> <xsl:message terminate="yes"> Error: Unable to auto-generate NoC layout. </xsl:message> </xsl:otherwise> </xsl:choose> </layout> </xsl:template> <!-- Mesh NoC to Generic NoC transformation This transformation replaces the optimsoc:meshnoc element, which is a convenience method for defining a mesh NoC, with a optimsoc:genericnoc element, which is the generic case of defining a network structure. Since the generic NoC is more verbose (since it needs to cover all special cases) the optimsoc:meshnoc element provides a quick alternative when manually creating a mesh. --> <xsl:template match="optimsoc:meshnoc"> <optimsoc:genericnoc> <optimsoc:routers> <xsl:call-template name="insert-router"> <xsl:with-param name="x" select="0"/> <xsl:with-param name="y" select="0"/> <xsl:with-param name="xdim" select="@xdim"/> <xsl:with-param name="ydim" select="@ydim"/> </xsl:call-template> </optimsoc:routers> <optimsoc:links> <xsl:call-template name="insert-router-links-horizontal"> <xsl:with-param name="x" select="0"/> <xsl:with-param name="y" select="0"/> <xsl:with-param name="xdim" select="@xdim"/> <xsl:with-param name="ydim" select="@ydim"/> </xsl:call-template> <xsl:call-template name="insert-router-links-vertical"> <xsl:with-param name="x" select="0"/> <xsl:with-param name="y" select="0"/> <xsl:with-param name="xdim" select="@xdim"/> <xsl:with-param name="ydim" select="@ydim"/> </xsl:call-template> <xsl:apply-templates select="optimsoc:locallinks"/> </optimsoc:links> </optimsoc:genericnoc> </xsl:template> <!-- Insert a single mesh NoC router --> <xsl:template name="insert-router"> <xsl:param name="x"/> <xsl:param name="y"/> <xsl:param name="xdim"/> <xsl:param name="ydim"/> <optimsoc:router> <xsl:attribute name="id"><xsl:value-of select="concat('r', $x, $y)"/></xsl:attribute> <optimsoc:ports> <xsl:if test="$x != 0"> <optimsoc:port name="west"/> </xsl:if> <xsl:if test="$x != ($xdim - 1)"> <optimsoc:port name="east"/> </xsl:if> <xsl:if test="$y != 0"> <optimsoc:port name="north"/> </xsl:if> <xsl:if test="$y != ($ydim - 1)"> <optimsoc:port name="south"/> </xsl:if> <optimsoc:port name="local"/> </optimsoc:ports> </optimsoc:router> <xsl:if test="$x &lt; ($xdim - 1)"> <xsl:call-template name="insert-router"> <xsl:with-param name="x" select="$x + 1"/> <xsl:with-param name="y" select="$y"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> <xsl:if test="$x = ($xdim - 1) and $y &lt; ($ydim - 1)"> <xsl:call-template name="insert-router"> <xsl:with-param name="x" select="0"/> <xsl:with-param name="y" select="$y + 1"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- Insert the horizontal inter-router links (east-west) --> <xsl:template name="insert-router-links-horizontal"> <xsl:param name="x"/> <xsl:param name="y"/> <xsl:param name="xdim"/> <xsl:param name="ydim"/> <optimsoc:link> <optimsoc:con> <optimsoc:routercon port="east"> <xsl:attribute name="router"><xsl:value-of select="concat('r', $x, $y)"/></xsl:attribute> </optimsoc:routercon> </optimsoc:con> <optimsoc:con> <optimsoc:routercon port="west"> <xsl:attribute name="router"><xsl:value-of select="concat('r', $x + 1, $y)"/></xsl:attribute> </optimsoc:routercon> </optimsoc:con> </optimsoc:link> <xsl:if test="$x &lt; ($xdim - 2)"> <xsl:call-template name="insert-router-links-horizontal"> <xsl:with-param name="x" select="$x + 1"/> <xsl:with-param name="y" select="$y"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> <xsl:if test="$x = ($xdim - 2) and $y &lt; ($ydim - 1)"> <xsl:call-template name="insert-router-links-horizontal"> <xsl:with-param name="x" select="0"/> <xsl:with-param name="y" select="$y + 1"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- Insert the vertical inter-router links (north-south) --> <xsl:template name="insert-router-links-vertical"> <xsl:param name="x"/> <xsl:param name="y"/> <xsl:param name="xdim"/> <xsl:param name="ydim"/> <optimsoc:link> <optimsoc:con> <optimsoc:routercon port="south"> <xsl:attribute name="router"><xsl:value-of select="concat('r', $x, $y)"/></xsl:attribute> </optimsoc:routercon> </optimsoc:con> <optimsoc:con> <optimsoc:routercon port="north"> <xsl:attribute name="router"><xsl:value-of select="concat('r', $x, $y + 1)"/></xsl:attribute> </optimsoc:routercon> </optimsoc:con> </optimsoc:link> <xsl:if test="$y &lt; ($ydim - 2)"> <xsl:call-template name="insert-router-links-vertical"> <xsl:with-param name="x" select="$x"/> <xsl:with-param name="y" select="$y + 1"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> <xsl:if test="$y = ($ydim - 2) and $x &lt; ($xdim - 1)"> <xsl:call-template name="insert-router-links-vertical"> <xsl:with-param name="x" select="$x + 1"/> <xsl:with-param name="y" select="0"/> <xsl:with-param name="xdim" select="$xdim"/> <xsl:with-param name="ydim" select="$ydim"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- Convert local links from the convenience connections to generic connections --> <xsl:template match="optimsoc:locallinks"> <xsl:apply-templates select="optimsoc:locallink"/> </xsl:template> <xsl:template match="optimsoc:locallink"> <optimsoc:link> <xsl:apply-templates select="optimsoc:con"/> </optimsoc:link> </xsl:template> <xsl:template match="optimsoc:meshroutercon"> <optimsoc:routercon port="local"> <xsl:attribute name="router"><xsl:value-of select="concat('r', @x, @y)"/></xsl:attribute> </optimsoc:routercon> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:variable name="license-locale"> <xsl:value-of select="/answers/locale" /> </xsl:variable> <xsl:template name="license-jurisdiction"> <xsl:param name="jurisdiction" /> <xsl:choose> <xsl:when test="$jurisdiction='' or $jurisdiction='-'"> <xsl:choose> <xsl:when test="$license-locale='az' ">Unported</xsl:when> <xsl:when test="$license-locale='el' ">Unported</xsl:when> <xsl:when test="$license-locale='eo' ">Unported</xsl:when> <xsl:when test="$license-locale='en' ">Unported</xsl:when> <xsl:when test="$license-locale='es_PR' ">Unported</xsl:when> <xsl:when test="$license-locale='af' ">Unported</xsl:when> <xsl:when test="$license-locale='vi' ">Unported</xsl:when> <xsl:when test="$license-locale='ca' ">No adaptada</xsl:when> <xsl:when test="$license-locale='it' ">Unported</xsl:when> <xsl:when test="$license-locale='eu' ">Unported</xsl:when> <xsl:when test="$license-locale='es_PE' ">Unported</xsl:when> <xsl:when test="$license-locale='bg' ">Нелокализиран</xsl:when> <xsl:when test="$license-locale='en_US' ">Unported</xsl:when> <xsl:when test="$license-locale='ga' ">Unported</xsl:when> <xsl:when test="$license-locale='en_SG' ">Unported</xsl:when> <xsl:when test="$license-locale='cs' ">Unported</xsl:when> <xsl:when test="$license-locale='zh' ">Unported</xsl:when> <xsl:when test="$license-locale='en_HK' ">Unported</xsl:when> <xsl:when test="$license-locale='gl' ">Unported</xsl:when> <xsl:when test="$license-locale='id' ">Unported</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Unported</xsl:when> <xsl:when test="$license-locale='de_CH' ">Unported</xsl:when> <xsl:when test="$license-locale='es_MX' ">Unported</xsl:when> <xsl:when test="$license-locale='es_GT' ">Unported</xsl:when> <xsl:when test="$license-locale='nl' ">Unported</xsl:when> <xsl:when test="$license-locale='pt' ">Unported</xsl:when> <xsl:when test="$license-locale='no' ">Unported</xsl:when> <xsl:when test="$license-locale='es_EC' ">Unported</xsl:when> <xsl:when test="$license-locale='nso' ">Unported</xsl:when> <xsl:when test="$license-locale='es_CO' ">Unported</xsl:when> <xsl:when test="$license-locale='es_CL' ">Unported</xsl:when> <xsl:when test="$license-locale='tr' ">Unported</xsl:when> <xsl:when test="$license-locale='es' ">Unported</xsl:when> <xsl:when test="$license-locale='de_AT' ">Unported</xsl:when> <xsl:when test="$license-locale='es_AR' ">Unported</xsl:when> <xsl:when test="$license-locale='zu' ">Unported</xsl:when> <xsl:when test="$license-locale='ro' ">Ne-adaptată</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Unported</xsl:when> <xsl:when test="$license-locale='en_GB' ">Unported</xsl:when> <xsl:when test="$license-locale='en_CA' ">Unported</xsl:when> <xsl:when test="$license-locale='fr' ">Unported</xsl:when> <xsl:when test="$license-locale='hy' ">Unported</xsl:when> <xsl:when test="$license-locale='th' ">ต้นฉบับ</xsl:when> <xsl:when test="$license-locale='hr' ">neloklizirana licenca</xsl:when> <xsl:when test="$license-locale='zh_TW' ">Unported</xsl:when> <xsl:when test="$license-locale='da' ">Unported</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Unported</xsl:when> <xsl:when test="$license-locale='fi' ">Muokkaamaton</xsl:when> <xsl:when test="$license-locale='hu' ">Unported</xsl:when> <xsl:when test="$license-locale='ja' ">Unported</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Unported</xsl:when> <xsl:when test="$license-locale='he' ">לא מותאם</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Unported</xsl:when> <xsl:when test="$license-locale='de' ">Unported</xsl:when> <xsl:when test="$license-locale='sr' ">Unported</xsl:when> <xsl:when test="$license-locale='ko' ">Unported</xsl:when> <xsl:when test="$license-locale='sv' ">Unported</xsl:when> <xsl:when test="$license-locale='mk' ">Unported</xsl:when> <xsl:when test="$license-locale='st' ">Unported</xsl:when> <xsl:when test="$license-locale='zh_HK' ">通用版</xsl:when> <xsl:when test="$license-locale='it_CH' ">Unported</xsl:when> <xsl:when test="$license-locale='pl' ">Unported</xsl:when> <xsl:when test="$license-locale='ms' ">Unported</xsl:when> <xsl:when test="$license-locale='sl' ">Nedoločena</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ar' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Argentina</xsl:when> <xsl:when test="$license-locale='el' ">Αργεντινή</xsl:when> <xsl:when test="$license-locale='eo' ">Argentino</xsl:when> <xsl:when test="$license-locale='en' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_PR' ">Argentina</xsl:when> <xsl:when test="$license-locale='af' ">Argentinië</xsl:when> <xsl:when test="$license-locale='vi' ">Argentina</xsl:when> <xsl:when test="$license-locale='ca' ">Argentina</xsl:when> <xsl:when test="$license-locale='it' ">Argentina</xsl:when> <xsl:when test="$license-locale='eu' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_PE' ">Argentina</xsl:when> <xsl:when test="$license-locale='bg' ">Аржентина</xsl:when> <xsl:when test="$license-locale='en_US' ">Argentina</xsl:when> <xsl:when test="$license-locale='ga' ">Argentina</xsl:when> <xsl:when test="$license-locale='en_SG' ">Argentina</xsl:when> <xsl:when test="$license-locale='cs' ">Argentina</xsl:when> <xsl:when test="$license-locale='zh' ">阿根廷</xsl:when> <xsl:when test="$license-locale='en_HK' ">Argentina</xsl:when> <xsl:when test="$license-locale='gl' ">Argentina</xsl:when> <xsl:when test="$license-locale='id' ">Argentina</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Argentina</xsl:when> <xsl:when test="$license-locale='de_CH' ">Argentinien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_GT' ">Argentina</xsl:when> <xsl:when test="$license-locale='nl' ">Argentinië</xsl:when> <xsl:when test="$license-locale='pt' ">Argentina</xsl:when> <xsl:when test="$license-locale='no' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_EC' ">Argentina</xsl:when> <xsl:when test="$license-locale='nso' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_CO' ">Argentina</xsl:when> <xsl:when test="$license-locale='es_CL' ">Argentina</xsl:when> <xsl:when test="$license-locale='tr' ">Argentina</xsl:when> <xsl:when test="$license-locale='es' ">Argentina</xsl:when> <xsl:when test="$license-locale='de_AT' ">Argentinien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Argentina</xsl:when> <xsl:when test="$license-locale='zu' ">E-Argentina</xsl:when> <xsl:when test="$license-locale='ro' ">Argentina</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Argentina</xsl:when> <xsl:when test="$license-locale='en_GB' ">Argentina</xsl:when> <xsl:when test="$license-locale='en_CA' ">Argentina</xsl:when> <xsl:when test="$license-locale='fr' ">Argentine</xsl:when> <xsl:when test="$license-locale='hy' ">Argentina</xsl:when> <xsl:when test="$license-locale='th' ">อาร์เจนตินา</xsl:when> <xsl:when test="$license-locale='hr' ">Argentina</xsl:when> <xsl:when test="$license-locale='zh_TW' ">阿根廷</xsl:when> <xsl:when test="$license-locale='da' ">Argentina</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Argentine</xsl:when> <xsl:when test="$license-locale='fi' ">Argentiina</xsl:when> <xsl:when test="$license-locale='hu' ">Argentína</xsl:when> <xsl:when test="$license-locale='ja' ">アルゼンチン</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Argentine</xsl:when> <xsl:when test="$license-locale='he' ">ארגנטינה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Argentine</xsl:when> <xsl:when test="$license-locale='de' ">Argentinien</xsl:when> <xsl:when test="$license-locale='sr' ">Аргентина</xsl:when> <xsl:when test="$license-locale='ko' ">Argentina</xsl:when> <xsl:when test="$license-locale='sv' ">Argentina</xsl:when> <xsl:when test="$license-locale='mk' ">Аргентина</xsl:when> <xsl:when test="$license-locale='st' ">Argentina</xsl:when> <xsl:when test="$license-locale='zh_HK' ">阿根廷</xsl:when> <xsl:when test="$license-locale='it_CH' ">Argentina</xsl:when> <xsl:when test="$license-locale='pl' ">Argentyna</xsl:when> <xsl:when test="$license-locale='ms' ">Argentina</xsl:when> <xsl:when test="$license-locale='sl' ">Argentina</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='au' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Australia</xsl:when> <xsl:when test="$license-locale='el' ">Αυστραλία</xsl:when> <xsl:when test="$license-locale='eo' ">Aŭstralio</xsl:when> <xsl:when test="$license-locale='en' ">Australia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Australia</xsl:when> <xsl:when test="$license-locale='af' ">Australië</xsl:when> <xsl:when test="$license-locale='vi' ">Australia</xsl:when> <xsl:when test="$license-locale='ca' ">Austràlia</xsl:when> <xsl:when test="$license-locale='it' ">Australia</xsl:when> <xsl:when test="$license-locale='eu' ">Australia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Australia</xsl:when> <xsl:when test="$license-locale='bg' ">Австралия</xsl:when> <xsl:when test="$license-locale='en_US' ">Australia</xsl:when> <xsl:when test="$license-locale='ga' ">Australia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Australia</xsl:when> <xsl:when test="$license-locale='cs' ">Australia</xsl:when> <xsl:when test="$license-locale='zh' ">澳大利亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Australia</xsl:when> <xsl:when test="$license-locale='gl' ">Australia</xsl:when> <xsl:when test="$license-locale='id' ">Australia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Australija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Australien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Australia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Australia</xsl:when> <xsl:when test="$license-locale='nl' ">Australië</xsl:when> <xsl:when test="$license-locale='pt' ">Austrália</xsl:when> <xsl:when test="$license-locale='no' ">Australia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Australia</xsl:when> <xsl:when test="$license-locale='nso' ">Australia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Australia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Australia</xsl:when> <xsl:when test="$license-locale='tr' ">Australia</xsl:when> <xsl:when test="$license-locale='es' ">Australia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Australien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Australia</xsl:when> <xsl:when test="$license-locale='zu' ">e-Australia</xsl:when> <xsl:when test="$license-locale='ro' ">Australia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Austrália</xsl:when> <xsl:when test="$license-locale='en_GB' ">Australia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Australia</xsl:when> <xsl:when test="$license-locale='fr' ">Australie</xsl:when> <xsl:when test="$license-locale='hy' ">Australia</xsl:when> <xsl:when test="$license-locale='th' ">ออสเตรเลีย</xsl:when> <xsl:when test="$license-locale='hr' ">Australija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">澳大利亞</xsl:when> <xsl:when test="$license-locale='da' ">Australien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Australie</xsl:when> <xsl:when test="$license-locale='fi' ">Australia</xsl:when> <xsl:when test="$license-locale='hu' ">Ausztrália</xsl:when> <xsl:when test="$license-locale='ja' ">オーストリア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Australie</xsl:when> <xsl:when test="$license-locale='he' ">אוסטרליה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Australie</xsl:when> <xsl:when test="$license-locale='de' ">Australien</xsl:when> <xsl:when test="$license-locale='sr' ">Аустралија</xsl:when> <xsl:when test="$license-locale='ko' ">Australia</xsl:when> <xsl:when test="$license-locale='sv' ">Australien</xsl:when> <xsl:when test="$license-locale='mk' ">Австралија</xsl:when> <xsl:when test="$license-locale='st' ">Australia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">澳大利亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Australia</xsl:when> <xsl:when test="$license-locale='pl' ">Australia</xsl:when> <xsl:when test="$license-locale='ms' ">Australia</xsl:when> <xsl:when test="$license-locale='sl' ">Avstralija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='at' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Austria</xsl:when> <xsl:when test="$license-locale='el' ">Αυστρία</xsl:when> <xsl:when test="$license-locale='eo' ">Aŭstrio</xsl:when> <xsl:when test="$license-locale='en' ">Austria</xsl:when> <xsl:when test="$license-locale='es_PR' ">Austria</xsl:when> <xsl:when test="$license-locale='af' ">Oostenryk</xsl:when> <xsl:when test="$license-locale='vi' ">Austria</xsl:when> <xsl:when test="$license-locale='ca' ">Àustria</xsl:when> <xsl:when test="$license-locale='it' ">Austria</xsl:when> <xsl:when test="$license-locale='eu' ">Austria</xsl:when> <xsl:when test="$license-locale='es_PE' ">Austria</xsl:when> <xsl:when test="$license-locale='bg' ">Австрия</xsl:when> <xsl:when test="$license-locale='en_US' ">Austria</xsl:when> <xsl:when test="$license-locale='ga' ">Austria</xsl:when> <xsl:when test="$license-locale='en_SG' ">Austria</xsl:when> <xsl:when test="$license-locale='cs' ">Austria</xsl:when> <xsl:when test="$license-locale='zh' ">奥地利</xsl:when> <xsl:when test="$license-locale='en_HK' ">Austria</xsl:when> <xsl:when test="$license-locale='gl' ">Austria</xsl:when> <xsl:when test="$license-locale='id' ">Austria</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Austrija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Österreich</xsl:when> <xsl:when test="$license-locale='es_MX' ">Austria</xsl:when> <xsl:when test="$license-locale='es_GT' ">Austria</xsl:when> <xsl:when test="$license-locale='nl' ">Oostenrijk</xsl:when> <xsl:when test="$license-locale='pt' ">Áustria</xsl:when> <xsl:when test="$license-locale='no' ">Østerrike</xsl:when> <xsl:when test="$license-locale='es_EC' ">Austria</xsl:when> <xsl:when test="$license-locale='nso' ">Austria</xsl:when> <xsl:when test="$license-locale='es_CO' ">Austria</xsl:when> <xsl:when test="$license-locale='es_CL' ">Austria</xsl:when> <xsl:when test="$license-locale='tr' ">Austria</xsl:when> <xsl:when test="$license-locale='es' ">Austria</xsl:when> <xsl:when test="$license-locale='de_AT' ">Österreich</xsl:when> <xsl:when test="$license-locale='es_AR' ">Austria</xsl:when> <xsl:when test="$license-locale='zu' ">i-Austria</xsl:when> <xsl:when test="$license-locale='ro' ">Austria</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Áustria</xsl:when> <xsl:when test="$license-locale='en_GB' ">Austria</xsl:when> <xsl:when test="$license-locale='en_CA' ">Austria</xsl:when> <xsl:when test="$license-locale='fr' ">Autriche</xsl:when> <xsl:when test="$license-locale='hy' ">Austria</xsl:when> <xsl:when test="$license-locale='th' ">ออสเตรีย</xsl:when> <xsl:when test="$license-locale='hr' ">Austrija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">奧地利</xsl:when> <xsl:when test="$license-locale='da' ">Østrig</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Autriche</xsl:when> <xsl:when test="$license-locale='fi' ">Itävalta</xsl:when> <xsl:when test="$license-locale='hu' ">Ausztria</xsl:when> <xsl:when test="$license-locale='ja' ">オーストリア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Autriche</xsl:when> <xsl:when test="$license-locale='he' ">אוסטריה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Autriche</xsl:when> <xsl:when test="$license-locale='de' ">Österreich</xsl:when> <xsl:when test="$license-locale='sr' ">Аустрија</xsl:when> <xsl:when test="$license-locale='ko' ">Austria</xsl:when> <xsl:when test="$license-locale='sv' ">Österrike</xsl:when> <xsl:when test="$license-locale='mk' ">Австрија</xsl:when> <xsl:when test="$license-locale='st' ">Austria</xsl:when> <xsl:when test="$license-locale='zh_HK' ">奧地利</xsl:when> <xsl:when test="$license-locale='it_CH' ">Austria</xsl:when> <xsl:when test="$license-locale='pl' ">Austria</xsl:when> <xsl:when test="$license-locale='ms' ">Austria</xsl:when> <xsl:when test="$license-locale='sl' ">Avstrija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='be' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Belgium</xsl:when> <xsl:when test="$license-locale='el' ">Βέλγιο</xsl:when> <xsl:when test="$license-locale='eo' ">Belgio</xsl:when> <xsl:when test="$license-locale='en' ">Belgium</xsl:when> <xsl:when test="$license-locale='es_PR' ">Bélgica</xsl:when> <xsl:when test="$license-locale='af' ">België</xsl:when> <xsl:when test="$license-locale='vi' ">Belgium</xsl:when> <xsl:when test="$license-locale='ca' ">Bèlgica</xsl:when> <xsl:when test="$license-locale='it' ">Belgio</xsl:when> <xsl:when test="$license-locale='eu' ">Belgika</xsl:when> <xsl:when test="$license-locale='es_PE' ">Bélgica</xsl:when> <xsl:when test="$license-locale='bg' ">Белгия</xsl:when> <xsl:when test="$license-locale='en_US' ">Belgium</xsl:when> <xsl:when test="$license-locale='ga' ">Belgium</xsl:when> <xsl:when test="$license-locale='en_SG' ">Belgium</xsl:when> <xsl:when test="$license-locale='cs' ">Belgium</xsl:when> <xsl:when test="$license-locale='zh' ">比利时</xsl:when> <xsl:when test="$license-locale='en_HK' ">Belgium</xsl:when> <xsl:when test="$license-locale='gl' ">Bélxica</xsl:when> <xsl:when test="$license-locale='id' ">Belgium</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Belgija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Belgien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Bélgica</xsl:when> <xsl:when test="$license-locale='es_GT' ">Bélgica</xsl:when> <xsl:when test="$license-locale='nl' ">België</xsl:when> <xsl:when test="$license-locale='pt' ">Bélgica</xsl:when> <xsl:when test="$license-locale='no' ">Belgia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Bélgica</xsl:when> <xsl:when test="$license-locale='nso' ">Belgium</xsl:when> <xsl:when test="$license-locale='es_CO' ">Bélgica</xsl:when> <xsl:when test="$license-locale='es_CL' ">Bélgica</xsl:when> <xsl:when test="$license-locale='tr' ">Belgium</xsl:when> <xsl:when test="$license-locale='es' ">Bélgica</xsl:when> <xsl:when test="$license-locale='de_AT' ">Belgien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Bélgica</xsl:when> <xsl:when test="$license-locale='zu' ">eBelgium</xsl:when> <xsl:when test="$license-locale='ro' ">Belgia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Bélgica</xsl:when> <xsl:when test="$license-locale='en_GB' ">Belgium</xsl:when> <xsl:when test="$license-locale='en_CA' ">Belgium</xsl:when> <xsl:when test="$license-locale='fr' ">Belgique</xsl:when> <xsl:when test="$license-locale='hy' ">Belgium</xsl:when> <xsl:when test="$license-locale='th' ">เบลเยียม</xsl:when> <xsl:when test="$license-locale='hr' ">Belgija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">比利時</xsl:when> <xsl:when test="$license-locale='da' ">Belgien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Belgique</xsl:when> <xsl:when test="$license-locale='fi' ">Belgia</xsl:when> <xsl:when test="$license-locale='hu' ">Belgium</xsl:when> <xsl:when test="$license-locale='ja' ">ベルギー</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Belgique</xsl:when> <xsl:when test="$license-locale='he' ">בלגיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Belgique</xsl:when> <xsl:when test="$license-locale='de' ">Belgien</xsl:when> <xsl:when test="$license-locale='sr' ">Белгија</xsl:when> <xsl:when test="$license-locale='ko' ">Belgium</xsl:when> <xsl:when test="$license-locale='sv' ">Belgien</xsl:when> <xsl:when test="$license-locale='mk' ">Белгија</xsl:when> <xsl:when test="$license-locale='st' ">Belgium</xsl:when> <xsl:when test="$license-locale='zh_HK' ">比利時</xsl:when> <xsl:when test="$license-locale='it_CH' ">Belgio</xsl:when> <xsl:when test="$license-locale='pl' ">Belgia</xsl:when> <xsl:when test="$license-locale='ms' ">Belgium</xsl:when> <xsl:when test="$license-locale='sl' ">Belgija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='br' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Brazil</xsl:when> <xsl:when test="$license-locale='el' ">Βραζιλία</xsl:when> <xsl:when test="$license-locale='eo' ">Brazilo</xsl:when> <xsl:when test="$license-locale='en' ">Brazil</xsl:when> <xsl:when test="$license-locale='es_PR' ">Brasil</xsl:when> <xsl:when test="$license-locale='af' ">Brasilië</xsl:when> <xsl:when test="$license-locale='vi' ">Brazil</xsl:when> <xsl:when test="$license-locale='ca' ">Brasil</xsl:when> <xsl:when test="$license-locale='it' ">Brasile</xsl:when> <xsl:when test="$license-locale='eu' ">Brasil</xsl:when> <xsl:when test="$license-locale='es_PE' ">Brasil</xsl:when> <xsl:when test="$license-locale='bg' ">Бразилия</xsl:when> <xsl:when test="$license-locale='en_US' ">Brazil</xsl:when> <xsl:when test="$license-locale='ga' ">Brazil</xsl:when> <xsl:when test="$license-locale='en_SG' ">Brazil</xsl:when> <xsl:when test="$license-locale='cs' ">Brazil</xsl:when> <xsl:when test="$license-locale='zh' ">巴西</xsl:when> <xsl:when test="$license-locale='en_HK' ">Brazil</xsl:when> <xsl:when test="$license-locale='gl' ">Brasil</xsl:when> <xsl:when test="$license-locale='id' ">Brazil</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Brazil</xsl:when> <xsl:when test="$license-locale='de_CH' ">Brasilien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Brasil</xsl:when> <xsl:when test="$license-locale='es_GT' ">Brasil</xsl:when> <xsl:when test="$license-locale='nl' ">Brazilië</xsl:when> <xsl:when test="$license-locale='pt' ">Brasil</xsl:when> <xsl:when test="$license-locale='no' ">Brasil</xsl:when> <xsl:when test="$license-locale='es_EC' ">Brasil</xsl:when> <xsl:when test="$license-locale='nso' ">Brazil</xsl:when> <xsl:when test="$license-locale='es_CO' ">Brasil</xsl:when> <xsl:when test="$license-locale='es_CL' ">Brasil</xsl:when> <xsl:when test="$license-locale='tr' ">Brazil</xsl:when> <xsl:when test="$license-locale='es' ">Brasil</xsl:when> <xsl:when test="$license-locale='de_AT' ">Brasilien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Brasil</xsl:when> <xsl:when test="$license-locale='zu' ">iBrazil</xsl:when> <xsl:when test="$license-locale='ro' ">Brazilia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Brasil</xsl:when> <xsl:when test="$license-locale='en_GB' ">Brazil</xsl:when> <xsl:when test="$license-locale='en_CA' ">Brazil</xsl:when> <xsl:when test="$license-locale='fr' ">Brésil</xsl:when> <xsl:when test="$license-locale='hy' ">Brazil</xsl:when> <xsl:when test="$license-locale='th' ">บราซิล</xsl:when> <xsl:when test="$license-locale='hr' ">Brazil</xsl:when> <xsl:when test="$license-locale='zh_TW' ">巴西</xsl:when> <xsl:when test="$license-locale='da' ">Brasilien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Brésil</xsl:when> <xsl:when test="$license-locale='fi' ">Brasilia</xsl:when> <xsl:when test="$license-locale='hu' ">Brazília</xsl:when> <xsl:when test="$license-locale='ja' ">ブラジル</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Brésil</xsl:when> <xsl:when test="$license-locale='he' ">ברזיל</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Brésil</xsl:when> <xsl:when test="$license-locale='de' ">Brasilien</xsl:when> <xsl:when test="$license-locale='sr' ">Бразил</xsl:when> <xsl:when test="$license-locale='ko' ">Brazil</xsl:when> <xsl:when test="$license-locale='sv' ">Brasilien</xsl:when> <xsl:when test="$license-locale='mk' ">Бразил</xsl:when> <xsl:when test="$license-locale='st' ">Brazil</xsl:when> <xsl:when test="$license-locale='zh_HK' ">巴西</xsl:when> <xsl:when test="$license-locale='it_CH' ">Brasile</xsl:when> <xsl:when test="$license-locale='pl' ">Brazylia</xsl:when> <xsl:when test="$license-locale='ms' ">Brasil</xsl:when> <xsl:when test="$license-locale='sl' ">Brazilija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='bg' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='el' ">Βουλγαρία</xsl:when> <xsl:when test="$license-locale='eo' ">Bulgario</xsl:when> <xsl:when test="$license-locale='en' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_PR' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='af' ">Bulgarye</xsl:when> <xsl:when test="$license-locale='vi' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='ca' ">Bulgària</xsl:when> <xsl:when test="$license-locale='it' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='eu' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_PE' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='bg' ">България</xsl:when> <xsl:when test="$license-locale='en_US' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='ga' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='en_SG' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='cs' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='zh' ">保加利亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='gl' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='id' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Bugarska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Bulgarien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_GT' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='nl' ">Bulgarije</xsl:when> <xsl:when test="$license-locale='pt' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='no' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_EC' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='nso' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_CO' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es_CL' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='tr' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='es' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='de_AT' ">Bulgarien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='zu' ">iBulgaria</xsl:when> <xsl:when test="$license-locale='ro' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='en_GB' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='en_CA' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='fr' ">Bulgarie</xsl:when> <xsl:when test="$license-locale='hy' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='th' ">บัลแกเรีย</xsl:when> <xsl:when test="$license-locale='hr' ">Bugarska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">保加利亞</xsl:when> <xsl:when test="$license-locale='da' ">Bulgarien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Bulgarie</xsl:when> <xsl:when test="$license-locale='fi' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='hu' ">Bulgária</xsl:when> <xsl:when test="$license-locale='ja' ">ブルガリア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Bulgarie</xsl:when> <xsl:when test="$license-locale='he' ">בולגריה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Bulgarie</xsl:when> <xsl:when test="$license-locale='de' ">Bulgarien</xsl:when> <xsl:when test="$license-locale='sr' ">Бугарска</xsl:when> <xsl:when test="$license-locale='ko' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='sv' ">Bulgarien</xsl:when> <xsl:when test="$license-locale='mk' ">Бугарија</xsl:when> <xsl:when test="$license-locale='st' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='zh_HK' ">保加利亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='pl' ">Bułgaria</xsl:when> <xsl:when test="$license-locale='ms' ">Bulgaria</xsl:when> <xsl:when test="$license-locale='sl' ">Bolgarija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ca' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Canada</xsl:when> <xsl:when test="$license-locale='el' ">Καναδάς</xsl:when> <xsl:when test="$license-locale='eo' ">Kanado</xsl:when> <xsl:when test="$license-locale='en' ">Canada</xsl:when> <xsl:when test="$license-locale='es_PR' ">Canadá</xsl:when> <xsl:when test="$license-locale='af' ">Kanada</xsl:when> <xsl:when test="$license-locale='vi' ">Canada</xsl:when> <xsl:when test="$license-locale='ca' ">Canadà</xsl:when> <xsl:when test="$license-locale='it' ">Canada</xsl:when> <xsl:when test="$license-locale='eu' ">Kanada</xsl:when> <xsl:when test="$license-locale='es_PE' ">Canadá</xsl:when> <xsl:when test="$license-locale='bg' ">Канада</xsl:when> <xsl:when test="$license-locale='en_US' ">Canada</xsl:when> <xsl:when test="$license-locale='ga' ">Canada</xsl:when> <xsl:when test="$license-locale='en_SG' ">Canada</xsl:when> <xsl:when test="$license-locale='cs' ">Canada</xsl:when> <xsl:when test="$license-locale='zh' ">加拿大</xsl:when> <xsl:when test="$license-locale='en_HK' ">Canada</xsl:when> <xsl:when test="$license-locale='gl' ">Canadá</xsl:when> <xsl:when test="$license-locale='id' ">Canada</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Kanada</xsl:when> <xsl:when test="$license-locale='de_CH' ">Kanada</xsl:when> <xsl:when test="$license-locale='es_MX' ">Canadá</xsl:when> <xsl:when test="$license-locale='es_GT' ">Canadá</xsl:when> <xsl:when test="$license-locale='nl' ">Canada</xsl:when> <xsl:when test="$license-locale='pt' ">Canadá</xsl:when> <xsl:when test="$license-locale='no' ">Canada</xsl:when> <xsl:when test="$license-locale='es_EC' ">Canadá</xsl:when> <xsl:when test="$license-locale='nso' ">Khanada</xsl:when> <xsl:when test="$license-locale='es_CO' ">Canadá</xsl:when> <xsl:when test="$license-locale='es_CL' ">Canadá</xsl:when> <xsl:when test="$license-locale='tr' ">Canada</xsl:when> <xsl:when test="$license-locale='es' ">Canadá</xsl:when> <xsl:when test="$license-locale='de_AT' ">Kanada</xsl:when> <xsl:when test="$license-locale='es_AR' ">Canadá</xsl:when> <xsl:when test="$license-locale='zu' ">Ecanada</xsl:when> <xsl:when test="$license-locale='ro' ">Canada</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Canadá</xsl:when> <xsl:when test="$license-locale='en_GB' ">Canada</xsl:when> <xsl:when test="$license-locale='en_CA' ">Canada</xsl:when> <xsl:when test="$license-locale='fr' ">Canada</xsl:when> <xsl:when test="$license-locale='hy' ">Canada</xsl:when> <xsl:when test="$license-locale='th' ">แคนาดา</xsl:when> <xsl:when test="$license-locale='hr' ">Kanada</xsl:when> <xsl:when test="$license-locale='zh_TW' ">加拿大</xsl:when> <xsl:when test="$license-locale='da' ">Canada</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Canada</xsl:when> <xsl:when test="$license-locale='fi' ">Kanada</xsl:when> <xsl:when test="$license-locale='hu' ">Kanada</xsl:when> <xsl:when test="$license-locale='ja' ">カナダ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Canada</xsl:when> <xsl:when test="$license-locale='he' ">קנדה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Canada</xsl:when> <xsl:when test="$license-locale='de' ">Kanada</xsl:when> <xsl:when test="$license-locale='sr' ">Канада</xsl:when> <xsl:when test="$license-locale='ko' ">Canada</xsl:when> <xsl:when test="$license-locale='sv' ">Kanada</xsl:when> <xsl:when test="$license-locale='mk' ">Канада</xsl:when> <xsl:when test="$license-locale='st' ">Canada</xsl:when> <xsl:when test="$license-locale='zh_HK' ">加拿大</xsl:when> <xsl:when test="$license-locale='it_CH' ">Canada</xsl:when> <xsl:when test="$license-locale='pl' ">Kanada</xsl:when> <xsl:when test="$license-locale='ms' ">Kanada</xsl:when> <xsl:when test="$license-locale='sl' ">Kanada</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='cl' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Chile</xsl:when> <xsl:when test="$license-locale='el' ">Χιλή</xsl:when> <xsl:when test="$license-locale='eo' ">Ĉilio</xsl:when> <xsl:when test="$license-locale='en' ">Chile</xsl:when> <xsl:when test="$license-locale='es_PR' ">Chile</xsl:when> <xsl:when test="$license-locale='af' ">Chili</xsl:when> <xsl:when test="$license-locale='vi' ">Chile</xsl:when> <xsl:when test="$license-locale='ca' ">Xile</xsl:when> <xsl:when test="$license-locale='it' ">Chile</xsl:when> <xsl:when test="$license-locale='eu' ">Txile</xsl:when> <xsl:when test="$license-locale='es_PE' ">Chile</xsl:when> <xsl:when test="$license-locale='bg' ">Чили</xsl:when> <xsl:when test="$license-locale='en_US' ">Chile</xsl:when> <xsl:when test="$license-locale='ga' ">Chile</xsl:when> <xsl:when test="$license-locale='en_SG' ">Chile</xsl:when> <xsl:when test="$license-locale='cs' ">Chile</xsl:when> <xsl:when test="$license-locale='zh' ">智利</xsl:when> <xsl:when test="$license-locale='en_HK' ">Chile</xsl:when> <xsl:when test="$license-locale='gl' ">Chile</xsl:when> <xsl:when test="$license-locale='id' ">Chile</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Čile</xsl:when> <xsl:when test="$license-locale='de_CH' ">Chile</xsl:when> <xsl:when test="$license-locale='es_MX' ">Chile</xsl:when> <xsl:when test="$license-locale='es_GT' ">Chile</xsl:when> <xsl:when test="$license-locale='nl' ">Chili</xsl:when> <xsl:when test="$license-locale='pt' ">Chile</xsl:when> <xsl:when test="$license-locale='no' ">Chile</xsl:when> <xsl:when test="$license-locale='es_EC' ">Chile</xsl:when> <xsl:when test="$license-locale='nso' ">Chile</xsl:when> <xsl:when test="$license-locale='es_CO' ">Chile</xsl:when> <xsl:when test="$license-locale='es_CL' ">Chile</xsl:when> <xsl:when test="$license-locale='tr' ">Chile</xsl:when> <xsl:when test="$license-locale='es' ">Chile</xsl:when> <xsl:when test="$license-locale='de_AT' ">Chile</xsl:when> <xsl:when test="$license-locale='es_AR' ">Chile</xsl:when> <xsl:when test="$license-locale='zu' ">Echile</xsl:when> <xsl:when test="$license-locale='ro' ">Chile</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Chile</xsl:when> <xsl:when test="$license-locale='en_GB' ">Chile</xsl:when> <xsl:when test="$license-locale='en_CA' ">Chile</xsl:when> <xsl:when test="$license-locale='fr' ">Chili</xsl:when> <xsl:when test="$license-locale='hy' ">Chile</xsl:when> <xsl:when test="$license-locale='th' ">ชิลี</xsl:when> <xsl:when test="$license-locale='hr' ">Čile</xsl:when> <xsl:when test="$license-locale='zh_TW' ">智利</xsl:when> <xsl:when test="$license-locale='da' ">Chile</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Chili</xsl:when> <xsl:when test="$license-locale='fi' ">Chile</xsl:when> <xsl:when test="$license-locale='hu' ">Chile</xsl:when> <xsl:when test="$license-locale='ja' ">チリ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Chili</xsl:when> <xsl:when test="$license-locale='he' ">צ'ילה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Chili</xsl:when> <xsl:when test="$license-locale='de' ">Chile</xsl:when> <xsl:when test="$license-locale='sr' ">Чиле</xsl:when> <xsl:when test="$license-locale='ko' ">Chile</xsl:when> <xsl:when test="$license-locale='sv' ">Chile</xsl:when> <xsl:when test="$license-locale='mk' ">Чиле</xsl:when> <xsl:when test="$license-locale='st' ">Chile</xsl:when> <xsl:when test="$license-locale='zh_HK' ">智利</xsl:when> <xsl:when test="$license-locale='it_CH' ">Chile</xsl:when> <xsl:when test="$license-locale='pl' ">Chile</xsl:when> <xsl:when test="$license-locale='ms' ">Chile</xsl:when> <xsl:when test="$license-locale='sl' ">Čile</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='cn' "> <xsl:choose> <xsl:when test="$license-locale='az' ">China Mainland</xsl:when> <xsl:when test="$license-locale='el' ">Κίνα</xsl:when> <xsl:when test="$license-locale='eo' ">Ĉinio</xsl:when> <xsl:when test="$license-locale='en' ">China Mainland</xsl:when> <xsl:when test="$license-locale='es_PR' ">China</xsl:when> <xsl:when test="$license-locale='af' ">Sjinese Vasteland</xsl:when> <xsl:when test="$license-locale='vi' ">China Mainland</xsl:when> <xsl:when test="$license-locale='ca' ">Xina</xsl:when> <xsl:when test="$license-locale='it' ">Cina</xsl:when> <xsl:when test="$license-locale='eu' ">Txina</xsl:when> <xsl:when test="$license-locale='es_PE' ">China</xsl:when> <xsl:when test="$license-locale='bg' ">Китай (континентален)</xsl:when> <xsl:when test="$license-locale='en_US' ">China Mainland</xsl:when> <xsl:when test="$license-locale='ga' ">China Mainland</xsl:when> <xsl:when test="$license-locale='en_SG' ">China</xsl:when> <xsl:when test="$license-locale='cs' ">China Mainland</xsl:when> <xsl:when test="$license-locale='zh' ">中国大陆</xsl:when> <xsl:when test="$license-locale='en_HK' ">China</xsl:when> <xsl:when test="$license-locale='gl' ">China</xsl:when> <xsl:when test="$license-locale='id' ">China Mainland</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Kina</xsl:when> <xsl:when test="$license-locale='de_CH' ">China</xsl:when> <xsl:when test="$license-locale='es_MX' ">China</xsl:when> <xsl:when test="$license-locale='es_GT' ">China</xsl:when> <xsl:when test="$license-locale='nl' ">China (vasteland)</xsl:when> <xsl:when test="$license-locale='pt' ">China</xsl:when> <xsl:when test="$license-locale='no' ">Kina</xsl:when> <xsl:when test="$license-locale='es_EC' ">China</xsl:when> <xsl:when test="$license-locale='nso' ">China Naga-bogareng</xsl:when> <xsl:when test="$license-locale='es_CO' ">China</xsl:when> <xsl:when test="$license-locale='es_CL' ">China</xsl:when> <xsl:when test="$license-locale='tr' ">China Mainland</xsl:when> <xsl:when test="$license-locale='es' ">China</xsl:when> <xsl:when test="$license-locale='de_AT' ">China</xsl:when> <xsl:when test="$license-locale='es_AR' ">China</xsl:when> <xsl:when test="$license-locale='zu' ">EMainland China</xsl:when> <xsl:when test="$license-locale='ro' ">China continentală</xsl:when> <xsl:when test="$license-locale='pt_PT' ">China</xsl:when> <xsl:when test="$license-locale='en_GB' ">China</xsl:when> <xsl:when test="$license-locale='en_CA' ">China Mainland</xsl:when> <xsl:when test="$license-locale='fr' ">Chine</xsl:when> <xsl:when test="$license-locale='hy' ">China Mainland</xsl:when> <xsl:when test="$license-locale='th' ">จีนแผ่นดินใหญ่</xsl:when> <xsl:when test="$license-locale='hr' ">Kina</xsl:when> <xsl:when test="$license-locale='zh_TW' ">中國大陸</xsl:when> <xsl:when test="$license-locale='da' ">Kina</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Chine</xsl:when> <xsl:when test="$license-locale='fi' ">Kiina</xsl:when> <xsl:when test="$license-locale='hu' ">Kína</xsl:when> <xsl:when test="$license-locale='ja' ">中華人民共和国</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Chine</xsl:when> <xsl:when test="$license-locale='he' ">סין</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Chine</xsl:when> <xsl:when test="$license-locale='de' ">Volksrepublik China</xsl:when> <xsl:when test="$license-locale='sr' ">Кина</xsl:when> <xsl:when test="$license-locale='ko' ">China Mainland</xsl:when> <xsl:when test="$license-locale='sv' ">Kina</xsl:when> <xsl:when test="$license-locale='mk' ">Кина</xsl:when> <xsl:when test="$license-locale='st' ">China Mainland</xsl:when> <xsl:when test="$license-locale='zh_HK' ">中國大陸</xsl:when> <xsl:when test="$license-locale='it_CH' ">Cina</xsl:when> <xsl:when test="$license-locale='pl' ">Chiny</xsl:when> <xsl:when test="$license-locale='ms' ">Tanah Besar Cina</xsl:when> <xsl:when test="$license-locale='sl' ">Kitajska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='co' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Colombia</xsl:when> <xsl:when test="$license-locale='el' ">Κολομβία</xsl:when> <xsl:when test="$license-locale='eo' ">Kolombio</xsl:when> <xsl:when test="$license-locale='en' ">Colombia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Colombia</xsl:when> <xsl:when test="$license-locale='af' ">Colombia</xsl:when> <xsl:when test="$license-locale='vi' ">Colombia</xsl:when> <xsl:when test="$license-locale='ca' ">Colòmbia</xsl:when> <xsl:when test="$license-locale='it' ">Colombia</xsl:when> <xsl:when test="$license-locale='eu' ">Kolonbia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Colombia</xsl:when> <xsl:when test="$license-locale='bg' ">Колумбия</xsl:when> <xsl:when test="$license-locale='en_US' ">Colombia</xsl:when> <xsl:when test="$license-locale='ga' ">Colombia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Colombia</xsl:when> <xsl:when test="$license-locale='cs' ">Colombia</xsl:when> <xsl:when test="$license-locale='zh' ">哥伦比亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Colombia</xsl:when> <xsl:when test="$license-locale='gl' ">Colombia</xsl:when> <xsl:when test="$license-locale='id' ">Colombia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Kolumbija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Kolumbien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Colombia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Colombia</xsl:when> <xsl:when test="$license-locale='nl' ">Colombia</xsl:when> <xsl:when test="$license-locale='pt' ">Colombia</xsl:when> <xsl:when test="$license-locale='no' ">Colombia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Colombia</xsl:when> <xsl:when test="$license-locale='nso' ">Colombia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Colombia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Colombia</xsl:when> <xsl:when test="$license-locale='tr' ">Colombia</xsl:when> <xsl:when test="$license-locale='es' ">Colombia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Kolumbien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Colombia</xsl:when> <xsl:when test="$license-locale='zu' ">iColombia</xsl:when> <xsl:when test="$license-locale='ro' ">Colombia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Colombia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Colombia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Colombia</xsl:when> <xsl:when test="$license-locale='fr' ">Colombie</xsl:when> <xsl:when test="$license-locale='hy' ">Colombia</xsl:when> <xsl:when test="$license-locale='th' ">โคลัมเบีย</xsl:when> <xsl:when test="$license-locale='hr' ">Kolumbija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">哥倫比亞</xsl:when> <xsl:when test="$license-locale='da' ">Columbia</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Colombie</xsl:when> <xsl:when test="$license-locale='fi' ">Kolumbia</xsl:when> <xsl:when test="$license-locale='hu' ">Colombia</xsl:when> <xsl:when test="$license-locale='ja' ">コロンビア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Colombie</xsl:when> <xsl:when test="$license-locale='he' ">קולומביה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Colombie</xsl:when> <xsl:when test="$license-locale='de' ">Kolumbien</xsl:when> <xsl:when test="$license-locale='sr' ">Колумбија</xsl:when> <xsl:when test="$license-locale='ko' ">Colombia</xsl:when> <xsl:when test="$license-locale='sv' ">Columbia</xsl:when> <xsl:when test="$license-locale='mk' ">Колумбија</xsl:when> <xsl:when test="$license-locale='st' ">Colombia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">哥倫比亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Colombia</xsl:when> <xsl:when test="$license-locale='pl' ">Kolumbia</xsl:when> <xsl:when test="$license-locale='ms' ">Colombia</xsl:when> <xsl:when test="$license-locale='sl' ">Kolumbija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='hr' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Croatia</xsl:when> <xsl:when test="$license-locale='el' ">Κροατία</xsl:when> <xsl:when test="$license-locale='eo' ">Kroatio</xsl:when> <xsl:when test="$license-locale='en' ">Croatia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Croacia</xsl:when> <xsl:when test="$license-locale='af' ">Kroasië</xsl:when> <xsl:when test="$license-locale='vi' ">Croatia</xsl:when> <xsl:when test="$license-locale='ca' ">Croàcia</xsl:when> <xsl:when test="$license-locale='it' ">Croazia</xsl:when> <xsl:when test="$license-locale='eu' ">Kroazia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Croacia</xsl:when> <xsl:when test="$license-locale='bg' ">Хърватска</xsl:when> <xsl:when test="$license-locale='en_US' ">Croatia</xsl:when> <xsl:when test="$license-locale='ga' ">Croatia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Croatia</xsl:when> <xsl:when test="$license-locale='cs' ">Croatia</xsl:when> <xsl:when test="$license-locale='zh' ">克罗地亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Croatia</xsl:when> <xsl:when test="$license-locale='gl' ">Croacia</xsl:when> <xsl:when test="$license-locale='id' ">Croatia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Hrvatska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Kroatien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Croacia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Croacia</xsl:when> <xsl:when test="$license-locale='nl' ">Kroatië</xsl:when> <xsl:when test="$license-locale='pt' ">Croácia</xsl:when> <xsl:when test="$license-locale='no' ">Kroatia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Croacia</xsl:when> <xsl:when test="$license-locale='nso' ">Croatia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Croacia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Croacia</xsl:when> <xsl:when test="$license-locale='tr' ">Croatia</xsl:when> <xsl:when test="$license-locale='es' ">Croacia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Kroatien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Croacia</xsl:when> <xsl:when test="$license-locale='zu' ">eCroatia</xsl:when> <xsl:when test="$license-locale='ro' ">Croaţia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Croácia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Croatia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Croatia</xsl:when> <xsl:when test="$license-locale='fr' ">Croatie</xsl:when> <xsl:when test="$license-locale='hy' ">Croatia</xsl:when> <xsl:when test="$license-locale='th' ">โครเอเชีย</xsl:when> <xsl:when test="$license-locale='hr' ">Hrvatska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">克羅埃西亞</xsl:when> <xsl:when test="$license-locale='da' ">Kroatien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Croatie</xsl:when> <xsl:when test="$license-locale='fi' ">Kroatia</xsl:when> <xsl:when test="$license-locale='hu' ">Horvátország</xsl:when> <xsl:when test="$license-locale='ja' ">クロアチア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Croatie</xsl:when> <xsl:when test="$license-locale='he' ">קרואטיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Croatie</xsl:when> <xsl:when test="$license-locale='de' ">Kroatien</xsl:when> <xsl:when test="$license-locale='sr' ">Хрватска</xsl:when> <xsl:when test="$license-locale='ko' ">Croatia</xsl:when> <xsl:when test="$license-locale='sv' ">Kroatien</xsl:when> <xsl:when test="$license-locale='mk' ">Хрватска</xsl:when> <xsl:when test="$license-locale='st' ">Croatia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">克羅地亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Croazia</xsl:when> <xsl:when test="$license-locale='pl' ">Chorwacja</xsl:when> <xsl:when test="$license-locale='ms' ">Kroatia</xsl:when> <xsl:when test="$license-locale='sl' ">Hrvaška</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='hu' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Hungary</xsl:when> <xsl:when test="$license-locale='el' ">Ουγγαρία</xsl:when> <xsl:when test="$license-locale='eo' ">Hungario</xsl:when> <xsl:when test="$license-locale='en' ">Hungary</xsl:when> <xsl:when test="$license-locale='es_PR' ">Hungría</xsl:when> <xsl:when test="$license-locale='af' ">Hongarye</xsl:when> <xsl:when test="$license-locale='vi' ">Hungary</xsl:when> <xsl:when test="$license-locale='ca' ">Hongria</xsl:when> <xsl:when test="$license-locale='it' ">Hungary</xsl:when> <xsl:when test="$license-locale='eu' ">Hungaria</xsl:when> <xsl:when test="$license-locale='es_PE' ">Hungría</xsl:when> <xsl:when test="$license-locale='bg' ">Унгария</xsl:when> <xsl:when test="$license-locale='en_US' ">Hungary</xsl:when> <xsl:when test="$license-locale='ga' ">Hungary</xsl:when> <xsl:when test="$license-locale='en_SG' ">Hungary</xsl:when> <xsl:when test="$license-locale='cs' ">Hungary</xsl:when> <xsl:when test="$license-locale='zh' ">匈牙利</xsl:when> <xsl:when test="$license-locale='en_HK' ">Hungary</xsl:when> <xsl:when test="$license-locale='gl' ">Hungary</xsl:when> <xsl:when test="$license-locale='id' ">Hungary</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Madjarska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Ungarn</xsl:when> <xsl:when test="$license-locale='es_MX' ">Hungría</xsl:when> <xsl:when test="$license-locale='es_GT' ">Hungría</xsl:when> <xsl:when test="$license-locale='nl' ">Hongarije</xsl:when> <xsl:when test="$license-locale='pt' ">Hungary</xsl:when> <xsl:when test="$license-locale='no' ">Ungarn</xsl:when> <xsl:when test="$license-locale='es_EC' ">Hungría</xsl:when> <xsl:when test="$license-locale='nso' ">Hungary</xsl:when> <xsl:when test="$license-locale='es_CO' ">Hungría</xsl:when> <xsl:when test="$license-locale='es_CL' ">Hungría</xsl:when> <xsl:when test="$license-locale='tr' ">Hungary</xsl:when> <xsl:when test="$license-locale='es' ">Hungría</xsl:when> <xsl:when test="$license-locale='de_AT' ">Ungarn</xsl:when> <xsl:when test="$license-locale='es_AR' ">Hungría</xsl:when> <xsl:when test="$license-locale='zu' ">iHungary</xsl:when> <xsl:when test="$license-locale='ro' ">Ungaria</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Hungary</xsl:when> <xsl:when test="$license-locale='en_GB' ">Hungary</xsl:when> <xsl:when test="$license-locale='en_CA' ">Hungary</xsl:when> <xsl:when test="$license-locale='fr' ">Hongrie</xsl:when> <xsl:when test="$license-locale='hy' ">Hungary</xsl:when> <xsl:when test="$license-locale='th' ">ฮังการี</xsl:when> <xsl:when test="$license-locale='hr' ">Mađarska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">匈牙利</xsl:when> <xsl:when test="$license-locale='da' ">Ungarn</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Hongrie</xsl:when> <xsl:when test="$license-locale='fi' ">Unkari</xsl:when> <xsl:when test="$license-locale='hu' ">Magyarország</xsl:when> <xsl:when test="$license-locale='ja' ">ハンガリー</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Hongrie</xsl:when> <xsl:when test="$license-locale='he' ">הונגריה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Hongrie</xsl:when> <xsl:when test="$license-locale='de' ">Ungarn</xsl:when> <xsl:when test="$license-locale='sr' ">Мађарска</xsl:when> <xsl:when test="$license-locale='ko' ">Hungary</xsl:when> <xsl:when test="$license-locale='sv' ">Ungern</xsl:when> <xsl:when test="$license-locale='mk' ">Унгарија</xsl:when> <xsl:when test="$license-locale='st' ">Hungary</xsl:when> <xsl:when test="$license-locale='zh_HK' ">匈牙利</xsl:when> <xsl:when test="$license-locale='it_CH' ">Hungary</xsl:when> <xsl:when test="$license-locale='pl' ">Węgry</xsl:when> <xsl:when test="$license-locale='ms' ">Hungary</xsl:when> <xsl:when test="$license-locale='sl' ">Madžarska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='dk' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Denmark</xsl:when> <xsl:when test="$license-locale='el' ">Δανία</xsl:when> <xsl:when test="$license-locale='eo' ">Danio</xsl:when> <xsl:when test="$license-locale='en' ">Denmark</xsl:when> <xsl:when test="$license-locale='es_PR' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='af' ">Denemarke</xsl:when> <xsl:when test="$license-locale='vi' ">Denmark</xsl:when> <xsl:when test="$license-locale='ca' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='it' ">Denmark</xsl:when> <xsl:when test="$license-locale='eu' ">Danimarka</xsl:when> <xsl:when test="$license-locale='es_PE' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='bg' ">Дания</xsl:when> <xsl:when test="$license-locale='en_US' ">Denmark</xsl:when> <xsl:when test="$license-locale='ga' ">Denmark</xsl:when> <xsl:when test="$license-locale='en_SG' ">Denmark</xsl:when> <xsl:when test="$license-locale='cs' ">Denmark</xsl:when> <xsl:when test="$license-locale='zh' ">丹麦</xsl:when> <xsl:when test="$license-locale='en_HK' ">Denmark</xsl:when> <xsl:when test="$license-locale='gl' ">Denmark</xsl:when> <xsl:when test="$license-locale='id' ">Denmark</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Danska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Dänemark</xsl:when> <xsl:when test="$license-locale='es_MX' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='es_GT' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='nl' ">Denemarken</xsl:when> <xsl:when test="$license-locale='pt' ">Denmark</xsl:when> <xsl:when test="$license-locale='no' ">Danmark</xsl:when> <xsl:when test="$license-locale='es_EC' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='nso' ">Denmark</xsl:when> <xsl:when test="$license-locale='es_CO' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='es_CL' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='tr' ">Denmark</xsl:when> <xsl:when test="$license-locale='es' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='de_AT' ">Dänemark</xsl:when> <xsl:when test="$license-locale='es_AR' ">Dinamarca</xsl:when> <xsl:when test="$license-locale='zu' ">eDenmark</xsl:when> <xsl:when test="$license-locale='ro' ">Danemarca</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Denmark</xsl:when> <xsl:when test="$license-locale='en_GB' ">Denmark</xsl:when> <xsl:when test="$license-locale='en_CA' ">Denmark</xsl:when> <xsl:when test="$license-locale='fr' ">Danemark</xsl:when> <xsl:when test="$license-locale='hy' ">Denmark</xsl:when> <xsl:when test="$license-locale='th' ">เดนมาร์ก</xsl:when> <xsl:when test="$license-locale='hr' ">Danska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">丹麥</xsl:when> <xsl:when test="$license-locale='da' ">Danmark</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Danemark</xsl:when> <xsl:when test="$license-locale='fi' ">Tanska</xsl:when> <xsl:when test="$license-locale='hu' ">Dánia</xsl:when> <xsl:when test="$license-locale='ja' ">デンマーク</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Danemark</xsl:when> <xsl:when test="$license-locale='he' ">דנמרק</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Danemark</xsl:when> <xsl:when test="$license-locale='de' ">Dänemark</xsl:when> <xsl:when test="$license-locale='sr' ">Данска</xsl:when> <xsl:when test="$license-locale='ko' ">Denmark</xsl:when> <xsl:when test="$license-locale='sv' ">Danmark</xsl:when> <xsl:when test="$license-locale='mk' ">Данска</xsl:when> <xsl:when test="$license-locale='st' ">Denmark</xsl:when> <xsl:when test="$license-locale='zh_HK' ">丹麥</xsl:when> <xsl:when test="$license-locale='it_CH' ">Denmark</xsl:when> <xsl:when test="$license-locale='pl' ">Dania</xsl:when> <xsl:when test="$license-locale='ms' ">Denmark</xsl:when> <xsl:when test="$license-locale='sl' ">Danska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='fi' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Finland</xsl:when> <xsl:when test="$license-locale='el' ">Φιναλνδία</xsl:when> <xsl:when test="$license-locale='eo' ">Finnlando</xsl:when> <xsl:when test="$license-locale='en' ">Finland</xsl:when> <xsl:when test="$license-locale='es_PR' ">Finlandia</xsl:when> <xsl:when test="$license-locale='af' ">Finland</xsl:when> <xsl:when test="$license-locale='vi' ">Finland</xsl:when> <xsl:when test="$license-locale='ca' ">Finlàndia</xsl:when> <xsl:when test="$license-locale='it' ">Finlandia</xsl:when> <xsl:when test="$license-locale='eu' ">Finlandia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Finlandia</xsl:when> <xsl:when test="$license-locale='bg' ">Финландия</xsl:when> <xsl:when test="$license-locale='en_US' ">Finland</xsl:when> <xsl:when test="$license-locale='ga' ">Finland</xsl:when> <xsl:when test="$license-locale='en_SG' ">Finland</xsl:when> <xsl:when test="$license-locale='cs' ">Finland</xsl:when> <xsl:when test="$license-locale='zh' ">芬兰</xsl:when> <xsl:when test="$license-locale='en_HK' ">Finland</xsl:when> <xsl:when test="$license-locale='gl' ">Finlandia</xsl:when> <xsl:when test="$license-locale='id' ">Finland</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Finska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Finnland</xsl:when> <xsl:when test="$license-locale='es_MX' ">Finlandia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Finlandia</xsl:when> <xsl:when test="$license-locale='nl' ">Finland</xsl:when> <xsl:when test="$license-locale='pt' ">Finlândia</xsl:when> <xsl:when test="$license-locale='no' ">Finland</xsl:when> <xsl:when test="$license-locale='es_EC' ">Finlandia</xsl:when> <xsl:when test="$license-locale='nso' ">Finland</xsl:when> <xsl:when test="$license-locale='es_CO' ">Finlandia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Finlandia</xsl:when> <xsl:when test="$license-locale='tr' ">Finland</xsl:when> <xsl:when test="$license-locale='es' ">Finlandia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Finnland</xsl:when> <xsl:when test="$license-locale='es_AR' ">Finlandia</xsl:when> <xsl:when test="$license-locale='zu' ">iFinland</xsl:when> <xsl:when test="$license-locale='ro' ">Finlanda</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Filândia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Finland</xsl:when> <xsl:when test="$license-locale='en_CA' ">Finland</xsl:when> <xsl:when test="$license-locale='fr' ">Finlande</xsl:when> <xsl:when test="$license-locale='hy' ">Finland</xsl:when> <xsl:when test="$license-locale='th' ">ฟินแลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">Finska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">芬蘭</xsl:when> <xsl:when test="$license-locale='da' ">Finland</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Finlande</xsl:when> <xsl:when test="$license-locale='fi' ">Suomi</xsl:when> <xsl:when test="$license-locale='hu' ">Finnország</xsl:when> <xsl:when test="$license-locale='ja' ">フィンランド</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Finlande</xsl:when> <xsl:when test="$license-locale='he' ">פינלנד</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Finlande</xsl:when> <xsl:when test="$license-locale='de' ">Finnland</xsl:when> <xsl:when test="$license-locale='sr' ">Финска</xsl:when> <xsl:when test="$license-locale='ko' ">Finland</xsl:when> <xsl:when test="$license-locale='sv' ">Finland</xsl:when> <xsl:when test="$license-locale='mk' ">Финска</xsl:when> <xsl:when test="$license-locale='st' ">Finland</xsl:when> <xsl:when test="$license-locale='zh_HK' ">芬蘭</xsl:when> <xsl:when test="$license-locale='it_CH' ">Finlandia</xsl:when> <xsl:when test="$license-locale='pl' ">Finlandia</xsl:when> <xsl:when test="$license-locale='ms' ">Finland</xsl:when> <xsl:when test="$license-locale='sl' ">Finska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='fr' "> <xsl:choose> <xsl:when test="$license-locale='az' ">France</xsl:when> <xsl:when test="$license-locale='el' ">Γαλλία</xsl:when> <xsl:when test="$license-locale='eo' ">Francio</xsl:when> <xsl:when test="$license-locale='en' ">France</xsl:when> <xsl:when test="$license-locale='es_PR' ">Francia</xsl:when> <xsl:when test="$license-locale='af' ">Frankryk</xsl:when> <xsl:when test="$license-locale='vi' ">France</xsl:when> <xsl:when test="$license-locale='ca' ">França</xsl:when> <xsl:when test="$license-locale='it' ">Francia</xsl:when> <xsl:when test="$license-locale='eu' ">Frantzia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Francia</xsl:when> <xsl:when test="$license-locale='bg' ">Франция</xsl:when> <xsl:when test="$license-locale='en_US' ">France</xsl:when> <xsl:when test="$license-locale='ga' ">France</xsl:when> <xsl:when test="$license-locale='en_SG' ">France</xsl:when> <xsl:when test="$license-locale='cs' ">France</xsl:when> <xsl:when test="$license-locale='zh' ">法国</xsl:when> <xsl:when test="$license-locale='en_HK' ">France</xsl:when> <xsl:when test="$license-locale='gl' ">Francia</xsl:when> <xsl:when test="$license-locale='id' ">France</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Francuska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Frankreich</xsl:when> <xsl:when test="$license-locale='es_MX' ">Francia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Francia</xsl:when> <xsl:when test="$license-locale='nl' ">Frankrijk</xsl:when> <xsl:when test="$license-locale='pt' ">França</xsl:when> <xsl:when test="$license-locale='no' ">Frankrike</xsl:when> <xsl:when test="$license-locale='es_EC' ">Francia</xsl:when> <xsl:when test="$license-locale='nso' ">Fora</xsl:when> <xsl:when test="$license-locale='es_CO' ">Francia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Francia</xsl:when> <xsl:when test="$license-locale='tr' ">France</xsl:when> <xsl:when test="$license-locale='es' ">Francia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Frankreich</xsl:when> <xsl:when test="$license-locale='es_AR' ">Francia</xsl:when> <xsl:when test="$license-locale='zu' ">EFrance</xsl:when> <xsl:when test="$license-locale='ro' ">Franţa</xsl:when> <xsl:when test="$license-locale='pt_PT' ">França</xsl:when> <xsl:when test="$license-locale='en_GB' ">France</xsl:when> <xsl:when test="$license-locale='en_CA' ">France</xsl:when> <xsl:when test="$license-locale='fr' ">France</xsl:when> <xsl:when test="$license-locale='hy' ">France</xsl:when> <xsl:when test="$license-locale='th' ">ฝรั่งเศส</xsl:when> <xsl:when test="$license-locale='hr' ">Francuska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">法國</xsl:when> <xsl:when test="$license-locale='da' ">Frankrig</xsl:when> <xsl:when test="$license-locale='fr_CH' ">France</xsl:when> <xsl:when test="$license-locale='fi' ">Ranska</xsl:when> <xsl:when test="$license-locale='hu' ">Franciaország</xsl:when> <xsl:when test="$license-locale='ja' ">フランス</xsl:when> <xsl:when test="$license-locale='fr_CA' ">France</xsl:when> <xsl:when test="$license-locale='he' ">צרפת</xsl:when> <xsl:when test="$license-locale='fr_LU' "> France</xsl:when> <xsl:when test="$license-locale='de' ">Frankreich</xsl:when> <xsl:when test="$license-locale='sr' ">Француска</xsl:when> <xsl:when test="$license-locale='ko' ">France</xsl:when> <xsl:when test="$license-locale='sv' ">Frankrike</xsl:when> <xsl:when test="$license-locale='mk' ">Франција</xsl:when> <xsl:when test="$license-locale='st' ">France</xsl:when> <xsl:when test="$license-locale='zh_HK' ">法國</xsl:when> <xsl:when test="$license-locale='it_CH' ">Francia</xsl:when> <xsl:when test="$license-locale='pl' ">Francja</xsl:when> <xsl:when test="$license-locale='ms' ">Perancis</xsl:when> <xsl:when test="$license-locale='sl' ">Francija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='de' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Germany</xsl:when> <xsl:when test="$license-locale='el' ">Γερμανία</xsl:when> <xsl:when test="$license-locale='eo' ">Germanio</xsl:when> <xsl:when test="$license-locale='en' ">Germany</xsl:when> <xsl:when test="$license-locale='es_PR' ">Alemania</xsl:when> <xsl:when test="$license-locale='af' ">Duitsland</xsl:when> <xsl:when test="$license-locale='vi' ">Germany</xsl:when> <xsl:when test="$license-locale='ca' ">Alemanya</xsl:when> <xsl:when test="$license-locale='it' ">Germania</xsl:when> <xsl:when test="$license-locale='eu' ">Alemania</xsl:when> <xsl:when test="$license-locale='es_PE' ">Alemania</xsl:when> <xsl:when test="$license-locale='bg' ">Германия</xsl:when> <xsl:when test="$license-locale='en_US' ">Germany</xsl:when> <xsl:when test="$license-locale='ga' ">Germany</xsl:when> <xsl:when test="$license-locale='en_SG' ">Germany</xsl:when> <xsl:when test="$license-locale='cs' ">Germany</xsl:when> <xsl:when test="$license-locale='zh' ">德国</xsl:when> <xsl:when test="$license-locale='en_HK' ">Germany</xsl:when> <xsl:when test="$license-locale='gl' ">Alemaña</xsl:when> <xsl:when test="$license-locale='id' ">Germany</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Nemačka</xsl:when> <xsl:when test="$license-locale='de_CH' ">Deutschland</xsl:when> <xsl:when test="$license-locale='es_MX' ">Alemania</xsl:when> <xsl:when test="$license-locale='es_GT' ">Alemania</xsl:when> <xsl:when test="$license-locale='nl' ">Duitsland</xsl:when> <xsl:when test="$license-locale='pt' ">Alemanha</xsl:when> <xsl:when test="$license-locale='no' ">Tyskland</xsl:when> <xsl:when test="$license-locale='es_EC' ">Alemania</xsl:when> <xsl:when test="$license-locale='nso' ">Jeremane</xsl:when> <xsl:when test="$license-locale='es_CO' ">Alemania</xsl:when> <xsl:when test="$license-locale='es_CL' ">Alemania</xsl:when> <xsl:when test="$license-locale='tr' ">Germany</xsl:when> <xsl:when test="$license-locale='es' ">Alemania</xsl:when> <xsl:when test="$license-locale='de_AT' ">Deutschland</xsl:when> <xsl:when test="$license-locale='es_AR' ">Alemania</xsl:when> <xsl:when test="$license-locale='zu' ">Ejalimane</xsl:when> <xsl:when test="$license-locale='ro' ">Germania</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Alemanha</xsl:when> <xsl:when test="$license-locale='en_GB' ">Germany</xsl:when> <xsl:when test="$license-locale='en_CA' ">Germany</xsl:when> <xsl:when test="$license-locale='fr' ">Allemagne</xsl:when> <xsl:when test="$license-locale='hy' ">Germany</xsl:when> <xsl:when test="$license-locale='th' ">เยอรมนี</xsl:when> <xsl:when test="$license-locale='hr' ">Njemačka</xsl:when> <xsl:when test="$license-locale='zh_TW' ">德國</xsl:when> <xsl:when test="$license-locale='da' ">Tyskland</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Allemagne</xsl:when> <xsl:when test="$license-locale='fi' ">Saksa</xsl:when> <xsl:when test="$license-locale='hu' ">Németország</xsl:when> <xsl:when test="$license-locale='ja' ">ドイツ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Allemagne</xsl:when> <xsl:when test="$license-locale='he' ">גרמניה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Allemagne</xsl:when> <xsl:when test="$license-locale='de' ">Deutschland</xsl:when> <xsl:when test="$license-locale='sr' ">Немачка</xsl:when> <xsl:when test="$license-locale='ko' ">Germany</xsl:when> <xsl:when test="$license-locale='sv' ">Tyskland</xsl:when> <xsl:when test="$license-locale='mk' ">Германија</xsl:when> <xsl:when test="$license-locale='st' ">Germany</xsl:when> <xsl:when test="$license-locale='zh_HK' ">德國</xsl:when> <xsl:when test="$license-locale='it_CH' ">Germania</xsl:when> <xsl:when test="$license-locale='pl' ">Niemcy</xsl:when> <xsl:when test="$license-locale='ms' "><NAME></xsl:when> <xsl:when test="$license-locale='sl' ">Nemčija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='il' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Israel</xsl:when> <xsl:when test="$license-locale='el' ">Ισραήλ</xsl:when> <xsl:when test="$license-locale='eo' ">Israelo</xsl:when> <xsl:when test="$license-locale='en' ">Israel</xsl:when> <xsl:when test="$license-locale='es_PR' ">Israel</xsl:when> <xsl:when test="$license-locale='af' ">Israel</xsl:when> <xsl:when test="$license-locale='vi' ">Israel</xsl:when> <xsl:when test="$license-locale='ca' ">Israel</xsl:when> <xsl:when test="$license-locale='it' ">Israel</xsl:when> <xsl:when test="$license-locale='eu' ">Israel</xsl:when> <xsl:when test="$license-locale='es_PE' ">Israel</xsl:when> <xsl:when test="$license-locale='bg' ">Израел</xsl:when> <xsl:when test="$license-locale='en_US' ">Israel</xsl:when> <xsl:when test="$license-locale='ga' ">Israel</xsl:when> <xsl:when test="$license-locale='en_SG' ">Israel</xsl:when> <xsl:when test="$license-locale='cs' ">Israel</xsl:when> <xsl:when test="$license-locale='zh' ">以色列</xsl:when> <xsl:when test="$license-locale='en_HK' ">Israel</xsl:when> <xsl:when test="$license-locale='gl' ">Israel</xsl:when> <xsl:when test="$license-locale='id' ">Israel</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Izrael</xsl:when> <xsl:when test="$license-locale='de_CH' ">Israel</xsl:when> <xsl:when test="$license-locale='es_MX' ">Israel</xsl:when> <xsl:when test="$license-locale='es_GT' ">Israel</xsl:when> <xsl:when test="$license-locale='nl' ">Israël</xsl:when> <xsl:when test="$license-locale='pt' ">Israel</xsl:when> <xsl:when test="$license-locale='no' ">Israel</xsl:when> <xsl:when test="$license-locale='es_EC' ">Israel</xsl:when> <xsl:when test="$license-locale='nso' ">Isiraele</xsl:when> <xsl:when test="$license-locale='es_CO' ">Israel</xsl:when> <xsl:when test="$license-locale='es_CL' ">Israel</xsl:when> <xsl:when test="$license-locale='tr' ">Israel</xsl:when> <xsl:when test="$license-locale='es' ">Israel</xsl:when> <xsl:when test="$license-locale='de_AT' ">Israel</xsl:when> <xsl:when test="$license-locale='es_AR' ">Israel</xsl:when> <xsl:when test="$license-locale='zu' ">E-Israel</xsl:when> <xsl:when test="$license-locale='ro' ">Israel</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Israel</xsl:when> <xsl:when test="$license-locale='en_GB' ">Israel</xsl:when> <xsl:when test="$license-locale='en_CA' ">Israel</xsl:when> <xsl:when test="$license-locale='fr' ">Israël</xsl:when> <xsl:when test="$license-locale='hy' ">Israel</xsl:when> <xsl:when test="$license-locale='th' ">อิสราเอล</xsl:when> <xsl:when test="$license-locale='hr' ">Izrael</xsl:when> <xsl:when test="$license-locale='zh_TW' ">以色列</xsl:when> <xsl:when test="$license-locale='da' ">Israel</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Israël</xsl:when> <xsl:when test="$license-locale='fi' ">Israel</xsl:when> <xsl:when test="$license-locale='hu' ">Izrael</xsl:when> <xsl:when test="$license-locale='ja' ">イスラエル</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Israël</xsl:when> <xsl:when test="$license-locale='he' ">ישראל</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Israël</xsl:when> <xsl:when test="$license-locale='de' ">Israel</xsl:when> <xsl:when test="$license-locale='sr' ">Израел</xsl:when> <xsl:when test="$license-locale='ko' ">Israel</xsl:when> <xsl:when test="$license-locale='sv' ">Israel</xsl:when> <xsl:when test="$license-locale='mk' ">Израел</xsl:when> <xsl:when test="$license-locale='st' ">Israel</xsl:when> <xsl:when test="$license-locale='zh_HK' ">以色列</xsl:when> <xsl:when test="$license-locale='it_CH' ">Israel</xsl:when> <xsl:when test="$license-locale='pl' ">Izrael</xsl:when> <xsl:when test="$license-locale='ms' ">Isreal</xsl:when> <xsl:when test="$license-locale='sl' ">Izrael</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='in' "> <xsl:choose> <xsl:when test="$license-locale='az' ">India</xsl:when> <xsl:when test="$license-locale='el' ">Ινδία</xsl:when> <xsl:when test="$license-locale='eo' ">Barato</xsl:when> <xsl:when test="$license-locale='en' ">India</xsl:when> <xsl:when test="$license-locale='es_PR' ">India</xsl:when> <xsl:when test="$license-locale='af' ">Indië</xsl:when> <xsl:when test="$license-locale='vi' ">India</xsl:when> <xsl:when test="$license-locale='ca' ">Índia</xsl:when> <xsl:when test="$license-locale='it' ">India</xsl:when> <xsl:when test="$license-locale='eu' ">India</xsl:when> <xsl:when test="$license-locale='es_PE' ">India</xsl:when> <xsl:when test="$license-locale='bg' ">Индия</xsl:when> <xsl:when test="$license-locale='en_US' ">India</xsl:when> <xsl:when test="$license-locale='ga' ">India</xsl:when> <xsl:when test="$license-locale='en_SG' ">India</xsl:when> <xsl:when test="$license-locale='cs' ">India</xsl:when> <xsl:when test="$license-locale='zh' ">印度</xsl:when> <xsl:when test="$license-locale='en_HK' ">India</xsl:when> <xsl:when test="$license-locale='gl' ">India</xsl:when> <xsl:when test="$license-locale='id' ">India</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Indija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Indien</xsl:when> <xsl:when test="$license-locale='es_MX' ">India</xsl:when> <xsl:when test="$license-locale='es_GT' ">India</xsl:when> <xsl:when test="$license-locale='nl' ">India</xsl:when> <xsl:when test="$license-locale='pt' ">India</xsl:when> <xsl:when test="$license-locale='no' ">India</xsl:when> <xsl:when test="$license-locale='es_EC' ">India</xsl:when> <xsl:when test="$license-locale='nso' ">India</xsl:when> <xsl:when test="$license-locale='es_CO' ">India</xsl:when> <xsl:when test="$license-locale='es_CL' ">India</xsl:when> <xsl:when test="$license-locale='tr' ">India</xsl:when> <xsl:when test="$license-locale='es' ">India</xsl:when> <xsl:when test="$license-locale='de_AT' ">Indien</xsl:when> <xsl:when test="$license-locale='es_AR' ">India</xsl:when> <xsl:when test="$license-locale='zu' ">Endiya</xsl:when> <xsl:when test="$license-locale='ro' ">India</xsl:when> <xsl:when test="$license-locale='pt_PT' ">India</xsl:when> <xsl:when test="$license-locale='en_GB' ">India</xsl:when> <xsl:when test="$license-locale='en_CA' ">India</xsl:when> <xsl:when test="$license-locale='fr' ">Inde</xsl:when> <xsl:when test="$license-locale='hy' ">India</xsl:when> <xsl:when test="$license-locale='th' ">อินเดีย</xsl:when> <xsl:when test="$license-locale='hr' ">Indija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">印度</xsl:when> <xsl:when test="$license-locale='da' ">Indien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Inde</xsl:when> <xsl:when test="$license-locale='fi' ">Intia</xsl:when> <xsl:when test="$license-locale='hu' ">India</xsl:when> <xsl:when test="$license-locale='ja' ">インド</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Inde</xsl:when> <xsl:when test="$license-locale='he' ">הודו</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Inde</xsl:when> <xsl:when test="$license-locale='de' ">Indien</xsl:when> <xsl:when test="$license-locale='sr' ">Индија</xsl:when> <xsl:when test="$license-locale='ko' ">India</xsl:when> <xsl:when test="$license-locale='sv' ">Indien</xsl:when> <xsl:when test="$license-locale='mk' ">Индија</xsl:when> <xsl:when test="$license-locale='st' ">India</xsl:when> <xsl:when test="$license-locale='zh_HK' ">印度</xsl:when> <xsl:when test="$license-locale='it_CH' ">India</xsl:when> <xsl:when test="$license-locale='pl' ">Indie</xsl:when> <xsl:when test="$license-locale='ms' ">India</xsl:when> <xsl:when test="$license-locale='sl' ">Indija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='it' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Italy</xsl:when> <xsl:when test="$license-locale='el' ">Ιταλία</xsl:when> <xsl:when test="$license-locale='eo' ">Italio</xsl:when> <xsl:when test="$license-locale='en' ">Italy</xsl:when> <xsl:when test="$license-locale='es_PR' ">Italia</xsl:when> <xsl:when test="$license-locale='af' ">Italië</xsl:when> <xsl:when test="$license-locale='vi' ">Italy</xsl:when> <xsl:when test="$license-locale='ca' ">Itàlia</xsl:when> <xsl:when test="$license-locale='it' ">Italia</xsl:when> <xsl:when test="$license-locale='eu' ">Italia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Italia</xsl:when> <xsl:when test="$license-locale='bg' ">Италия</xsl:when> <xsl:when test="$license-locale='en_US' ">Italy</xsl:when> <xsl:when test="$license-locale='ga' ">Italy</xsl:when> <xsl:when test="$license-locale='en_SG' ">Italy</xsl:when> <xsl:when test="$license-locale='cs' ">Italy</xsl:when> <xsl:when test="$license-locale='zh' ">意大利</xsl:when> <xsl:when test="$license-locale='en_HK' ">Italy</xsl:when> <xsl:when test="$license-locale='gl' ">Italia</xsl:when> <xsl:when test="$license-locale='id' ">Italy</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Italija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Italien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Italia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Italia</xsl:when> <xsl:when test="$license-locale='nl' ">Italië</xsl:when> <xsl:when test="$license-locale='pt' ">Itália</xsl:when> <xsl:when test="$license-locale='no' ">Italia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Italia</xsl:when> <xsl:when test="$license-locale='nso' ">Italia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Italia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Italia</xsl:when> <xsl:when test="$license-locale='tr' ">Italy</xsl:when> <xsl:when test="$license-locale='es' ">Italia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Italien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Italia</xsl:when> <xsl:when test="$license-locale='zu' ">i-Italy</xsl:when> <xsl:when test="$license-locale='ro' ">Italia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Itália</xsl:when> <xsl:when test="$license-locale='en_GB' ">Italy</xsl:when> <xsl:when test="$license-locale='en_CA' ">Italy</xsl:when> <xsl:when test="$license-locale='fr' ">Italie</xsl:when> <xsl:when test="$license-locale='hy' ">Italy</xsl:when> <xsl:when test="$license-locale='th' ">อิตาลี</xsl:when> <xsl:when test="$license-locale='hr' ">Italija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">義大利</xsl:when> <xsl:when test="$license-locale='da' ">Italien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Italie</xsl:when> <xsl:when test="$license-locale='fi' ">Italia</xsl:when> <xsl:when test="$license-locale='hu' ">Olaszország</xsl:when> <xsl:when test="$license-locale='ja' ">イタリア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Italie</xsl:when> <xsl:when test="$license-locale='he' ">איטליה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Italie</xsl:when> <xsl:when test="$license-locale='de' ">Italien</xsl:when> <xsl:when test="$license-locale='sr' ">Италија</xsl:when> <xsl:when test="$license-locale='ko' ">Italy</xsl:when> <xsl:when test="$license-locale='sv' ">Italien</xsl:when> <xsl:when test="$license-locale='mk' ">Италија</xsl:when> <xsl:when test="$license-locale='st' ">Italy</xsl:when> <xsl:when test="$license-locale='zh_HK' ">義大利</xsl:when> <xsl:when test="$license-locale='it_CH' ">Italia</xsl:when> <xsl:when test="$license-locale='pl' ">Włochy</xsl:when> <xsl:when test="$license-locale='ms' ">Itali</xsl:when> <xsl:when test="$license-locale='sl' ">Italija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='jp' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Japan</xsl:when> <xsl:when test="$license-locale='el' ">Ιαπωνία</xsl:when> <xsl:when test="$license-locale='eo' ">Japanio</xsl:when> <xsl:when test="$license-locale='en' ">Japan</xsl:when> <xsl:when test="$license-locale='es_PR' ">Japón</xsl:when> <xsl:when test="$license-locale='af' ">Japan</xsl:when> <xsl:when test="$license-locale='vi' ">Japan</xsl:when> <xsl:when test="$license-locale='ca' ">Japó</xsl:when> <xsl:when test="$license-locale='it' ">Giappone</xsl:when> <xsl:when test="$license-locale='eu' ">Japonia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Japón</xsl:when> <xsl:when test="$license-locale='bg' ">Япония</xsl:when> <xsl:when test="$license-locale='en_US' ">Japan</xsl:when> <xsl:when test="$license-locale='ga' ">Japan</xsl:when> <xsl:when test="$license-locale='en_SG' ">Japan</xsl:when> <xsl:when test="$license-locale='cs' ">Japan</xsl:when> <xsl:when test="$license-locale='zh' ">日本</xsl:when> <xsl:when test="$license-locale='en_HK' ">Japan</xsl:when> <xsl:when test="$license-locale='gl' ">Xapón</xsl:when> <xsl:when test="$license-locale='id' ">Japan</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Japan</xsl:when> <xsl:when test="$license-locale='de_CH' ">Japan</xsl:when> <xsl:when test="$license-locale='es_MX' ">Japón</xsl:when> <xsl:when test="$license-locale='es_GT' ">Japón</xsl:when> <xsl:when test="$license-locale='nl' ">Japan</xsl:when> <xsl:when test="$license-locale='pt' ">Japão</xsl:when> <xsl:when test="$license-locale='no' ">Japan</xsl:when> <xsl:when test="$license-locale='es_EC' ">Japón</xsl:when> <xsl:when test="$license-locale='nso' ">Japane</xsl:when> <xsl:when test="$license-locale='es_CO' ">Japón</xsl:when> <xsl:when test="$license-locale='es_CL' ">Japón</xsl:when> <xsl:when test="$license-locale='tr' ">Japan</xsl:when> <xsl:when test="$license-locale='es' ">Japón</xsl:when> <xsl:when test="$license-locale='de_AT' ">Japan</xsl:when> <xsl:when test="$license-locale='es_AR' ">Japón</xsl:when> <xsl:when test="$license-locale='zu' ">Ejapane</xsl:when> <xsl:when test="$license-locale='ro' ">Japonia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Japão</xsl:when> <xsl:when test="$license-locale='en_GB' ">Japan</xsl:when> <xsl:when test="$license-locale='en_CA' ">Japan</xsl:when> <xsl:when test="$license-locale='fr' ">Japon</xsl:when> <xsl:when test="$license-locale='hy' ">Japan</xsl:when> <xsl:when test="$license-locale='th' ">่ญี่ปุ่น</xsl:when> <xsl:when test="$license-locale='hr' ">Japan</xsl:when> <xsl:when test="$license-locale='zh_TW' ">日本</xsl:when> <xsl:when test="$license-locale='da' ">Japan</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Japon</xsl:when> <xsl:when test="$license-locale='fi' ">Japani</xsl:when> <xsl:when test="$license-locale='hu' ">Japán</xsl:when> <xsl:when test="$license-locale='ja' ">日本</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Japon</xsl:when> <xsl:when test="$license-locale='he' ">יפן</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Japon</xsl:when> <xsl:when test="$license-locale='de' ">Japan</xsl:when> <xsl:when test="$license-locale='sr' ">Јапан</xsl:when> <xsl:when test="$license-locale='ko' ">Japan</xsl:when> <xsl:when test="$license-locale='sv' ">Japan</xsl:when> <xsl:when test="$license-locale='mk' ">Јапонија</xsl:when> <xsl:when test="$license-locale='st' ">Japan</xsl:when> <xsl:when test="$license-locale='zh_HK' ">日本</xsl:when> <xsl:when test="$license-locale='it_CH' ">Giappone</xsl:when> <xsl:when test="$license-locale='pl' ">Japonia</xsl:when> <xsl:when test="$license-locale='ms' ">Jepun</xsl:when> <xsl:when test="$license-locale='sl' ">Japonska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='kr' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Korea</xsl:when> <xsl:when test="$license-locale='el' ">Κορέα</xsl:when> <xsl:when test="$license-locale='eo' ">Koreio</xsl:when> <xsl:when test="$license-locale='en' ">Korea</xsl:when> <xsl:when test="$license-locale='es_PR' ">Corea</xsl:when> <xsl:when test="$license-locale='af' ">Korea</xsl:when> <xsl:when test="$license-locale='vi' ">Korea</xsl:when> <xsl:when test="$license-locale='ca' ">Corea</xsl:when> <xsl:when test="$license-locale='it' ">Corea</xsl:when> <xsl:when test="$license-locale='eu' ">Korea</xsl:when> <xsl:when test="$license-locale='es_PE' ">Corea</xsl:when> <xsl:when test="$license-locale='bg' ">Корея</xsl:when> <xsl:when test="$license-locale='en_US' ">Korea</xsl:when> <xsl:when test="$license-locale='ga' ">Korea</xsl:when> <xsl:when test="$license-locale='en_SG' ">Korea</xsl:when> <xsl:when test="$license-locale='cs' ">Korea</xsl:when> <xsl:when test="$license-locale='zh' ">韩国</xsl:when> <xsl:when test="$license-locale='en_HK' ">Korea</xsl:when> <xsl:when test="$license-locale='gl' ">Corea</xsl:when> <xsl:when test="$license-locale='id' ">Korea</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Koreja</xsl:when> <xsl:when test="$license-locale='de_CH' ">Süd-Korea</xsl:when> <xsl:when test="$license-locale='es_MX' ">Corea</xsl:when> <xsl:when test="$license-locale='es_GT' ">Corea</xsl:when> <xsl:when test="$license-locale='nl' ">Korea</xsl:when> <xsl:when test="$license-locale='pt' ">Coréia</xsl:when> <xsl:when test="$license-locale='no' ">Korea</xsl:when> <xsl:when test="$license-locale='es_EC' ">Corea</xsl:when> <xsl:when test="$license-locale='nso' ">Korea</xsl:when> <xsl:when test="$license-locale='es_CO' ">Corea</xsl:when> <xsl:when test="$license-locale='es_CL' ">Corea</xsl:when> <xsl:when test="$license-locale='tr' ">Korea</xsl:when> <xsl:when test="$license-locale='es' ">Corea</xsl:when> <xsl:when test="$license-locale='de_AT' ">Süd-Korea</xsl:when> <xsl:when test="$license-locale='es_AR' ">Corea del Sur</xsl:when> <xsl:when test="$license-locale='zu' ">iKorea</xsl:when> <xsl:when test="$license-locale='ro' ">Correa de Sud</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Correia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Korea</xsl:when> <xsl:when test="$license-locale='en_CA' ">Korea</xsl:when> <xsl:when test="$license-locale='fr' ">Corée</xsl:when> <xsl:when test="$license-locale='hy' ">Korea</xsl:when> <xsl:when test="$license-locale='th' ">เกาหลี</xsl:when> <xsl:when test="$license-locale='hr' ">Koreja</xsl:when> <xsl:when test="$license-locale='zh_TW' ">韓國</xsl:when> <xsl:when test="$license-locale='da' ">Korea</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Corée</xsl:when> <xsl:when test="$license-locale='fi' ">Korea</xsl:when> <xsl:when test="$license-locale='hu' ">Dél-Korea</xsl:when> <xsl:when test="$license-locale='ja' ">韓国</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Corée</xsl:when> <xsl:when test="$license-locale='he' ">קוריאה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Corée</xsl:when> <xsl:when test="$license-locale='de' ">Süd-Korea</xsl:when> <xsl:when test="$license-locale='sr' ">Кореја</xsl:when> <xsl:when test="$license-locale='ko' ">대한민국</xsl:when> <xsl:when test="$license-locale='sv' ">Korea</xsl:when> <xsl:when test="$license-locale='mk' ">Кореја</xsl:when> <xsl:when test="$license-locale='st' ">Korea</xsl:when> <xsl:when test="$license-locale='zh_HK' ">韓國</xsl:when> <xsl:when test="$license-locale='it_CH' ">Corea</xsl:when> <xsl:when test="$license-locale='pl' ">Korea</xsl:when> <xsl:when test="$license-locale='ms' ">Korea</xsl:when> <xsl:when test="$license-locale='sl' ">Koreja</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='mk' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Macedonia</xsl:when> <xsl:when test="$license-locale='el' ">Macedonia</xsl:when> <xsl:when test="$license-locale='eo' ">Macedonia</xsl:when> <xsl:when test="$license-locale='en' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Macedonia</xsl:when> <xsl:when test="$license-locale='af' ">Macedonia</xsl:when> <xsl:when test="$license-locale='vi' ">Macedonia</xsl:when> <xsl:when test="$license-locale='ca' ">Macedònia</xsl:when> <xsl:when test="$license-locale='it' ">Macedonia</xsl:when> <xsl:when test="$license-locale='eu' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Macedonia</xsl:when> <xsl:when test="$license-locale='bg' ">Македония</xsl:when> <xsl:when test="$license-locale='en_US' ">Macedonia</xsl:when> <xsl:when test="$license-locale='ga' ">Macedonia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Macedonia</xsl:when> <xsl:when test="$license-locale='cs' ">Macedonia</xsl:when> <xsl:when test="$license-locale='zh' ">马其顿</xsl:when> <xsl:when test="$license-locale='en_HK' ">Macedonia</xsl:when> <xsl:when test="$license-locale='gl' ">Macedonia</xsl:when> <xsl:when test="$license-locale='id' ">Macedonia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Makedonija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Mazedonien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Macedonia</xsl:when> <xsl:when test="$license-locale='nl' ">Macedonië</xsl:when> <xsl:when test="$license-locale='pt' ">Macedonia</xsl:when> <xsl:when test="$license-locale='no' ">Makedonia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Macedonia</xsl:when> <xsl:when test="$license-locale='nso' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Macedonia</xsl:when> <xsl:when test="$license-locale='tr' ">Macedonia</xsl:when> <xsl:when test="$license-locale='es' ">Macedonia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Mazedonien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Macedonia</xsl:when> <xsl:when test="$license-locale='zu' ">Macedonia</xsl:when> <xsl:when test="$license-locale='ro' ">Macedonia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Macedonia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Macedonia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Macedonia</xsl:when> <xsl:when test="$license-locale='fr' ">Macédonie</xsl:when> <xsl:when test="$license-locale='hy' ">Macedonia</xsl:when> <xsl:when test="$license-locale='th' ">มาซิโดเนีย</xsl:when> <xsl:when test="$license-locale='hr' ">Makedonija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">馬其頓</xsl:when> <xsl:when test="$license-locale='da' ">Macedonia</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Macédonie</xsl:when> <xsl:when test="$license-locale='fi' ">Makedonia</xsl:when> <xsl:when test="$license-locale='hu' ">Macedonia</xsl:when> <xsl:when test="$license-locale='ja' ">Macedonia</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Macédonie</xsl:when> <xsl:when test="$license-locale='he' ">מקדוניה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Macédonie</xsl:when> <xsl:when test="$license-locale='de' ">Mazedonien</xsl:when> <xsl:when test="$license-locale='sr' ">Македонија</xsl:when> <xsl:when test="$license-locale='ko' ">Macedonia</xsl:when> <xsl:when test="$license-locale='sv' ">Makedonien</xsl:when> <xsl:when test="$license-locale='mk' ">Macedonia</xsl:when> <xsl:when test="$license-locale='st' ">Macedonia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">馬其頓</xsl:when> <xsl:when test="$license-locale='it_CH' ">Macedonia</xsl:when> <xsl:when test="$license-locale='pl' ">Macedonia</xsl:when> <xsl:when test="$license-locale='ms' ">Macedonia</xsl:when> <xsl:when test="$license-locale='sl' ">Makedonija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='my' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Malaysia</xsl:when> <xsl:when test="$license-locale='el' ">Μαλαισία</xsl:when> <xsl:when test="$license-locale='eo' ">Malajzio</xsl:when> <xsl:when test="$license-locale='en' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Malasia</xsl:when> <xsl:when test="$license-locale='af' ">Maleisië</xsl:when> <xsl:when test="$license-locale='vi' ">Malaysia</xsl:when> <xsl:when test="$license-locale='ca' ">Malàisia</xsl:when> <xsl:when test="$license-locale='it' ">Malaysia</xsl:when> <xsl:when test="$license-locale='eu' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Malasia</xsl:when> <xsl:when test="$license-locale='bg' ">Малайзия</xsl:when> <xsl:when test="$license-locale='en_US' ">Malaysia</xsl:when> <xsl:when test="$license-locale='ga' ">Malaysia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Malaysia</xsl:when> <xsl:when test="$license-locale='cs' ">Malaysia</xsl:when> <xsl:when test="$license-locale='zh' ">马来西亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Malaysia</xsl:when> <xsl:when test="$license-locale='gl' ">Malaysia</xsl:when> <xsl:when test="$license-locale='id' ">Malaysia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Malezija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_MX' ">Malasia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Malasia</xsl:when> <xsl:when test="$license-locale='nl' ">Maleisië</xsl:when> <xsl:when test="$license-locale='pt' ">Malaysia</xsl:when> <xsl:when test="$license-locale='no' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Malasia</xsl:when> <xsl:when test="$license-locale='nso' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Malasia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Malasia</xsl:when> <xsl:when test="$license-locale='tr' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es' ">Malasia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Malaysia</xsl:when> <xsl:when test="$license-locale='es_AR' ">Malasia</xsl:when> <xsl:when test="$license-locale='zu' ">iMalaysia</xsl:when> <xsl:when test="$license-locale='ro' ">Malaiezia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Malaysia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Malaysia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Malaysia</xsl:when> <xsl:when test="$license-locale='fr' ">Malaisie</xsl:when> <xsl:when test="$license-locale='hy' ">Malaysia</xsl:when> <xsl:when test="$license-locale='th' ">มาเลเซีย</xsl:when> <xsl:when test="$license-locale='hr' ">Malezija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">馬來西亞</xsl:when> <xsl:when test="$license-locale='da' ">Malaysia</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Malaisie</xsl:when> <xsl:when test="$license-locale='fi' ">Malesia</xsl:when> <xsl:when test="$license-locale='hu' ">Malajzia</xsl:when> <xsl:when test="$license-locale='ja' ">マレーシア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Malaisie</xsl:when> <xsl:when test="$license-locale='he' ">מלזיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Malaisie</xsl:when> <xsl:when test="$license-locale='de' ">Malaysia</xsl:when> <xsl:when test="$license-locale='sr' ">Малезија</xsl:when> <xsl:when test="$license-locale='ko' ">Malaysia</xsl:when> <xsl:when test="$license-locale='sv' ">Malaysia</xsl:when> <xsl:when test="$license-locale='mk' ">Малезија</xsl:when> <xsl:when test="$license-locale='st' ">Malaysia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">馬來西亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Malaysia</xsl:when> <xsl:when test="$license-locale='pl' ">Malezja</xsl:when> <xsl:when test="$license-locale='ms' ">Malaysia</xsl:when> <xsl:when test="$license-locale='sl' ">Malezija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='mt' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Malta</xsl:when> <xsl:when test="$license-locale='el' ">Μάλτα</xsl:when> <xsl:when test="$license-locale='eo' ">Malto</xsl:when> <xsl:when test="$license-locale='en' ">Malta</xsl:when> <xsl:when test="$license-locale='es_PR' ">Malta</xsl:when> <xsl:when test="$license-locale='af' ">Malta</xsl:when> <xsl:when test="$license-locale='vi' ">Malta</xsl:when> <xsl:when test="$license-locale='ca' ">Malta</xsl:when> <xsl:when test="$license-locale='it' ">Malta</xsl:when> <xsl:when test="$license-locale='eu' ">Malta</xsl:when> <xsl:when test="$license-locale='es_PE' ">Malta</xsl:when> <xsl:when test="$license-locale='bg' ">Малта</xsl:when> <xsl:when test="$license-locale='en_US' ">Malta</xsl:when> <xsl:when test="$license-locale='ga' ">Malta</xsl:when> <xsl:when test="$license-locale='en_SG' ">Malta</xsl:when> <xsl:when test="$license-locale='cs' ">Malta</xsl:when> <xsl:when test="$license-locale='zh' ">马耳他</xsl:when> <xsl:when test="$license-locale='en_HK' ">Malta</xsl:when> <xsl:when test="$license-locale='gl' ">Malta</xsl:when> <xsl:when test="$license-locale='id' ">Malta</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Malta</xsl:when> <xsl:when test="$license-locale='de_CH' ">Malta</xsl:when> <xsl:when test="$license-locale='es_MX' ">Malta</xsl:when> <xsl:when test="$license-locale='es_GT' ">Malta</xsl:when> <xsl:when test="$license-locale='nl' ">Malta</xsl:when> <xsl:when test="$license-locale='pt' ">Malta</xsl:when> <xsl:when test="$license-locale='no' ">Malta</xsl:when> <xsl:when test="$license-locale='es_EC' ">Malta</xsl:when> <xsl:when test="$license-locale='nso' ">Malta</xsl:when> <xsl:when test="$license-locale='es_CO' ">Malta</xsl:when> <xsl:when test="$license-locale='es_CL' ">Malta</xsl:when> <xsl:when test="$license-locale='tr' ">Malta</xsl:when> <xsl:when test="$license-locale='es' ">Malta</xsl:when> <xsl:when test="$license-locale='de_AT' ">Malta</xsl:when> <xsl:when test="$license-locale='es_AR' ">Malta</xsl:when> <xsl:when test="$license-locale='zu' ">eMalta</xsl:when> <xsl:when test="$license-locale='ro' ">Malta</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Malta</xsl:when> <xsl:when test="$license-locale='en_GB' ">Malta</xsl:when> <xsl:when test="$license-locale='en_CA' ">Malta</xsl:when> <xsl:when test="$license-locale='fr' ">Malte</xsl:when> <xsl:when test="$license-locale='hy' ">Malta</xsl:when> <xsl:when test="$license-locale='th' ">มอลตา</xsl:when> <xsl:when test="$license-locale='hr' ">Malta</xsl:when> <xsl:when test="$license-locale='zh_TW' ">馬爾他</xsl:when> <xsl:when test="$license-locale='da' ">Malta</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Malte</xsl:when> <xsl:when test="$license-locale='fi' ">Malta</xsl:when> <xsl:when test="$license-locale='hu' ">Malta</xsl:when> <xsl:when test="$license-locale='ja' ">マルタ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Malte</xsl:when> <xsl:when test="$license-locale='he' ">מאלטה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Malte</xsl:when> <xsl:when test="$license-locale='de' ">Malta</xsl:when> <xsl:when test="$license-locale='sr' ">Малта</xsl:when> <xsl:when test="$license-locale='ko' ">Malta</xsl:when> <xsl:when test="$license-locale='sv' ">Malta</xsl:when> <xsl:when test="$license-locale='mk' ">Малта</xsl:when> <xsl:when test="$license-locale='st' ">Malta</xsl:when> <xsl:when test="$license-locale='zh_HK' ">馬爾他</xsl:when> <xsl:when test="$license-locale='it_CH' ">Malta</xsl:when> <xsl:when test="$license-locale='pl' ">Malta</xsl:when> <xsl:when test="$license-locale='ms' ">Malta</xsl:when> <xsl:when test="$license-locale='sl' ">Malta</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='mx' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Mexico</xsl:when> <xsl:when test="$license-locale='el' ">Μεξικό</xsl:when> <xsl:when test="$license-locale='eo' ">Meksiko</xsl:when> <xsl:when test="$license-locale='en' ">Mexico</xsl:when> <xsl:when test="$license-locale='es_PR' ">México</xsl:when> <xsl:when test="$license-locale='af' ">Mexiko</xsl:when> <xsl:when test="$license-locale='vi' ">Mexico</xsl:when> <xsl:when test="$license-locale='ca' ">Mèxic</xsl:when> <xsl:when test="$license-locale='it' ">Mexico</xsl:when> <xsl:when test="$license-locale='eu' ">Mexiko</xsl:when> <xsl:when test="$license-locale='es_PE' ">México</xsl:when> <xsl:when test="$license-locale='bg' ">Мексико</xsl:when> <xsl:when test="$license-locale='en_US' ">Mexico</xsl:when> <xsl:when test="$license-locale='ga' ">Mexico</xsl:when> <xsl:when test="$license-locale='en_SG' ">Mexico</xsl:when> <xsl:when test="$license-locale='cs' ">Mexico</xsl:when> <xsl:when test="$license-locale='zh' ">墨西哥</xsl:when> <xsl:when test="$license-locale='en_HK' ">Mexico</xsl:when> <xsl:when test="$license-locale='gl' ">Mexico</xsl:when> <xsl:when test="$license-locale='id' ">Mexico</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Meksiko</xsl:when> <xsl:when test="$license-locale='de_CH' ">Mexiko</xsl:when> <xsl:when test="$license-locale='es_MX' ">México</xsl:when> <xsl:when test="$license-locale='es_GT' ">México</xsl:when> <xsl:when test="$license-locale='nl' ">Mexico</xsl:when> <xsl:when test="$license-locale='pt' ">Mexico</xsl:when> <xsl:when test="$license-locale='no' ">Mexiko</xsl:when> <xsl:when test="$license-locale='es_EC' ">México</xsl:when> <xsl:when test="$license-locale='nso' ">Mexico</xsl:when> <xsl:when test="$license-locale='es_CO' ">México</xsl:when> <xsl:when test="$license-locale='es_CL' ">México</xsl:when> <xsl:when test="$license-locale='tr' ">Mexico</xsl:when> <xsl:when test="$license-locale='es' ">México</xsl:when> <xsl:when test="$license-locale='de_AT' ">Mexiko</xsl:when> <xsl:when test="$license-locale='es_AR' ">México</xsl:when> <xsl:when test="$license-locale='zu' ">EMexico</xsl:when> <xsl:when test="$license-locale='ro' ">Mexic</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Mexico</xsl:when> <xsl:when test="$license-locale='en_GB' ">Mexico</xsl:when> <xsl:when test="$license-locale='en_CA' ">Mexico</xsl:when> <xsl:when test="$license-locale='fr' ">Mexique</xsl:when> <xsl:when test="$license-locale='hy' ">Mexico</xsl:when> <xsl:when test="$license-locale='th' ">เม็กซิโก</xsl:when> <xsl:when test="$license-locale='hr' ">Meksiko</xsl:when> <xsl:when test="$license-locale='zh_TW' ">墨西哥</xsl:when> <xsl:when test="$license-locale='da' ">Mexico</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Mexique</xsl:when> <xsl:when test="$license-locale='fi' ">Meksiko</xsl:when> <xsl:when test="$license-locale='hu' ">Mexikó</xsl:when> <xsl:when test="$license-locale='ja' ">メキシコ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Mexique</xsl:when> <xsl:when test="$license-locale='he' ">מקסיקו</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Mexique</xsl:when> <xsl:when test="$license-locale='de' ">Mexiko</xsl:when> <xsl:when test="$license-locale='sr' ">Мексико</xsl:when> <xsl:when test="$license-locale='ko' ">Mexico</xsl:when> <xsl:when test="$license-locale='sv' ">Mexiko</xsl:when> <xsl:when test="$license-locale='mk' ">Мексико</xsl:when> <xsl:when test="$license-locale='st' ">Mexico</xsl:when> <xsl:when test="$license-locale='zh_HK' ">墨西哥</xsl:when> <xsl:when test="$license-locale='it_CH' ">Mexico</xsl:when> <xsl:when test="$license-locale='pl' ">Meksyk</xsl:when> <xsl:when test="$license-locale='ms' ">Mexico</xsl:when> <xsl:when test="$license-locale='sl' ">Mehika</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='nl' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Netherlands</xsl:when> <xsl:when test="$license-locale='el' ">Ολλανδία</xsl:when> <xsl:when test="$license-locale='eo' ">Nederlando</xsl:when> <xsl:when test="$license-locale='en' ">Netherlands</xsl:when> <xsl:when test="$license-locale='es_PR' ">Holanda</xsl:when> <xsl:when test="$license-locale='af' ">Nederland</xsl:when> <xsl:when test="$license-locale='vi' ">Netherlands</xsl:when> <xsl:when test="$license-locale='ca' ">Holanda</xsl:when> <xsl:when test="$license-locale='it' ">Olanda</xsl:when> <xsl:when test="$license-locale='eu' ">Herbehereak</xsl:when> <xsl:when test="$license-locale='es_PE' ">Holanda</xsl:when> <xsl:when test="$license-locale='bg' ">Холандия</xsl:when> <xsl:when test="$license-locale='en_US' ">Netherlands</xsl:when> <xsl:when test="$license-locale='ga' ">Netherlands</xsl:when> <xsl:when test="$license-locale='en_SG' ">Netherlands</xsl:when> <xsl:when test="$license-locale='cs' ">Netherlands</xsl:when> <xsl:when test="$license-locale='zh' ">荷兰</xsl:when> <xsl:when test="$license-locale='en_HK' ">Netherlands</xsl:when> <xsl:when test="$license-locale='gl' ">Holanda</xsl:when> <xsl:when test="$license-locale='id' ">Netherlands</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Holandija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Niederlande</xsl:when> <xsl:when test="$license-locale='es_MX' ">Holanda</xsl:when> <xsl:when test="$license-locale='es_GT' ">Holanda</xsl:when> <xsl:when test="$license-locale='nl' ">Nederland</xsl:when> <xsl:when test="$license-locale='pt' ">Holanda</xsl:when> <xsl:when test="$license-locale='no' ">Nederland</xsl:when> <xsl:when test="$license-locale='es_EC' ">Holanda</xsl:when> <xsl:when test="$license-locale='nso' ">Netherlands</xsl:when> <xsl:when test="$license-locale='es_CO' ">Holanda</xsl:when> <xsl:when test="$license-locale='es_CL' ">Holanda</xsl:when> <xsl:when test="$license-locale='tr' ">Netherlands</xsl:when> <xsl:when test="$license-locale='es' ">Holanda</xsl:when> <xsl:when test="$license-locale='de_AT' ">Niederlande</xsl:when> <xsl:when test="$license-locale='es_AR' ">Holanda</xsl:when> <xsl:when test="$license-locale='zu' ">iNetherlands</xsl:when> <xsl:when test="$license-locale='ro' ">Olanda</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Holanda</xsl:when> <xsl:when test="$license-locale='en_GB' ">Netherlands</xsl:when> <xsl:when test="$license-locale='en_CA' ">Netherlands</xsl:when> <xsl:when test="$license-locale='fr' ">Pays-Bas</xsl:when> <xsl:when test="$license-locale='hy' ">Netherlands</xsl:when> <xsl:when test="$license-locale='th' ">เนเธอร์แลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">Nizozemska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">荷蘭</xsl:when> <xsl:when test="$license-locale='da' ">Holland</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Pays-Bas</xsl:when> <xsl:when test="$license-locale='fi' ">Hollanti</xsl:when> <xsl:when test="$license-locale='hu' ">Hollandia</xsl:when> <xsl:when test="$license-locale='ja' ">オランダ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Pays-Bas</xsl:when> <xsl:when test="$license-locale='he' ">הולנד</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Pays-Bas</xsl:when> <xsl:when test="$license-locale='de' ">Niederlande</xsl:when> <xsl:when test="$license-locale='sr' ">Холандија</xsl:when> <xsl:when test="$license-locale='ko' ">Netherlands</xsl:when> <xsl:when test="$license-locale='sv' ">Nederländerna</xsl:when> <xsl:when test="$license-locale='mk' ">Холандија</xsl:when> <xsl:when test="$license-locale='st' ">Netherlands</xsl:when> <xsl:when test="$license-locale='zh_HK' ">荷蘭</xsl:when> <xsl:when test="$license-locale='it_CH' ">Olanda</xsl:when> <xsl:when test="$license-locale='pl' ">Holandia</xsl:when> <xsl:when test="$license-locale='ms' ">Netherlands</xsl:when> <xsl:when test="$license-locale='sl' ">Nizozemska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='pe' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Peru</xsl:when> <xsl:when test="$license-locale='el' ">Περού</xsl:when> <xsl:when test="$license-locale='eo' ">Peruo</xsl:when> <xsl:when test="$license-locale='en' ">Peru</xsl:when> <xsl:when test="$license-locale='es_PR' ">Perú</xsl:when> <xsl:when test="$license-locale='af' ">Peru</xsl:when> <xsl:when test="$license-locale='vi' ">Peru</xsl:when> <xsl:when test="$license-locale='ca' ">Perú</xsl:when> <xsl:when test="$license-locale='it' ">Peru</xsl:when> <xsl:when test="$license-locale='eu' ">Peru</xsl:when> <xsl:when test="$license-locale='es_PE' ">Perú</xsl:when> <xsl:when test="$license-locale='bg' ">Перу</xsl:when> <xsl:when test="$license-locale='en_US' ">Peru</xsl:when> <xsl:when test="$license-locale='ga' ">Peru</xsl:when> <xsl:when test="$license-locale='en_SG' ">Peru</xsl:when> <xsl:when test="$license-locale='cs' ">Peru</xsl:when> <xsl:when test="$license-locale='zh' ">秘鲁</xsl:when> <xsl:when test="$license-locale='en_HK' ">Peru</xsl:when> <xsl:when test="$license-locale='gl' ">Peru</xsl:when> <xsl:when test="$license-locale='id' ">Peru</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Peru</xsl:when> <xsl:when test="$license-locale='de_CH' ">Peru</xsl:when> <xsl:when test="$license-locale='es_MX' ">Perú</xsl:when> <xsl:when test="$license-locale='es_GT' ">Perú</xsl:when> <xsl:when test="$license-locale='nl' ">Peru</xsl:when> <xsl:when test="$license-locale='pt' ">Peru</xsl:when> <xsl:when test="$license-locale='no' ">Peru</xsl:when> <xsl:when test="$license-locale='es_EC' ">Perú</xsl:when> <xsl:when test="$license-locale='nso' ">Peru</xsl:when> <xsl:when test="$license-locale='es_CO' ">Perú</xsl:when> <xsl:when test="$license-locale='es_CL' ">Perú</xsl:when> <xsl:when test="$license-locale='tr' ">Peru</xsl:when> <xsl:when test="$license-locale='es' ">Perú</xsl:when> <xsl:when test="$license-locale='de_AT' ">Peru</xsl:when> <xsl:when test="$license-locale='es_AR' ">Perú</xsl:when> <xsl:when test="$license-locale='zu' ">ePeru</xsl:when> <xsl:when test="$license-locale='ro' ">Peru</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Peru</xsl:when> <xsl:when test="$license-locale='en_GB' ">Peru</xsl:when> <xsl:when test="$license-locale='en_CA' ">Peru</xsl:when> <xsl:when test="$license-locale='fr' ">Pérou</xsl:when> <xsl:when test="$license-locale='hy' ">Peru</xsl:when> <xsl:when test="$license-locale='th' ">เปรู</xsl:when> <xsl:when test="$license-locale='hr' ">Peru</xsl:when> <xsl:when test="$license-locale='zh_TW' ">秘魯</xsl:when> <xsl:when test="$license-locale='da' ">Peru</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Pérou</xsl:when> <xsl:when test="$license-locale='fi' ">Peru</xsl:when> <xsl:when test="$license-locale='hu' ">Peru</xsl:when> <xsl:when test="$license-locale='ja' ">ペルー</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Pérou</xsl:when> <xsl:when test="$license-locale='he' ">פרו</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Pérou</xsl:when> <xsl:when test="$license-locale='de' ">Peru</xsl:when> <xsl:when test="$license-locale='sr' ">Перу</xsl:when> <xsl:when test="$license-locale='ko' ">Peru</xsl:when> <xsl:when test="$license-locale='sv' ">Peru</xsl:when> <xsl:when test="$license-locale='mk' ">Перу</xsl:when> <xsl:when test="$license-locale='st' ">Peru</xsl:when> <xsl:when test="$license-locale='zh_HK' ">秘魯</xsl:when> <xsl:when test="$license-locale='it_CH' ">Peru</xsl:when> <xsl:when test="$license-locale='pl' ">Peru</xsl:when> <xsl:when test="$license-locale='ms' ">Peru</xsl:when> <xsl:when test="$license-locale='sl' ">Peru</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ph' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Philippines</xsl:when> <xsl:when test="$license-locale='el' ">Φιλιππίνες</xsl:when> <xsl:when test="$license-locale='eo' ">Filipinoj</xsl:when> <xsl:when test="$license-locale='en' ">Philippines</xsl:when> <xsl:when test="$license-locale='es_PR' ">Filipinas</xsl:when> <xsl:when test="$license-locale='af' ">Filippyne</xsl:when> <xsl:when test="$license-locale='vi' ">Philippines</xsl:when> <xsl:when test="$license-locale='ca' ">Filipines</xsl:when> <xsl:when test="$license-locale='it' ">Philippines</xsl:when> <xsl:when test="$license-locale='eu' ">Filipinak</xsl:when> <xsl:when test="$license-locale='es_PE' ">Filipinas</xsl:when> <xsl:when test="$license-locale='bg' ">Филипини</xsl:when> <xsl:when test="$license-locale='en_US' ">Philippines</xsl:when> <xsl:when test="$license-locale='ga' ">Philippines</xsl:when> <xsl:when test="$license-locale='en_SG' ">Philippines</xsl:when> <xsl:when test="$license-locale='cs' ">Philippines</xsl:when> <xsl:when test="$license-locale='zh' ">菲律宾</xsl:when> <xsl:when test="$license-locale='en_HK' ">Philippines</xsl:when> <xsl:when test="$license-locale='gl' ">Philippines</xsl:when> <xsl:when test="$license-locale='id' ">Philippines</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Filipini</xsl:when> <xsl:when test="$license-locale='de_CH' ">Philippinen</xsl:when> <xsl:when test="$license-locale='es_MX' ">Filipinas</xsl:when> <xsl:when test="$license-locale='es_GT' ">Filipinas</xsl:when> <xsl:when test="$license-locale='nl' ">Filipijnen</xsl:when> <xsl:when test="$license-locale='pt' ">Philippines</xsl:when> <xsl:when test="$license-locale='no' ">Filippinene</xsl:when> <xsl:when test="$license-locale='es_EC' ">Filipinas</xsl:when> <xsl:when test="$license-locale='nso' ">Philippines</xsl:when> <xsl:when test="$license-locale='es_CO' ">Filipinas</xsl:when> <xsl:when test="$license-locale='es_CL' ">Filipinas</xsl:when> <xsl:when test="$license-locale='tr' ">Philippines</xsl:when> <xsl:when test="$license-locale='es' ">Filipinas</xsl:when> <xsl:when test="$license-locale='de_AT' ">Philippinen</xsl:when> <xsl:when test="$license-locale='es_AR' ">Filipinas</xsl:when> <xsl:when test="$license-locale='zu' ">iPhilippines</xsl:when> <xsl:when test="$license-locale='ro' ">Filipine</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Philippines</xsl:when> <xsl:when test="$license-locale='en_GB' ">Philippines</xsl:when> <xsl:when test="$license-locale='en_CA' ">Philippines</xsl:when> <xsl:when test="$license-locale='fr' ">Philippines</xsl:when> <xsl:when test="$license-locale='hy' ">Philippines</xsl:when> <xsl:when test="$license-locale='th' ">ฟิลิปปินส์</xsl:when> <xsl:when test="$license-locale='hr' ">Filipini</xsl:when> <xsl:when test="$license-locale='zh_TW' ">菲律賓</xsl:when> <xsl:when test="$license-locale='da' ">Filippinerne</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Philippines</xsl:when> <xsl:when test="$license-locale='fi' ">Filippiinit</xsl:when> <xsl:when test="$license-locale='hu' ">Fülöp-szigetek</xsl:when> <xsl:when test="$license-locale='ja' ">フィリピン</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Philippines</xsl:when> <xsl:when test="$license-locale='he' ">פיליפינים</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Philippines</xsl:when> <xsl:when test="$license-locale='de' ">Philippinen</xsl:when> <xsl:when test="$license-locale='sr' ">Филипини</xsl:when> <xsl:when test="$license-locale='ko' ">Philippines</xsl:when> <xsl:when test="$license-locale='sv' ">Filippinerna</xsl:when> <xsl:when test="$license-locale='mk' ">Филипини</xsl:when> <xsl:when test="$license-locale='st' ">Philippines</xsl:when> <xsl:when test="$license-locale='zh_HK' ">菲律賓</xsl:when> <xsl:when test="$license-locale='it_CH' ">Philippines</xsl:when> <xsl:when test="$license-locale='pl' ">Filipiny</xsl:when> <xsl:when test="$license-locale='ms' ">Filipina</xsl:when> <xsl:when test="$license-locale='sl' ">Filipini</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='pl' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Poland</xsl:when> <xsl:when test="$license-locale='el' ">Πολωνία</xsl:when> <xsl:when test="$license-locale='eo' ">Pollando</xsl:when> <xsl:when test="$license-locale='en' ">Poland</xsl:when> <xsl:when test="$license-locale='es_PR' ">Polonia</xsl:when> <xsl:when test="$license-locale='af' ">Pole</xsl:when> <xsl:when test="$license-locale='vi' ">Poland</xsl:when> <xsl:when test="$license-locale='ca' ">Polònia</xsl:when> <xsl:when test="$license-locale='it' ">Polonia</xsl:when> <xsl:when test="$license-locale='eu' ">Polonia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Polonia</xsl:when> <xsl:when test="$license-locale='bg' ">Полша</xsl:when> <xsl:when test="$license-locale='en_US' ">Poland</xsl:when> <xsl:when test="$license-locale='ga' ">Poland</xsl:when> <xsl:when test="$license-locale='en_SG' ">Poland</xsl:when> <xsl:when test="$license-locale='cs' ">Poland</xsl:when> <xsl:when test="$license-locale='zh' ">波兰</xsl:when> <xsl:when test="$license-locale='en_HK' ">Poland</xsl:when> <xsl:when test="$license-locale='gl' ">Polonia</xsl:when> <xsl:when test="$license-locale='id' ">Poland</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Poljska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Polen</xsl:when> <xsl:when test="$license-locale='es_MX' ">Polonia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Polonia</xsl:when> <xsl:when test="$license-locale='nl' ">Polen</xsl:when> <xsl:when test="$license-locale='pt' ">Polônia</xsl:when> <xsl:when test="$license-locale='no' ">Polen</xsl:when> <xsl:when test="$license-locale='es_EC' ">Polonia</xsl:when> <xsl:when test="$license-locale='nso' ">Poland</xsl:when> <xsl:when test="$license-locale='es_CO' ">Polonia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Polonia</xsl:when> <xsl:when test="$license-locale='tr' ">Poland</xsl:when> <xsl:when test="$license-locale='es' ">Polonia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Polen</xsl:when> <xsl:when test="$license-locale='es_AR' ">Polonia</xsl:when> <xsl:when test="$license-locale='zu' ">EPoland</xsl:when> <xsl:when test="$license-locale='ro' ">Polonia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Polonia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Poland</xsl:when> <xsl:when test="$license-locale='en_CA' ">Poland</xsl:when> <xsl:when test="$license-locale='fr' ">Pologne</xsl:when> <xsl:when test="$license-locale='hy' ">Poland</xsl:when> <xsl:when test="$license-locale='th' ">โปแลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">Poljska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">波蘭</xsl:when> <xsl:when test="$license-locale='da' ">Polen</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Pologne</xsl:when> <xsl:when test="$license-locale='fi' ">Puola</xsl:when> <xsl:when test="$license-locale='hu' ">Lengyelország</xsl:when> <xsl:when test="$license-locale='ja' ">ポーランド</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Pologne</xsl:when> <xsl:when test="$license-locale='he' ">פולין</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Pologne</xsl:when> <xsl:when test="$license-locale='de' ">Polen</xsl:when> <xsl:when test="$license-locale='sr' ">Пољска</xsl:when> <xsl:when test="$license-locale='ko' ">Poland</xsl:when> <xsl:when test="$license-locale='sv' ">Polen</xsl:when> <xsl:when test="$license-locale='mk' ">Полска</xsl:when> <xsl:when test="$license-locale='st' ">Poland</xsl:when> <xsl:when test="$license-locale='zh_HK' ">波蘭</xsl:when> <xsl:when test="$license-locale='it_CH' ">Polonia</xsl:when> <xsl:when test="$license-locale='pl' ">Polska</xsl:when> <xsl:when test="$license-locale='ms' ">Poland</xsl:when> <xsl:when test="$license-locale='sl' ">Poljska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='pt' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Portugal</xsl:when> <xsl:when test="$license-locale='el' ">Πορτογαλία</xsl:when> <xsl:when test="$license-locale='eo' ">Portugalio</xsl:when> <xsl:when test="$license-locale='en' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_PR' ">Portugal</xsl:when> <xsl:when test="$license-locale='af' ">Portugal</xsl:when> <xsl:when test="$license-locale='vi' ">Portugal</xsl:when> <xsl:when test="$license-locale='ca' ">Portugal</xsl:when> <xsl:when test="$license-locale='it' ">Portogallo</xsl:when> <xsl:when test="$license-locale='eu' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_PE' ">Portugal</xsl:when> <xsl:when test="$license-locale='bg' ">Португалия</xsl:when> <xsl:when test="$license-locale='en_US' ">Portugal</xsl:when> <xsl:when test="$license-locale='ga' ">Portugal</xsl:when> <xsl:when test="$license-locale='en_SG' ">Portugal</xsl:when> <xsl:when test="$license-locale='cs' ">Portugal</xsl:when> <xsl:when test="$license-locale='zh' ">葡萄牙</xsl:when> <xsl:when test="$license-locale='en_HK' ">Portugal</xsl:when> <xsl:when test="$license-locale='gl' ">Portugal</xsl:when> <xsl:when test="$license-locale='id' ">Portugal</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Portugalija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_MX' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_GT' ">Portugal</xsl:when> <xsl:when test="$license-locale='nl' ">Portugal</xsl:when> <xsl:when test="$license-locale='pt' ">Portugal</xsl:when> <xsl:when test="$license-locale='no' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_EC' ">Portugal</xsl:when> <xsl:when test="$license-locale='nso' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_CO' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_CL' ">Portugal</xsl:when> <xsl:when test="$license-locale='tr' ">Portugal</xsl:when> <xsl:when test="$license-locale='es' ">Portugal</xsl:when> <xsl:when test="$license-locale='de_AT' ">Portugal</xsl:when> <xsl:when test="$license-locale='es_AR' ">Portugal</xsl:when> <xsl:when test="$license-locale='zu' ">iPortugal</xsl:when> <xsl:when test="$license-locale='ro' ">Portugalia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Portugal</xsl:when> <xsl:when test="$license-locale='en_GB' ">Portugal</xsl:when> <xsl:when test="$license-locale='en_CA' ">Portugal</xsl:when> <xsl:when test="$license-locale='fr' ">Portugal</xsl:when> <xsl:when test="$license-locale='hy' ">Portugal</xsl:when> <xsl:when test="$license-locale='th' ">โปรตุเกส</xsl:when> <xsl:when test="$license-locale='hr' ">Portugal</xsl:when> <xsl:when test="$license-locale='zh_TW' ">葡萄牙</xsl:when> <xsl:when test="$license-locale='da' ">Portugal</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Portugal</xsl:when> <xsl:when test="$license-locale='fi' ">Portugali</xsl:when> <xsl:when test="$license-locale='hu' ">Portugália</xsl:when> <xsl:when test="$license-locale='ja' ">ポルトガル</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Portugal</xsl:when> <xsl:when test="$license-locale='he' ">פורטוגל</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Portugal</xsl:when> <xsl:when test="$license-locale='de' ">Portugal</xsl:when> <xsl:when test="$license-locale='sr' ">Португалија</xsl:when> <xsl:when test="$license-locale='ko' ">Portugal</xsl:when> <xsl:when test="$license-locale='sv' ">Portugal</xsl:when> <xsl:when test="$license-locale='mk' ">Португалија</xsl:when> <xsl:when test="$license-locale='st' ">Portugal</xsl:when> <xsl:when test="$license-locale='zh_HK' ">葡萄牙</xsl:when> <xsl:when test="$license-locale='it_CH' ">Portogallo</xsl:when> <xsl:when test="$license-locale='pl' ">Portugalia</xsl:when> <xsl:when test="$license-locale='ms' ">Portugal</xsl:when> <xsl:when test="$license-locale='sl' ">Portugalska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='si' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Slovenia</xsl:when> <xsl:when test="$license-locale='el' ">Σλοβενία</xsl:when> <xsl:when test="$license-locale='eo' ">Slovenio</xsl:when> <xsl:when test="$license-locale='en' ">Slovenia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='af' ">Slowenië</xsl:when> <xsl:when test="$license-locale='vi' ">Slovenia</xsl:when> <xsl:when test="$license-locale='ca' ">Eslovènia</xsl:when> <xsl:when test="$license-locale='it' ">Slovenia</xsl:when> <xsl:when test="$license-locale='eu' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='bg' ">Словения</xsl:when> <xsl:when test="$license-locale='en_US' ">Slovenia</xsl:when> <xsl:when test="$license-locale='ga' ">Slovenia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Slovenia</xsl:when> <xsl:when test="$license-locale='cs' ">Slovenia</xsl:when> <xsl:when test="$license-locale='zh' ">斯洛文尼亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Slovenia</xsl:when> <xsl:when test="$license-locale='gl' ">Slovenia</xsl:when> <xsl:when test="$license-locale='id' ">Slovenia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Slovenija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Slowenien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='nl' ">Slovenië</xsl:when> <xsl:when test="$license-locale='pt' ">Slovenia</xsl:when> <xsl:when test="$license-locale='no' ">Slovenia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='nso' ">Slovenia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='tr' ">Slovenia</xsl:when> <xsl:when test="$license-locale='es' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Slowenien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Eslovenia</xsl:when> <xsl:when test="$license-locale='zu' ">iSlovenia</xsl:when> <xsl:when test="$license-locale='ro' ">Slovenia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Slovenia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Slovenia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Slovenia</xsl:when> <xsl:when test="$license-locale='fr' ">Slovénie</xsl:when> <xsl:when test="$license-locale='hy' ">Slovenia</xsl:when> <xsl:when test="$license-locale='th' ">สโลวาเนีย</xsl:when> <xsl:when test="$license-locale='hr' ">Slovenija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">斯洛維尼亞</xsl:when> <xsl:when test="$license-locale='da' ">Slovenien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Slovénie</xsl:when> <xsl:when test="$license-locale='fi' ">Slovenia</xsl:when> <xsl:when test="$license-locale='hu' ">Szlovénia</xsl:when> <xsl:when test="$license-locale='ja' ">スロベニア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Slovénie</xsl:when> <xsl:when test="$license-locale='he' ">סלובניה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Slovénie</xsl:when> <xsl:when test="$license-locale='de' ">Slowenien</xsl:when> <xsl:when test="$license-locale='sr' ">Словенија</xsl:when> <xsl:when test="$license-locale='ko' ">Slovenia</xsl:when> <xsl:when test="$license-locale='sv' ">Slovenien</xsl:when> <xsl:when test="$license-locale='mk' ">Словенија</xsl:when> <xsl:when test="$license-locale='st' ">Slovenia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">斯洛維尼亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Slovenia</xsl:when> <xsl:when test="$license-locale='pl' ">Słowenia</xsl:when> <xsl:when test="$license-locale='ms' ">Slovenia</xsl:when> <xsl:when test="$license-locale='sl' ">Slovenija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='za' "> <xsl:choose> <xsl:when test="$license-locale='az' ">South Africa</xsl:when> <xsl:when test="$license-locale='el' ">Νότια Αφρική</xsl:when> <xsl:when test="$license-locale='eo' ">Sud-Afriko</xsl:when> <xsl:when test="$license-locale='en' ">South Africa</xsl:when> <xsl:when test="$license-locale='es_PR' ">Suráfrica</xsl:when> <xsl:when test="$license-locale='af' ">Suid-Afrika</xsl:when> <xsl:when test="$license-locale='vi' ">South Africa</xsl:when> <xsl:when test="$license-locale='ca' ">Sudàfrica</xsl:when> <xsl:when test="$license-locale='it' ">Sud Africa</xsl:when> <xsl:when test="$license-locale='eu' ">Hegoafrika</xsl:when> <xsl:when test="$license-locale='es_PE' ">Suráfrica</xsl:when> <xsl:when test="$license-locale='bg' ">Южна Африка</xsl:when> <xsl:when test="$license-locale='en_US' ">South Africa</xsl:when> <xsl:when test="$license-locale='ga' ">South Africa</xsl:when> <xsl:when test="$license-locale='en_SG' ">South Africa</xsl:when> <xsl:when test="$license-locale='cs' ">South Africa</xsl:when> <xsl:when test="$license-locale='zh' ">南非</xsl:when> <xsl:when test="$license-locale='en_HK' ">South Africa</xsl:when> <xsl:when test="$license-locale='gl' ">Sudáfrica</xsl:when> <xsl:when test="$license-locale='id' ">South Africa</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Južna Afrika</xsl:when> <xsl:when test="$license-locale='de_CH' ">Südafrika</xsl:when> <xsl:when test="$license-locale='es_MX' ">Suráfrica</xsl:when> <xsl:when test="$license-locale='es_GT' ">Sudáfrica</xsl:when> <xsl:when test="$license-locale='nl' ">Zuid-Afrika</xsl:when> <xsl:when test="$license-locale='pt' ">África do Sul</xsl:when> <xsl:when test="$license-locale='no' ">Sør-afrika</xsl:when> <xsl:when test="$license-locale='es_EC' ">Sudáfrica</xsl:when> <xsl:when test="$license-locale='nso' ">Afrika Borwa</xsl:when> <xsl:when test="$license-locale='es_CO' ">Suráfrica</xsl:when> <xsl:when test="$license-locale='es_CL' ">Sudáfrica</xsl:when> <xsl:when test="$license-locale='tr' ">South Africa</xsl:when> <xsl:when test="$license-locale='es' ">Suráfrica</xsl:when> <xsl:when test="$license-locale='de_AT' ">Südafrika</xsl:when> <xsl:when test="$license-locale='es_AR' ">Sudáfrica</xsl:when> <xsl:when test="$license-locale='zu' ">ENingizimu Afrika</xsl:when> <xsl:when test="$license-locale='ro' ">Africa de Sud</xsl:when> <xsl:when test="$license-locale='pt_PT' ">África do Sul</xsl:when> <xsl:when test="$license-locale='en_GB' ">South Africa</xsl:when> <xsl:when test="$license-locale='en_CA' ">South Africa</xsl:when> <xsl:when test="$license-locale='fr' ">Afrique du Sud</xsl:when> <xsl:when test="$license-locale='hy' ">South Africa</xsl:when> <xsl:when test="$license-locale='th' ">แอฟริกาใต้</xsl:when> <xsl:when test="$license-locale='hr' ">Južna Afrika</xsl:when> <xsl:when test="$license-locale='zh_TW' ">南非</xsl:when> <xsl:when test="$license-locale='da' ">Sydafrika</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Afrique du Sud</xsl:when> <xsl:when test="$license-locale='fi' ">Etelä-Afrikka</xsl:when> <xsl:when test="$license-locale='hu' ">Dél-Afrika</xsl:when> <xsl:when test="$license-locale='ja' ">南アフリカ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Afrique du Sud</xsl:when> <xsl:when test="$license-locale='he' ">דרום אפריקה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Afrique du Sud</xsl:when> <xsl:when test="$license-locale='de' ">Südafrika</xsl:when> <xsl:when test="$license-locale='sr' ">Јужна Африка</xsl:when> <xsl:when test="$license-locale='ko' ">South Africa</xsl:when> <xsl:when test="$license-locale='sv' ">Sydafrika</xsl:when> <xsl:when test="$license-locale='mk' ">Јужна Африка</xsl:when> <xsl:when test="$license-locale='st' ">South Africa</xsl:when> <xsl:when test="$license-locale='zh_HK' ">南非</xsl:when> <xsl:when test="$license-locale='it_CH' ">Sud Africa</xsl:when> <xsl:when test="$license-locale='pl' ">Południowa Afryka</xsl:when> <xsl:when test="$license-locale='ms' ">Afrika Selatan</xsl:when> <xsl:when test="$license-locale='sl' ">Južnoafriška Republika</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='es' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Spain</xsl:when> <xsl:when test="$license-locale='el' ">Ισπανία</xsl:when> <xsl:when test="$license-locale='eo' ">Hispanio</xsl:when> <xsl:when test="$license-locale='en' ">Spain</xsl:when> <xsl:when test="$license-locale='es_PR' ">España</xsl:when> <xsl:when test="$license-locale='af' ">Spanje</xsl:when> <xsl:when test="$license-locale='vi' ">Spain</xsl:when> <xsl:when test="$license-locale='ca' ">Espanya</xsl:when> <xsl:when test="$license-locale='it' ">Spagna</xsl:when> <xsl:when test="$license-locale='eu' ">Espainia</xsl:when> <xsl:when test="$license-locale='es_PE' ">España</xsl:when> <xsl:when test="$license-locale='bg' ">Испания</xsl:when> <xsl:when test="$license-locale='en_US' ">Spain</xsl:when> <xsl:when test="$license-locale='ga' ">Spain</xsl:when> <xsl:when test="$license-locale='en_SG' ">Spain</xsl:when> <xsl:when test="$license-locale='cs' ">Spain</xsl:when> <xsl:when test="$license-locale='zh' ">西班牙</xsl:when> <xsl:when test="$license-locale='en_HK' ">Spain</xsl:when> <xsl:when test="$license-locale='gl' ">España</xsl:when> <xsl:when test="$license-locale='id' ">Spain</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Španija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Spanien</xsl:when> <xsl:when test="$license-locale='es_MX' ">España</xsl:when> <xsl:when test="$license-locale='es_GT' ">España</xsl:when> <xsl:when test="$license-locale='nl' ">Spanje</xsl:when> <xsl:when test="$license-locale='pt' ">Espanha</xsl:when> <xsl:when test="$license-locale='no' ">Spania</xsl:when> <xsl:when test="$license-locale='es_EC' ">España</xsl:when> <xsl:when test="$license-locale='nso' ">Sepania</xsl:when> <xsl:when test="$license-locale='es_CO' ">España</xsl:when> <xsl:when test="$license-locale='es_CL' ">España</xsl:when> <xsl:when test="$license-locale='tr' ">Spain</xsl:when> <xsl:when test="$license-locale='es' ">España</xsl:when> <xsl:when test="$license-locale='de_AT' ">Spanien</xsl:when> <xsl:when test="$license-locale='es_AR' ">España</xsl:when> <xsl:when test="$license-locale='zu' ">Espain</xsl:when> <xsl:when test="$license-locale='ro' ">Spania</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Espanha</xsl:when> <xsl:when test="$license-locale='en_GB' ">Spain</xsl:when> <xsl:when test="$license-locale='en_CA' ">Spain</xsl:when> <xsl:when test="$license-locale='fr' ">Espagne</xsl:when> <xsl:when test="$license-locale='hy' ">Spain</xsl:when> <xsl:when test="$license-locale='th' ">สเปน</xsl:when> <xsl:when test="$license-locale='hr' ">Španjolska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">西班牙</xsl:when> <xsl:when test="$license-locale='da' ">Spanien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Espagne</xsl:when> <xsl:when test="$license-locale='fi' ">Espanja</xsl:when> <xsl:when test="$license-locale='hu' ">Spanyolország</xsl:when> <xsl:when test="$license-locale='ja' ">スペイン</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Espagne</xsl:when> <xsl:when test="$license-locale='he' ">ספרד</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Espagne</xsl:when> <xsl:when test="$license-locale='de' ">Spanien</xsl:when> <xsl:when test="$license-locale='sr' ">Шпанија</xsl:when> <xsl:when test="$license-locale='ko' ">Spain</xsl:when> <xsl:when test="$license-locale='sv' ">Spanien</xsl:when> <xsl:when test="$license-locale='mk' ">Шпанија</xsl:when> <xsl:when test="$license-locale='st' ">Spain</xsl:when> <xsl:when test="$license-locale='zh_HK' ">西班牙</xsl:when> <xsl:when test="$license-locale='it_CH' ">Spagna</xsl:when> <xsl:when test="$license-locale='pl' ">Hiszpania</xsl:when> <xsl:when test="$license-locale='ms' ">Sepanyol</xsl:when> <xsl:when test="$license-locale='sl' ">Španija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='se' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Sweden</xsl:when> <xsl:when test="$license-locale='el' ">Σουηδία</xsl:when> <xsl:when test="$license-locale='eo' ">Svedio</xsl:when> <xsl:when test="$license-locale='en' ">Sweden</xsl:when> <xsl:when test="$license-locale='es_PR' ">Suecia</xsl:when> <xsl:when test="$license-locale='af' ">Swede</xsl:when> <xsl:when test="$license-locale='vi' ">Sweden</xsl:when> <xsl:when test="$license-locale='ca' ">Suècia</xsl:when> <xsl:when test="$license-locale='it' ">Sweden</xsl:when> <xsl:when test="$license-locale='eu' ">Suedia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Suecia</xsl:when> <xsl:when test="$license-locale='bg' ">Швеция</xsl:when> <xsl:when test="$license-locale='en_US' ">Sweden</xsl:when> <xsl:when test="$license-locale='ga' ">Sweden</xsl:when> <xsl:when test="$license-locale='en_SG' ">Sweden</xsl:when> <xsl:when test="$license-locale='cs' ">Sweden</xsl:when> <xsl:when test="$license-locale='zh' ">瑞典</xsl:when> <xsl:when test="$license-locale='en_HK' ">Sweden</xsl:when> <xsl:when test="$license-locale='gl' ">Sweden</xsl:when> <xsl:when test="$license-locale='id' ">Sweden</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Švedska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Schweden</xsl:when> <xsl:when test="$license-locale='es_MX' ">Suecia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Suecia</xsl:when> <xsl:when test="$license-locale='nl' ">Zweden</xsl:when> <xsl:when test="$license-locale='pt' ">Sweden</xsl:when> <xsl:when test="$license-locale='no' ">Sverige</xsl:when> <xsl:when test="$license-locale='es_EC' ">Suecia</xsl:when> <xsl:when test="$license-locale='nso' ">Sweden</xsl:when> <xsl:when test="$license-locale='es_CO' ">Suecia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Suecia</xsl:when> <xsl:when test="$license-locale='tr' ">Sweden</xsl:when> <xsl:when test="$license-locale='es' ">Suecia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Schweden</xsl:when> <xsl:when test="$license-locale='es_AR' ">Suecia</xsl:when> <xsl:when test="$license-locale='zu' ">iSweden</xsl:when> <xsl:when test="$license-locale='ro' ">Suedia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Sweden</xsl:when> <xsl:when test="$license-locale='en_GB' ">Sweden</xsl:when> <xsl:when test="$license-locale='en_CA' ">Sweden</xsl:when> <xsl:when test="$license-locale='fr' ">Suède</xsl:when> <xsl:when test="$license-locale='hy' ">Sweden</xsl:when> <xsl:when test="$license-locale='th' ">สวีเดน</xsl:when> <xsl:when test="$license-locale='hr' ">Švedska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">瑞典</xsl:when> <xsl:when test="$license-locale='da' ">Sverige</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Suède</xsl:when> <xsl:when test="$license-locale='fi' ">Ruotsi</xsl:when> <xsl:when test="$license-locale='hu' ">Svédország</xsl:when> <xsl:when test="$license-locale='ja' ">スエーデン</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Suède</xsl:when> <xsl:when test="$license-locale='he' ">שוודיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Suède</xsl:when> <xsl:when test="$license-locale='de' ">Schweden</xsl:when> <xsl:when test="$license-locale='sr' ">Шведска</xsl:when> <xsl:when test="$license-locale='ko' ">Sweden</xsl:when> <xsl:when test="$license-locale='sv' ">Sverige</xsl:when> <xsl:when test="$license-locale='mk' ">Шведска</xsl:when> <xsl:when test="$license-locale='st' ">Sweden</xsl:when> <xsl:when test="$license-locale='zh_HK' ">瑞典</xsl:when> <xsl:when test="$license-locale='it_CH' ">Sweden</xsl:when> <xsl:when test="$license-locale='pl' ">Szwecja</xsl:when> <xsl:when test="$license-locale='ms' ">Sweden</xsl:when> <xsl:when test="$license-locale='sl' ">Švedska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ch' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Switzerland</xsl:when> <xsl:when test="$license-locale='el' ">Ελβετία</xsl:when> <xsl:when test="$license-locale='eo' ">Svislando</xsl:when> <xsl:when test="$license-locale='en' ">Switzerland</xsl:when> <xsl:when test="$license-locale='es_PR' ">Suiza</xsl:when> <xsl:when test="$license-locale='af' ">Switserland</xsl:when> <xsl:when test="$license-locale='vi' ">Switzerland</xsl:when> <xsl:when test="$license-locale='ca' ">Suïssa</xsl:when> <xsl:when test="$license-locale='it' ">Switzerland</xsl:when> <xsl:when test="$license-locale='eu' ">Suitza</xsl:when> <xsl:when test="$license-locale='es_PE' ">Suiza</xsl:when> <xsl:when test="$license-locale='bg' ">Швейцария</xsl:when> <xsl:when test="$license-locale='en_US' ">Switzerland</xsl:when> <xsl:when test="$license-locale='ga' ">Switzerland</xsl:when> <xsl:when test="$license-locale='en_SG' ">Switzerland</xsl:when> <xsl:when test="$license-locale='cs' ">Switzerland</xsl:when> <xsl:when test="$license-locale='zh' ">瑞士</xsl:when> <xsl:when test="$license-locale='en_HK' ">Switzerland</xsl:when> <xsl:when test="$license-locale='gl' ">Switzerland</xsl:when> <xsl:when test="$license-locale='id' ">Switzerland</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Švajcarska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Schweiz</xsl:when> <xsl:when test="$license-locale='es_MX' ">Suiza</xsl:when> <xsl:when test="$license-locale='es_GT' ">Suiza</xsl:when> <xsl:when test="$license-locale='nl' ">Zwitserland</xsl:when> <xsl:when test="$license-locale='pt' ">Switzerland</xsl:when> <xsl:when test="$license-locale='no' ">Sveits</xsl:when> <xsl:when test="$license-locale='es_EC' ">Suiza</xsl:when> <xsl:when test="$license-locale='nso' ">Switzerland</xsl:when> <xsl:when test="$license-locale='es_CO' ">Suiza</xsl:when> <xsl:when test="$license-locale='es_CL' ">Suiza</xsl:when> <xsl:when test="$license-locale='tr' ">Switzerland</xsl:when> <xsl:when test="$license-locale='es' ">Suiza</xsl:when> <xsl:when test="$license-locale='de_AT' ">Schweiz</xsl:when> <xsl:when test="$license-locale='es_AR' ">Suiza</xsl:when> <xsl:when test="$license-locale='zu' ">ESwitzerland</xsl:when> <xsl:when test="$license-locale='ro' ">Elveţia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Switzerland</xsl:when> <xsl:when test="$license-locale='en_GB' ">Switzerland</xsl:when> <xsl:when test="$license-locale='en_CA' ">Switzerland</xsl:when> <xsl:when test="$license-locale='fr' ">Suisse</xsl:when> <xsl:when test="$license-locale='hy' ">Switzerland</xsl:when> <xsl:when test="$license-locale='th' ">สวิสเซอร์แลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">Švicarska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">瑞士</xsl:when> <xsl:when test="$license-locale='da' ">Schweiz</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Suisse</xsl:when> <xsl:when test="$license-locale='fi' ">Sveitsi</xsl:when> <xsl:when test="$license-locale='hu' ">Svájc</xsl:when> <xsl:when test="$license-locale='ja' ">スイス</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Suisse</xsl:when> <xsl:when test="$license-locale='he' ">שוויץ</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Suisse</xsl:when> <xsl:when test="$license-locale='de' ">Schweiz</xsl:when> <xsl:when test="$license-locale='sr' ">Швајцарска</xsl:when> <xsl:when test="$license-locale='ko' ">Switzerland</xsl:when> <xsl:when test="$license-locale='sv' ">Schweiz</xsl:when> <xsl:when test="$license-locale='mk' ">Швајцарија</xsl:when> <xsl:when test="$license-locale='st' ">Switzerland</xsl:when> <xsl:when test="$license-locale='zh_HK' ">瑞士</xsl:when> <xsl:when test="$license-locale='it_CH' ">Switzerland</xsl:when> <xsl:when test="$license-locale='pl' ">Szwajcaria</xsl:when> <xsl:when test="$license-locale='ms' ">Switzerland</xsl:when> <xsl:when test="$license-locale='sl' ">Švica</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='tw' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Taiwan</xsl:when> <xsl:when test="$license-locale='el' ">Ταϊβάν</xsl:when> <xsl:when test="$license-locale='eo' ">Tajvano</xsl:when> <xsl:when test="$license-locale='en' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_PR' ">Taiwan</xsl:when> <xsl:when test="$license-locale='af' ">Taiwan</xsl:when> <xsl:when test="$license-locale='vi' ">Taiwan</xsl:when> <xsl:when test="$license-locale='ca' ">Taiwan</xsl:when> <xsl:when test="$license-locale='it' ">Taiwan</xsl:when> <xsl:when test="$license-locale='eu' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_PE' ">Taiwan</xsl:when> <xsl:when test="$license-locale='bg' ">Тайван</xsl:when> <xsl:when test="$license-locale='en_US' ">Taiwan</xsl:when> <xsl:when test="$license-locale='ga' ">Taiwan</xsl:when> <xsl:when test="$license-locale='en_SG' ">Taiwan</xsl:when> <xsl:when test="$license-locale='cs' ">Taiwan</xsl:when> <xsl:when test="$license-locale='zh' ">台湾</xsl:when> <xsl:when test="$license-locale='en_HK' ">Taiwan</xsl:when> <xsl:when test="$license-locale='gl' ">Taiwan</xsl:when> <xsl:when test="$license-locale='id' ">Taiwan</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Tajvan</xsl:when> <xsl:when test="$license-locale='de_CH' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_MX' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_GT' ">Taiwan</xsl:when> <xsl:when test="$license-locale='nl' ">Taiwan</xsl:when> <xsl:when test="$license-locale='pt' ">Taiwan</xsl:when> <xsl:when test="$license-locale='no' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_EC' ">Taiwan</xsl:when> <xsl:when test="$license-locale='nso' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_CO' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_CL' ">Taiwan</xsl:when> <xsl:when test="$license-locale='tr' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es' ">Taiwan</xsl:when> <xsl:when test="$license-locale='de_AT' ">Taiwan</xsl:when> <xsl:when test="$license-locale='es_AR' ">Taiwan</xsl:when> <xsl:when test="$license-locale='zu' ">iTaiwan</xsl:when> <xsl:when test="$license-locale='ro' ">Taiwan</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Taiwan</xsl:when> <xsl:when test="$license-locale='en_GB' ">Taiwan</xsl:when> <xsl:when test="$license-locale='en_CA' ">Taiwan</xsl:when> <xsl:when test="$license-locale='fr' ">Taiwan</xsl:when> <xsl:when test="$license-locale='hy' ">Taiwan</xsl:when> <xsl:when test="$license-locale='th' ">ไต้หวัน</xsl:when> <xsl:when test="$license-locale='hr' ">Tajvan</xsl:when> <xsl:when test="$license-locale='zh_TW' ">台灣</xsl:when> <xsl:when test="$license-locale='da' ">Taiwan</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Taiwan</xsl:when> <xsl:when test="$license-locale='fi' ">Taiwan</xsl:when> <xsl:when test="$license-locale='hu' ">Tajvan</xsl:when> <xsl:when test="$license-locale='ja' ">台湾(中華民国)</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Taiwan</xsl:when> <xsl:when test="$license-locale='he' ">טאיוואן</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Taiwan</xsl:when> <xsl:when test="$license-locale='de' ">Taiwan</xsl:when> <xsl:when test="$license-locale='sr' ">Тајван</xsl:when> <xsl:when test="$license-locale='ko' ">Taiwan</xsl:when> <xsl:when test="$license-locale='sv' ">Taiwan</xsl:when> <xsl:when test="$license-locale='mk' ">Тајван</xsl:when> <xsl:when test="$license-locale='st' ">Taiwan</xsl:when> <xsl:when test="$license-locale='zh_HK' ">台灣</xsl:when> <xsl:when test="$license-locale='it_CH' ">Taiwan</xsl:when> <xsl:when test="$license-locale='pl' ">Tajwan</xsl:when> <xsl:when test="$license-locale='ms' ">Taiwan</xsl:when> <xsl:when test="$license-locale='sl' ">Tajvan</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='uk' "> <xsl:choose> <xsl:when test="$license-locale='az' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='el' ">Η.Β: Αγγλία &amp; Ουαλία</xsl:when> <xsl:when test="$license-locale='eo' ">Britio: <NAME></xsl:when> <xsl:when test="$license-locale='en' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='es_PR' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='af' ">VK: Engeland en Wallis</xsl:when> <xsl:when test="$license-locale='vi' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='ca' ">Anglaterra i País de Gales</xsl:when> <xsl:when test="$license-locale='it' ">Inghilterra &amp; Galles</xsl:when> <xsl:when test="$license-locale='eu' ">Ingalaterra eta Gales</xsl:when> <xsl:when test="$license-locale='es_PE' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='bg' ">Обединено кралство: Англия и Уелс</xsl:when> <xsl:when test="$license-locale='en_US' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='ga' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='en_SG' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='cs' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='zh' ">英国:英格兰和威尔士</xsl:when> <xsl:when test="$license-locale='en_HK' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='gl' ">Inglaterra e País de Gales</xsl:when> <xsl:when test="$license-locale='id' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">VB: Engleska i Vels</xsl:when> <xsl:when test="$license-locale='de_CH' ">England &amp; Wales</xsl:when> <xsl:when test="$license-locale='es_MX' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='es_GT' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='nl' ">Engeland &amp; Wales</xsl:when> <xsl:when test="$license-locale='pt' ">Reino Unido</xsl:when> <xsl:when test="$license-locale='no' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='es_EC' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='nso' ">UK: Engelane &amp; Wales</xsl:when> <xsl:when test="$license-locale='es_CO' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='es_CL' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='tr' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='es' ">Inglaterra y País de Gales</xsl:when> <xsl:when test="$license-locale='de_AT' ">England &amp; Wales</xsl:when> <xsl:when test="$license-locale='es_AR' ">Reino Unido: Inglaterra y Gales</xsl:when> <xsl:when test="$license-locale='zu' ">E-UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='ro' ">Marea Britanie: Anglia&amp;Ţara Galilor</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Reino Unido</xsl:when> <xsl:when test="$license-locale='en_GB' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='en_CA' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='fr' ">Royaume-Uni : Angleterre &amp; Pays de Galles</xsl:when> <xsl:when test="$license-locale='hy' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='th' ">สหราชอาณาจักร: อังกฤษและเวลส์</xsl:when> <xsl:when test="$license-locale='hr' ">VB: Engleska i Wales</xsl:when> <xsl:when test="$license-locale='zh_TW' ">英國: 英格蘭及威爾斯</xsl:when> <xsl:when test="$license-locale='da' ">England og Wales</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Royaume-Uni : Angleterre &amp; Pays de Galles</xsl:when> <xsl:when test="$license-locale='fi' ">Englanti ja Wales</xsl:when> <xsl:when test="$license-locale='hu' ">UK: Anglia és Wales</xsl:when> <xsl:when test="$license-locale='ja' ">イングランド&ウェールズ(英)</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Royaume-Uni</xsl:when> <xsl:when test="$license-locale='he' ">אנגליה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Royaume-Uni : Angleterre &amp; Pays de Galles</xsl:when> <xsl:when test="$license-locale='de' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='sr' ">ВБ: Енглеска и Велс</xsl:when> <xsl:when test="$license-locale='ko' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='sv' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='mk' ">Велика Британија: Англија и Велс</xsl:when> <xsl:when test="$license-locale='st' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='zh_HK' ">英國: 英格蘭及威爾斯</xsl:when> <xsl:when test="$license-locale='it_CH' ">Inghilterra &amp; Galles</xsl:when> <xsl:when test="$license-locale='pl' ">Anglia i Walia</xsl:when> <xsl:when test="$license-locale='ms' ">UK: England &amp; Wales</xsl:when> <xsl:when test="$license-locale='sl' ">Združeno kraljestvo: Anglija in Wales</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='scotland' "> <xsl:choose> <xsl:when test="$license-locale='az' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='el' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='eo' ">Britio: Skotlando</xsl:when> <xsl:when test="$license-locale='en' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='es_PR' ">Escocia</xsl:when> <xsl:when test="$license-locale='af' ">VK: Skotland</xsl:when> <xsl:when test="$license-locale='vi' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='ca' ">Escòcia</xsl:when> <xsl:when test="$license-locale='it' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='eu' ">Eskozia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Escocia</xsl:when> <xsl:when test="$license-locale='bg' ">Обединено кралство: Шотландия</xsl:when> <xsl:when test="$license-locale='en_US' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='ga' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='en_SG' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='cs' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='zh' ">英国:苏格兰</xsl:when> <xsl:when test="$license-locale='en_HK' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='gl' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='id' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">VB: Škotska</xsl:when> <xsl:when test="$license-locale='de_CH' ">Schottland</xsl:when> <xsl:when test="$license-locale='es_MX' ">Escocia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Escocia</xsl:when> <xsl:when test="$license-locale='nl' ">Schotland</xsl:when> <xsl:when test="$license-locale='pt' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='no' ">UK: Skottland</xsl:when> <xsl:when test="$license-locale='es_EC' ">Escocia</xsl:when> <xsl:when test="$license-locale='nso' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='es_CO' ">Escocia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Escocia</xsl:when> <xsl:when test="$license-locale='tr' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='es' ">Escocia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Schottland</xsl:when> <xsl:when test="$license-locale='es_AR' ">Reino Unido: Escocia</xsl:when> <xsl:when test="$license-locale='zu' ">E-UK: Scotland</xsl:when> <xsl:when test="$license-locale='ro' ">Marea Britanie: Scoţia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='en_GB' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='en_CA' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='fr' ">Royaume-Uni : Ecosse</xsl:when> <xsl:when test="$license-locale='hy' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='th' ">สหราชอาณาจักร : สกอตแลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">VB: Škotska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">英國: 蘇格蘭</xsl:when> <xsl:when test="$license-locale='da' ">Skotland</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Royaume-Uni : Ecosse</xsl:when> <xsl:when test="$license-locale='fi' ">Isobritania: Scotland</xsl:when> <xsl:when test="$license-locale='hu' ">UK: Skócia</xsl:when> <xsl:when test="$license-locale='ja' ">スコットランド(英)</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Royaume-Uni : Ecosse</xsl:when> <xsl:when test="$license-locale='he' ">סקוטלנד</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Royaume-Uni : Ecosse</xsl:when> <xsl:when test="$license-locale='de' ">Schottland</xsl:when> <xsl:when test="$license-locale='sr' ">ВБ: Шкотска</xsl:when> <xsl:when test="$license-locale='ko' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='sv' ">UK: Skottland</xsl:when> <xsl:when test="$license-locale='mk' ">Велика Британија: Шкотска</xsl:when> <xsl:when test="$license-locale='st' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='zh_HK' ">英國: 蘇格蘭</xsl:when> <xsl:when test="$license-locale='it_CH' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='pl' ">Szkocja</xsl:when> <xsl:when test="$license-locale='ms' ">UK: Scotland</xsl:when> <xsl:when test="$license-locale='sl' ">Združeno kraljestvo: Škotska</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='us' "> <xsl:choose> <xsl:when test="$license-locale='az' ">United States</xsl:when> <xsl:when test="$license-locale='el' ">Ηνωμένες Πολιτείες</xsl:when> <xsl:when test="$license-locale='eo' ">Usono</xsl:when> <xsl:when test="$license-locale='en' ">United States</xsl:when> <xsl:when test="$license-locale='es_PR' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='af' ">Verenigde State</xsl:when> <xsl:when test="$license-locale='vi' ">United States</xsl:when> <xsl:when test="$license-locale='ca' ">Estats Units d'Amèrica</xsl:when> <xsl:when test="$license-locale='it' ">United States</xsl:when> <xsl:when test="$license-locale='eu' ">Estatu Batuak</xsl:when> <xsl:when test="$license-locale='es_PE' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='bg' ">САЩ</xsl:when> <xsl:when test="$license-locale='en_US' ">United States</xsl:when> <xsl:when test="$license-locale='ga' ">United States</xsl:when> <xsl:when test="$license-locale='en_SG' ">United States</xsl:when> <xsl:when test="$license-locale='cs' ">United States</xsl:when> <xsl:when test="$license-locale='zh' ">美国</xsl:when> <xsl:when test="$license-locale='en_HK' ">United States</xsl:when> <xsl:when test="$license-locale='gl' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='id' ">United States</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">SAD</xsl:when> <xsl:when test="$license-locale='de_CH' ">Vereinigte Staaten von Amerika</xsl:when> <xsl:when test="$license-locale='es_MX' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='es_GT' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='nl' ">Verenigde Staten</xsl:when> <xsl:when test="$license-locale='pt' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='no' ">USA</xsl:when> <xsl:when test="$license-locale='es_EC' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='nso' ">United States</xsl:when> <xsl:when test="$license-locale='es_CO' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='es_CL' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='tr' ">United States</xsl:when> <xsl:when test="$license-locale='es' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='de_AT' ">Vereinigte Staaten von Amerika</xsl:when> <xsl:when test="$license-locale='es_AR' ">Estados Unidos de Norteamérica</xsl:when> <xsl:when test="$license-locale='zu' ">E-United States</xsl:when> <xsl:when test="$license-locale='ro' ">Statele Unite ale Americii</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Estados Unidos</xsl:when> <xsl:when test="$license-locale='en_GB' ">United States</xsl:when> <xsl:when test="$license-locale='en_CA' ">United States</xsl:when> <xsl:when test="$license-locale='fr' ">Etats-Unis</xsl:when> <xsl:when test="$license-locale='hy' ">United States</xsl:when> <xsl:when test="$license-locale='th' ">สหรัฐอเมริกา</xsl:when> <xsl:when test="$license-locale='hr' ">SAD</xsl:when> <xsl:when test="$license-locale='zh_TW' ">美國</xsl:when> <xsl:when test="$license-locale='da' ">USA</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Etats-Unis</xsl:when> <xsl:when test="$license-locale='fi' ">Yhdysvallat</xsl:when> <xsl:when test="$license-locale='hu' ">Egyesült Államok</xsl:when> <xsl:when test="$license-locale='ja' ">アメリカ合衆国</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Etats-Unis</xsl:when> <xsl:when test="$license-locale='he' ">ארה"ב</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Etats-Unis</xsl:when> <xsl:when test="$license-locale='de' ">Vereinigte Staaten von Amerika</xsl:when> <xsl:when test="$license-locale='sr' ">САД</xsl:when> <xsl:when test="$license-locale='ko' ">United States</xsl:when> <xsl:when test="$license-locale='sv' ">Förenta Staterna</xsl:when> <xsl:when test="$license-locale='mk' ">САД</xsl:when> <xsl:when test="$license-locale='st' ">United States</xsl:when> <xsl:when test="$license-locale='zh_HK' ">美國</xsl:when> <xsl:when test="$license-locale='it_CH' ">United States</xsl:when> <xsl:when test="$license-locale='pl' ">Stany Zjednoczone</xsl:when> <xsl:when test="$license-locale='ms' ">Amerika Syarikat</xsl:when> <xsl:when test="$license-locale='sl' ">Združene države</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='gr' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Greece</xsl:when> <xsl:when test="$license-locale='el' ">Ελλάδα</xsl:when> <xsl:when test="$license-locale='eo' ">Greece</xsl:when> <xsl:when test="$license-locale='en' ">Greece</xsl:when> <xsl:when test="$license-locale='es_PR' ">Greece</xsl:when> <xsl:when test="$license-locale='af' ">Dummy (should say "Greece")</xsl:when> <xsl:when test="$license-locale='vi' ">Greece</xsl:when> <xsl:when test="$license-locale='ca' ">Grècia</xsl:when> <xsl:when test="$license-locale='it' ">Greece</xsl:when> <xsl:when test="$license-locale='eu' ">Greece</xsl:when> <xsl:when test="$license-locale='es_PE' ">Greece</xsl:when> <xsl:when test="$license-locale='bg' ">Гърция</xsl:when> <xsl:when test="$license-locale='en_US' ">Greece</xsl:when> <xsl:when test="$license-locale='ga' ">Greece</xsl:when> <xsl:when test="$license-locale='en_SG' ">Greece</xsl:when> <xsl:when test="$license-locale='cs' ">Řecko</xsl:when> <xsl:when test="$license-locale='zh' ">希腊</xsl:when> <xsl:when test="$license-locale='en_HK' ">Greece</xsl:when> <xsl:when test="$license-locale='gl' ">Greece</xsl:when> <xsl:when test="$license-locale='id' ">Greece</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Grčka</xsl:when> <xsl:when test="$license-locale='de_CH' ">Greece</xsl:when> <xsl:when test="$license-locale='es_MX' ">Greece</xsl:when> <xsl:when test="$license-locale='es_GT' ">Grecia</xsl:when> <xsl:when test="$license-locale='nl' ">Griekenland</xsl:when> <xsl:when test="$license-locale='pt' ">Greece</xsl:when> <xsl:when test="$license-locale='no' ">Hellas</xsl:when> <xsl:when test="$license-locale='es_EC' ">Grecia</xsl:when> <xsl:when test="$license-locale='nso' ">Greece</xsl:when> <xsl:when test="$license-locale='es_CO' ">Greece</xsl:when> <xsl:when test="$license-locale='es_CL' ">Greece</xsl:when> <xsl:when test="$license-locale='tr' ">Greece</xsl:when> <xsl:when test="$license-locale='es' ">Grecia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Griechenland</xsl:when> <xsl:when test="$license-locale='es_AR' ">Greece</xsl:when> <xsl:when test="$license-locale='zu' ">Greece</xsl:when> <xsl:when test="$license-locale='ro' ">Grecia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Greece</xsl:when> <xsl:when test="$license-locale='en_GB' ">Greece</xsl:when> <xsl:when test="$license-locale='en_CA' ">Greece</xsl:when> <xsl:when test="$license-locale='fr' ">Greece</xsl:when> <xsl:when test="$license-locale='hy' ">Greece</xsl:when> <xsl:when test="$license-locale='th' ">กรีซ</xsl:when> <xsl:when test="$license-locale='hr' ">Grčka</xsl:when> <xsl:when test="$license-locale='zh_TW' ">希臘</xsl:when> <xsl:when test="$license-locale='da' ">Greece</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Greece</xsl:when> <xsl:when test="$license-locale='fi' ">Kreikka</xsl:when> <xsl:when test="$license-locale='hu' ">Greece</xsl:when> <xsl:when test="$license-locale='ja' ">ギリシャ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Greece</xsl:when> <xsl:when test="$license-locale='he' ">יוון</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Grèce</xsl:when> <xsl:when test="$license-locale='de' ">Griechenland</xsl:when> <xsl:when test="$license-locale='sr' ">Грчка</xsl:when> <xsl:when test="$license-locale='ko' ">Greece</xsl:when> <xsl:when test="$license-locale='sv' ">Grekland</xsl:when> <xsl:when test="$license-locale='mk' ">Greece</xsl:when> <xsl:when test="$license-locale='st' ">Greece</xsl:when> <xsl:when test="$license-locale='zh_HK' ">希臘</xsl:when> <xsl:when test="$license-locale='it_CH' ">Greece</xsl:when> <xsl:when test="$license-locale='pl' ">Grecja</xsl:when> <xsl:when test="$license-locale='ms' ">Greece</xsl:when> <xsl:when test="$license-locale='sl' ">Grčija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='lu' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='el' ">Λουξεμβούργο</xsl:when> <xsl:when test="$license-locale='eo' ">Luksemburgo</xsl:when> <xsl:when test="$license-locale='en' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='es_PR' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='af' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='vi' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='ca' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='it' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='eu' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='es_PE' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='bg' ">Люксембург</xsl:when> <xsl:when test="$license-locale='en_US' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='ga' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='en_SG' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='cs' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='zh' ">卢森堡</xsl:when> <xsl:when test="$license-locale='en_HK' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='gl' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='id' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Luksemburg</xsl:when> <xsl:when test="$license-locale='de_CH' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='es_MX' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='es_GT' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='nl' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='pt' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='no' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='es_EC' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='nso' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='es_CO' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='es_CL' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='tr' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='es' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='de_AT' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='es_AR' ">Luxemburgo</xsl:when> <xsl:when test="$license-locale='zu' ">ELuxembourg</xsl:when> <xsl:when test="$license-locale='ro' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='en_GB' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='en_CA' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='fr' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='hy' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='th' ">ลักเซมเบิร์ก</xsl:when> <xsl:when test="$license-locale='hr' ">Luksemburg</xsl:when> <xsl:when test="$license-locale='zh_TW' ">盧森堡</xsl:when> <xsl:when test="$license-locale='da' ">Luxemborg</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='fi' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='hu' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='ja' ">ルクセンブルグ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='he' ">לוקסמבורג</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='de' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='sr' ">Луксембург</xsl:when> <xsl:when test="$license-locale='ko' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='sv' ">Luxemburg</xsl:when> <xsl:when test="$license-locale='mk' ">Луксембург</xsl:when> <xsl:when test="$license-locale='st' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='zh_HK' ">盧森堡</xsl:when> <xsl:when test="$license-locale='it_CH' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='pl' ">Luksemburg</xsl:when> <xsl:when test="$license-locale='ms' ">Luxembourg</xsl:when> <xsl:when test="$license-locale='sl' ">Luksemburg</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='hk' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='el' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='eo' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='en' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_PR' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='af' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='vi' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='ca' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='it' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='eu' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_PE' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='bg' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='en_US' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='ga' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='en_SG' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='cs' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='zh' ">香港</xsl:when> <xsl:when test="$license-locale='en_HK' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='gl' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='id' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='de_CH' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_MX' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_GT' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='nl' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='pt' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='no' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_EC' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='nso' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_CO' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_CL' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='tr' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='de_AT' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='es_AR' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='zu' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='ro' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='en_GB' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='en_CA' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='fr' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='hy' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='th' ">ฮ่องกง</xsl:when> <xsl:when test="$license-locale='hr' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='zh_TW' ">香港</xsl:when> <xsl:when test="$license-locale='da' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='fi' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='hu' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='ja' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='he' ">הונג קונג</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='de' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='sr' ">Хонг Конг</xsl:when> <xsl:when test="$license-locale='ko' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='sv' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='mk' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='st' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='zh_HK' ">香港</xsl:when> <xsl:when test="$license-locale='it_CH' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='pl' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='ms' ">Hong Kong</xsl:when> <xsl:when test="$license-locale='sl' ">Hong Kong</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='nz' "> <xsl:choose> <xsl:when test="$license-locale='az' ">New Zealand</xsl:when> <xsl:when test="$license-locale='el' ">Νέα Ζηλανδία</xsl:when> <xsl:when test="$license-locale='eo' ">New Zealand</xsl:when> <xsl:when test="$license-locale='en' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_PR' ">New Zealand</xsl:when> <xsl:when test="$license-locale='af' ">New Zealand</xsl:when> <xsl:when test="$license-locale='vi' ">New Zealand</xsl:when> <xsl:when test="$license-locale='ca' ">Nova Zelanda</xsl:when> <xsl:when test="$license-locale='it' ">New Zealand</xsl:when> <xsl:when test="$license-locale='eu' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_PE' ">New Zealand</xsl:when> <xsl:when test="$license-locale='bg' ">Нова Зеландия</xsl:when> <xsl:when test="$license-locale='en_US' ">New Zealand</xsl:when> <xsl:when test="$license-locale='ga' ">New Zealand</xsl:when> <xsl:when test="$license-locale='en_SG' ">New Zealand</xsl:when> <xsl:when test="$license-locale='cs' ">Nový Zéland</xsl:when> <xsl:when test="$license-locale='zh' ">新西兰</xsl:when> <xsl:when test="$license-locale='en_HK' ">New Zealand</xsl:when> <xsl:when test="$license-locale='gl' ">New Zealand</xsl:when> <xsl:when test="$license-locale='id' ">New Zealand</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Novi Zeland</xsl:when> <xsl:when test="$license-locale='de_CH' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_MX' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_GT' ">Nueva Zelanda</xsl:when> <xsl:when test="$license-locale='nl' ">Nieuw Zeeland</xsl:when> <xsl:when test="$license-locale='pt' ">New Zealand</xsl:when> <xsl:when test="$license-locale='no' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_EC' ">Nueva Zelanda</xsl:when> <xsl:when test="$license-locale='nso' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_CO' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es_CL' ">New Zealand</xsl:when> <xsl:when test="$license-locale='tr' ">New Zealand</xsl:when> <xsl:when test="$license-locale='es' ">New Zealand</xsl:when> <xsl:when test="$license-locale='de_AT' ">Neuseeland</xsl:when> <xsl:when test="$license-locale='es_AR' ">New Zealand</xsl:when> <xsl:when test="$license-locale='zu' ">New Zealand</xsl:when> <xsl:when test="$license-locale='ro' ">Noua Zeelandă</xsl:when> <xsl:when test="$license-locale='pt_PT' ">New Zealand</xsl:when> <xsl:when test="$license-locale='en_GB' ">New Zealand</xsl:when> <xsl:when test="$license-locale='en_CA' ">New Zealand</xsl:when> <xsl:when test="$license-locale='fr' ">New Zealand</xsl:when> <xsl:when test="$license-locale='hy' ">New Zealand</xsl:when> <xsl:when test="$license-locale='th' ">นิวซีแลนด์</xsl:when> <xsl:when test="$license-locale='hr' ">Novi Zeland</xsl:when> <xsl:when test="$license-locale='zh_TW' ">紐西蘭</xsl:when> <xsl:when test="$license-locale='da' ">New Zealand</xsl:when> <xsl:when test="$license-locale='fr_CH' ">New Zealand</xsl:when> <xsl:when test="$license-locale='fi' ">Uusi-Seelanti</xsl:when> <xsl:when test="$license-locale='hu' ">New Zealand</xsl:when> <xsl:when test="$license-locale='ja' ">ニュージーランド</xsl:when> <xsl:when test="$license-locale='fr_CA' ">New Zealand</xsl:when> <xsl:when test="$license-locale='he' ">ניו-זילנד</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Nouvelle Zélande</xsl:when> <xsl:when test="$license-locale='de' ">Neuseeland</xsl:when> <xsl:when test="$license-locale='sr' ">Нови Зеланд</xsl:when> <xsl:when test="$license-locale='ko' ">New Zealand</xsl:when> <xsl:when test="$license-locale='sv' ">Nya Zeeland</xsl:when> <xsl:when test="$license-locale='mk' ">New Zealand</xsl:when> <xsl:when test="$license-locale='st' ">New Zealand</xsl:when> <xsl:when test="$license-locale='zh_HK' ">紐西蘭</xsl:when> <xsl:when test="$license-locale='it_CH' ">New Zealand</xsl:when> <xsl:when test="$license-locale='pl' ">New Zealand</xsl:when> <xsl:when test="$license-locale='ms' ">New Zealand</xsl:when> <xsl:when test="$license-locale='sl' ">Nova Zelandija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='rs' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Serbia</xsl:when> <xsl:when test="$license-locale='el' ">Σερβία</xsl:when> <xsl:when test="$license-locale='eo' ">Serbio</xsl:when> <xsl:when test="$license-locale='en' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_PR' ">Serbia</xsl:when> <xsl:when test="$license-locale='af' ">Serbia</xsl:when> <xsl:when test="$license-locale='vi' ">Serbia</xsl:when> <xsl:when test="$license-locale='ca' ">Sèrbia</xsl:when> <xsl:when test="$license-locale='it' ">Serbia</xsl:when> <xsl:when test="$license-locale='eu' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_PE' ">Serbia</xsl:when> <xsl:when test="$license-locale='bg' ">Сърбия</xsl:when> <xsl:when test="$license-locale='en_US' ">Serbia</xsl:when> <xsl:when test="$license-locale='ga' ">Serbia</xsl:when> <xsl:when test="$license-locale='en_SG' ">Serbia</xsl:when> <xsl:when test="$license-locale='cs' ">Serbia</xsl:when> <xsl:when test="$license-locale='zh' ">塞尔维亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Serbia</xsl:when> <xsl:when test="$license-locale='gl' ">Serbia</xsl:when> <xsl:when test="$license-locale='id' ">Serbia</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Srbija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Serbien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_GT' ">Serbia</xsl:when> <xsl:when test="$license-locale='nl' ">Servië</xsl:when> <xsl:when test="$license-locale='pt' ">Serbia</xsl:when> <xsl:when test="$license-locale='no' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_EC' ">Serbia</xsl:when> <xsl:when test="$license-locale='nso' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_CO' ">Serbia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Serbia</xsl:when> <xsl:when test="$license-locale='tr' ">Serbia</xsl:when> <xsl:when test="$license-locale='es' ">Serbia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Serbien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Serbia</xsl:when> <xsl:when test="$license-locale='zu' ">Serbia</xsl:when> <xsl:when test="$license-locale='ro' ">Serbia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Serbia</xsl:when> <xsl:when test="$license-locale='en_GB' ">Serbia</xsl:when> <xsl:when test="$license-locale='en_CA' ">Serbia</xsl:when> <xsl:when test="$license-locale='fr' ">Serbie</xsl:when> <xsl:when test="$license-locale='hy' ">Serbia</xsl:when> <xsl:when test="$license-locale='th' ">เซอร์เบีย</xsl:when> <xsl:when test="$license-locale='hr' ">Srbija</xsl:when> <xsl:when test="$license-locale='zh_TW' ">塞爾維亞</xsl:when> <xsl:when test="$license-locale='da' ">Serbia</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Serbie</xsl:when> <xsl:when test="$license-locale='fi' ">Serbia</xsl:when> <xsl:when test="$license-locale='hu' ">Serbia</xsl:when> <xsl:when test="$license-locale='ja' ">Serbia</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Serbie</xsl:when> <xsl:when test="$license-locale='he' ">סרביה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Serbie</xsl:when> <xsl:when test="$license-locale='de' ">Serbien</xsl:when> <xsl:when test="$license-locale='sr' ">Србија</xsl:when> <xsl:when test="$license-locale='ko' ">Serbia</xsl:when> <xsl:when test="$license-locale='sv' ">Serbien</xsl:when> <xsl:when test="$license-locale='mk' ">Србија</xsl:when> <xsl:when test="$license-locale='st' ">Serbia</xsl:when> <xsl:when test="$license-locale='zh_HK' ">塞爾維亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Serbia</xsl:when> <xsl:when test="$license-locale='pl' ">Serbia</xsl:when> <xsl:when test="$license-locale='ms' ">Serbia</xsl:when> <xsl:when test="$license-locale='sl' ">Srbija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='pr' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='el' ">Πουέρτο Ρίκο</xsl:when> <xsl:when test="$license-locale='eo' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='en' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_PR' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='af' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='vi' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='ca' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='it' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='eu' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_PE' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='bg' ">Пуерто Рико</xsl:when> <xsl:when test="$license-locale='en_US' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='ga' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='en_SG' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='cs' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='zh' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='en_HK' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='gl' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='id' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Portoriko</xsl:when> <xsl:when test="$license-locale='de_CH' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_MX' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_GT' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='nl' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='pt' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='no' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_EC' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='nso' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_CO' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_CL' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='tr' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='de_AT' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='es_AR' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='zu' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='ro' ">Porto Rico</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='en_GB' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='en_CA' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='fr' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='hy' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='th' ">เปอร์โตริโก</xsl:when> <xsl:when test="$license-locale='hr' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='zh_TW' ">波多黎各</xsl:when> <xsl:when test="$license-locale='da' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='fi' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='hu' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='ja' ">プエルトリコ</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='he' ">פוארטו ריקו</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='de' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='sr' ">Порторико</xsl:when> <xsl:when test="$license-locale='ko' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='sv' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='mk' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='st' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='zh_HK' ">波多黎各</xsl:when> <xsl:when test="$license-locale='it_CH' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='pl' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='ms' ">Puerto Rico</xsl:when> <xsl:when test="$license-locale='sl' ">Portoriko</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ec' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Ecuador</xsl:when> <xsl:when test="$license-locale='el' "> Εκουαδόρ</xsl:when> <xsl:when test="$license-locale='eo' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_PR' ">Ecuador</xsl:when> <xsl:when test="$license-locale='af' ">Ecuador</xsl:when> <xsl:when test="$license-locale='vi' ">Ecuador</xsl:when> <xsl:when test="$license-locale='ca' ">Equador</xsl:when> <xsl:when test="$license-locale='it' ">Ecuador</xsl:when> <xsl:when test="$license-locale='eu' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_PE' ">Ecuador</xsl:when> <xsl:when test="$license-locale='bg' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en_US' ">Ecuador</xsl:when> <xsl:when test="$license-locale='ga' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en_SG' ">Ecuador</xsl:when> <xsl:when test="$license-locale='cs' ">Ecuador</xsl:when> <xsl:when test="$license-locale='zh' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en_HK' ">Ecuador</xsl:when> <xsl:when test="$license-locale='gl' ">Ecuador</xsl:when> <xsl:when test="$license-locale='id' ">Ecuador</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Ekvador</xsl:when> <xsl:when test="$license-locale='de_CH' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_MX' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_GT' ">Ecuador</xsl:when> <xsl:when test="$license-locale='nl' ">Ecuador</xsl:when> <xsl:when test="$license-locale='pt' ">Ecuador</xsl:when> <xsl:when test="$license-locale='no' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_EC' ">Ecuador</xsl:when> <xsl:when test="$license-locale='nso' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_CO' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_CL' ">Ecuador</xsl:when> <xsl:when test="$license-locale='tr' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es' ">Ecuador</xsl:when> <xsl:when test="$license-locale='de_AT' ">Ecuador</xsl:when> <xsl:when test="$license-locale='es_AR' ">Ecuador</xsl:when> <xsl:when test="$license-locale='zu' ">Ecuador</xsl:when> <xsl:when test="$license-locale='ro' ">Ecuador</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en_GB' ">Ecuador</xsl:when> <xsl:when test="$license-locale='en_CA' ">Ecuador</xsl:when> <xsl:when test="$license-locale='fr' ">Ecuador</xsl:when> <xsl:when test="$license-locale='hy' ">Ecuador</xsl:when> <xsl:when test="$license-locale='th' ">เอกวาดอร์</xsl:when> <xsl:when test="$license-locale='hr' ">Ekvador</xsl:when> <xsl:when test="$license-locale='zh_TW' ">厄瓜多爾</xsl:when> <xsl:when test="$license-locale='da' ">Ecuador</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Ecuador</xsl:when> <xsl:when test="$license-locale='fi' ">Ecuador</xsl:when> <xsl:when test="$license-locale='hu' ">Ecuador</xsl:when> <xsl:when test="$license-locale='ja' ">エクアドル</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Ecuador</xsl:when> <xsl:when test="$license-locale='he' ">אקוודור</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Ecuador</xsl:when> <xsl:when test="$license-locale='de' ">Ecuador</xsl:when> <xsl:when test="$license-locale='sr' ">Еквадор</xsl:when> <xsl:when test="$license-locale='ko' ">Ecuador</xsl:when> <xsl:when test="$license-locale='sv' ">Ecuador</xsl:when> <xsl:when test="$license-locale='mk' ">Ecuador</xsl:when> <xsl:when test="$license-locale='st' ">Ecuador</xsl:when> <xsl:when test="$license-locale='zh_HK' ">厄瓜多爾</xsl:when> <xsl:when test="$license-locale='it_CH' ">Ecuador</xsl:when> <xsl:when test="$license-locale='pl' ">Ecuador</xsl:when> <xsl:when test="$license-locale='ms' ">Ecuador</xsl:when> <xsl:when test="$license-locale='sl' ">Ekvador</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='no' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Norway</xsl:when> <xsl:when test="$license-locale='el' ">Νορβηγία</xsl:when> <xsl:when test="$license-locale='eo' ">Norway</xsl:when> <xsl:when test="$license-locale='en' ">Norway</xsl:when> <xsl:when test="$license-locale='es_PR' ">Norway</xsl:when> <xsl:when test="$license-locale='af' ">Norway</xsl:when> <xsl:when test="$license-locale='vi' ">Norway</xsl:when> <xsl:when test="$license-locale='ca' ">Noruega</xsl:when> <xsl:when test="$license-locale='it' ">Norway</xsl:when> <xsl:when test="$license-locale='eu' ">Norway</xsl:when> <xsl:when test="$license-locale='es_PE' ">Norway</xsl:when> <xsl:when test="$license-locale='bg' ">Norway</xsl:when> <xsl:when test="$license-locale='en_US' ">Norway</xsl:when> <xsl:when test="$license-locale='ga' ">Norway</xsl:when> <xsl:when test="$license-locale='en_SG' ">Norway</xsl:when> <xsl:when test="$license-locale='cs' ">Norsko</xsl:when> <xsl:when test="$license-locale='zh' ">Norway</xsl:when> <xsl:when test="$license-locale='en_HK' ">Norway</xsl:when> <xsl:when test="$license-locale='gl' ">Norway</xsl:when> <xsl:when test="$license-locale='id' ">Norway</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Norveška</xsl:when> <xsl:when test="$license-locale='de_CH' ">Norway</xsl:when> <xsl:when test="$license-locale='es_MX' ">Norway</xsl:when> <xsl:when test="$license-locale='es_GT' ">Norway</xsl:when> <xsl:when test="$license-locale='nl' ">Norwegen </xsl:when> <xsl:when test="$license-locale='pt' ">Norway</xsl:when> <xsl:when test="$license-locale='no' ">Norge</xsl:when> <xsl:when test="$license-locale='es_EC' ">Norway</xsl:when> <xsl:when test="$license-locale='nso' ">Norway</xsl:when> <xsl:when test="$license-locale='es_CO' ">Norway</xsl:when> <xsl:when test="$license-locale='es_CL' ">Norway</xsl:when> <xsl:when test="$license-locale='tr' ">Norway</xsl:when> <xsl:when test="$license-locale='es' ">Noruega</xsl:when> <xsl:when test="$license-locale='de_AT' ">Norway</xsl:when> <xsl:when test="$license-locale='es_AR' ">Norway</xsl:when> <xsl:when test="$license-locale='zu' ">Norway</xsl:when> <xsl:when test="$license-locale='ro' ">Norvegia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Norway</xsl:when> <xsl:when test="$license-locale='en_GB' ">Norway</xsl:when> <xsl:when test="$license-locale='en_CA' ">Norway</xsl:when> <xsl:when test="$license-locale='fr' ">Norvège</xsl:when> <xsl:when test="$license-locale='hy' ">Norway</xsl:when> <xsl:when test="$license-locale='th' ">นอร์เวย์</xsl:when> <xsl:when test="$license-locale='hr' ">Norveška</xsl:when> <xsl:when test="$license-locale='zh_TW' ">挪威</xsl:when> <xsl:when test="$license-locale='da' ">Norway</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Norway</xsl:when> <xsl:when test="$license-locale='fi' ">Norja</xsl:when> <xsl:when test="$license-locale='hu' ">Norway</xsl:when> <xsl:when test="$license-locale='ja' ">Norway</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Norway</xsl:when> <xsl:when test="$license-locale='he' ">נורווגיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Norway</xsl:when> <xsl:when test="$license-locale='de' ">Norwegen</xsl:when> <xsl:when test="$license-locale='sr' ">Норвешка</xsl:when> <xsl:when test="$license-locale='ko' ">Norway</xsl:when> <xsl:when test="$license-locale='sv' ">Norway</xsl:when> <xsl:when test="$license-locale='mk' ">Norway</xsl:when> <xsl:when test="$license-locale='st' ">Norway</xsl:when> <xsl:when test="$license-locale='zh_HK' ">挪威</xsl:when> <xsl:when test="$license-locale='it_CH' ">Norway</xsl:when> <xsl:when test="$license-locale='pl' ">Norway</xsl:when> <xsl:when test="$license-locale='ms' ">Norway</xsl:when> <xsl:when test="$license-locale='sl' ">Norway</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='sg' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Singapore</xsl:when> <xsl:when test="$license-locale='el' ">Σιγκαπούρη</xsl:when> <xsl:when test="$license-locale='eo' ">Singapuro</xsl:when> <xsl:when test="$license-locale='en' ">Singapore</xsl:when> <xsl:when test="$license-locale='es_PR' ">Singapur</xsl:when> <xsl:when test="$license-locale='af' ">Singapoer</xsl:when> <xsl:when test="$license-locale='vi' ">Singapore</xsl:when> <xsl:when test="$license-locale='ca' ">Singapur</xsl:when> <xsl:when test="$license-locale='it' ">Singapore</xsl:when> <xsl:when test="$license-locale='eu' ">Singapur</xsl:when> <xsl:when test="$license-locale='es_PE' ">Singapur</xsl:when> <xsl:when test="$license-locale='bg' ">Сингапур</xsl:when> <xsl:when test="$license-locale='en_US' ">Singapore</xsl:when> <xsl:when test="$license-locale='ga' ">Singapore</xsl:when> <xsl:when test="$license-locale='en_SG' ">Singapore</xsl:when> <xsl:when test="$license-locale='cs' ">Singapore</xsl:when> <xsl:when test="$license-locale='zh' ">新加坡</xsl:when> <xsl:when test="$license-locale='en_HK' ">Singapore</xsl:when> <xsl:when test="$license-locale='gl' ">Singapore</xsl:when> <xsl:when test="$license-locale='id' ">Singapore</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Singapur</xsl:when> <xsl:when test="$license-locale='de_CH' ">Singapur</xsl:when> <xsl:when test="$license-locale='es_MX' ">Singapur</xsl:when> <xsl:when test="$license-locale='es_GT' ">Singapur</xsl:when> <xsl:when test="$license-locale='nl' ">Singapore</xsl:when> <xsl:when test="$license-locale='pt' ">Singapore</xsl:when> <xsl:when test="$license-locale='no' ">Singapore</xsl:when> <xsl:when test="$license-locale='es_EC' ">Singapur</xsl:when> <xsl:when test="$license-locale='nso' ">Singapore</xsl:when> <xsl:when test="$license-locale='es_CO' ">Singapur</xsl:when> <xsl:when test="$license-locale='es_CL' ">Singapur</xsl:when> <xsl:when test="$license-locale='tr' ">Singapore</xsl:when> <xsl:when test="$license-locale='es' ">Singapur</xsl:when> <xsl:when test="$license-locale='de_AT' ">Singapur</xsl:when> <xsl:when test="$license-locale='es_AR' ">Singapur</xsl:when> <xsl:when test="$license-locale='zu' ">ESingapore</xsl:when> <xsl:when test="$license-locale='ro' ">Singapore</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Singapore</xsl:when> <xsl:when test="$license-locale='en_GB' ">Singapore</xsl:when> <xsl:when test="$license-locale='en_CA' ">Singapore</xsl:when> <xsl:when test="$license-locale='fr' ">Singapour</xsl:when> <xsl:when test="$license-locale='hy' ">Singapore</xsl:when> <xsl:when test="$license-locale='th' ">สิงคโปร์</xsl:when> <xsl:when test="$license-locale='hr' ">Singapur</xsl:when> <xsl:when test="$license-locale='zh_TW' ">新加坡</xsl:when> <xsl:when test="$license-locale='da' ">Singapore</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Singapour</xsl:when> <xsl:when test="$license-locale='fi' ">Singapore</xsl:when> <xsl:when test="$license-locale='hu' ">Singapore</xsl:when> <xsl:when test="$license-locale='ja' ">シンガポール</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Singapour</xsl:when> <xsl:when test="$license-locale='he' ">סינגפור</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Singapour</xsl:when> <xsl:when test="$license-locale='de' ">Singapur</xsl:when> <xsl:when test="$license-locale='sr' ">Сингапур</xsl:when> <xsl:when test="$license-locale='ko' ">Singapore</xsl:when> <xsl:when test="$license-locale='sv' ">Singapore</xsl:when> <xsl:when test="$license-locale='mk' ">Сингапур</xsl:when> <xsl:when test="$license-locale='st' ">Singapore</xsl:when> <xsl:when test="$license-locale='zh_HK' ">新加坡</xsl:when> <xsl:when test="$license-locale='it_CH' ">Singapore</xsl:when> <xsl:when test="$license-locale='pl' ">Singapur</xsl:when> <xsl:when test="$license-locale='ms' ">Singapura</xsl:when> <xsl:when test="$license-locale='sl' ">Singapur</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='ro' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Romania</xsl:when> <xsl:when test="$license-locale='el' ">Ρουμανία</xsl:when> <xsl:when test="$license-locale='eo' ">Rumanio</xsl:when> <xsl:when test="$license-locale='en' ">Romania</xsl:when> <xsl:when test="$license-locale='es_PR' ">Rumanía</xsl:when> <xsl:when test="$license-locale='af' ">Roemenië</xsl:when> <xsl:when test="$license-locale='vi' ">Romania</xsl:when> <xsl:when test="$license-locale='ca' ">Romania</xsl:when> <xsl:when test="$license-locale='it' ">Romania</xsl:when> <xsl:when test="$license-locale='eu' ">Errumania</xsl:when> <xsl:when test="$license-locale='es_PE' ">Rumanía</xsl:when> <xsl:when test="$license-locale='bg' ">Румъния</xsl:when> <xsl:when test="$license-locale='en_US' ">Romania</xsl:when> <xsl:when test="$license-locale='ga' ">Romania</xsl:when> <xsl:when test="$license-locale='en_SG' ">Romania</xsl:when> <xsl:when test="$license-locale='cs' ">Romania</xsl:when> <xsl:when test="$license-locale='zh' ">罗马尼亚</xsl:when> <xsl:when test="$license-locale='en_HK' ">Romania</xsl:when> <xsl:when test="$license-locale='gl' ">Romania</xsl:when> <xsl:when test="$license-locale='id' ">Romania</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Rumunija</xsl:when> <xsl:when test="$license-locale='de_CH' ">Rumänien</xsl:when> <xsl:when test="$license-locale='es_MX' ">Rumanía</xsl:when> <xsl:when test="$license-locale='es_GT' ">Rumanía</xsl:when> <xsl:when test="$license-locale='nl' ">Roemenië</xsl:when> <xsl:when test="$license-locale='pt' ">Romania</xsl:when> <xsl:when test="$license-locale='no' ">Romania</xsl:when> <xsl:when test="$license-locale='es_EC' ">Rumanía</xsl:when> <xsl:when test="$license-locale='nso' ">Romaniya</xsl:when> <xsl:when test="$license-locale='es_CO' ">Rumanía</xsl:when> <xsl:when test="$license-locale='es_CL' ">Rumanía</xsl:when> <xsl:when test="$license-locale='tr' ">Romania</xsl:when> <xsl:when test="$license-locale='es' ">Rumanía</xsl:when> <xsl:when test="$license-locale='de_AT' ">Rumänien</xsl:when> <xsl:when test="$license-locale='es_AR' ">Rumanía</xsl:when> <xsl:when test="$license-locale='zu' ">eRomania</xsl:when> <xsl:when test="$license-locale='ro' ">România</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Romania</xsl:when> <xsl:when test="$license-locale='en_GB' ">Romania</xsl:when> <xsl:when test="$license-locale='en_CA' ">Romania</xsl:when> <xsl:when test="$license-locale='fr' ">Roumanie</xsl:when> <xsl:when test="$license-locale='hy' ">Romania</xsl:when> <xsl:when test="$license-locale='th' ">โรมาเนีย</xsl:when> <xsl:when test="$license-locale='hr' ">Rumunjska</xsl:when> <xsl:when test="$license-locale='zh_TW' ">羅馬尼亞</xsl:when> <xsl:when test="$license-locale='da' ">Romænien</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Roumanie</xsl:when> <xsl:when test="$license-locale='fi' ">Romania</xsl:when> <xsl:when test="$license-locale='hu' ">Romania</xsl:when> <xsl:when test="$license-locale='ja' ">ルーマニア</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Roumanie</xsl:when> <xsl:when test="$license-locale='he' ">רומניה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Roumanie</xsl:when> <xsl:when test="$license-locale='de' ">Rumänien</xsl:when> <xsl:when test="$license-locale='sr' ">Румунија</xsl:when> <xsl:when test="$license-locale='ko' ">Romania</xsl:when> <xsl:when test="$license-locale='sv' ">Rumänien</xsl:when> <xsl:when test="$license-locale='mk' ">Романија</xsl:when> <xsl:when test="$license-locale='st' ">Romania</xsl:when> <xsl:when test="$license-locale='zh_HK' ">羅馬尼亞</xsl:when> <xsl:when test="$license-locale='it_CH' ">Romania</xsl:when> <xsl:when test="$license-locale='pl' ">Rumunia</xsl:when> <xsl:when test="$license-locale='ms' ">Romania</xsl:when> <xsl:when test="$license-locale='sl' ">Romunija</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='gt' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Guatemala</xsl:when> <xsl:when test="$license-locale='el' ">Guatemala</xsl:when> <xsl:when test="$license-locale='eo' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_PR' ">Guatemala</xsl:when> <xsl:when test="$license-locale='af' ">Guatemala</xsl:when> <xsl:when test="$license-locale='vi' ">Guatemala</xsl:when> <xsl:when test="$license-locale='ca' ">Guatemala</xsl:when> <xsl:when test="$license-locale='it' ">Guatemala</xsl:when> <xsl:when test="$license-locale='eu' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_PE' ">Guatemala</xsl:when> <xsl:when test="$license-locale='bg' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en_US' ">Guatemala</xsl:when> <xsl:when test="$license-locale='ga' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en_SG' ">Guatemala</xsl:when> <xsl:when test="$license-locale='cs' ">Guatemala</xsl:when> <xsl:when test="$license-locale='zh' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en_HK' ">Guatemala</xsl:when> <xsl:when test="$license-locale='gl' ">Guatemala</xsl:when> <xsl:when test="$license-locale='id' ">Guatemala</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Gvatemala</xsl:when> <xsl:when test="$license-locale='de_CH' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_MX' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_GT' ">Guatemala</xsl:when> <xsl:when test="$license-locale='nl' ">Guatemala</xsl:when> <xsl:when test="$license-locale='pt' ">Guatemala</xsl:when> <xsl:when test="$license-locale='no' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_EC' ">Guatemala</xsl:when> <xsl:when test="$license-locale='nso' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_CO' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_CL' ">Guatemala</xsl:when> <xsl:when test="$license-locale='tr' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es' ">Guatemala</xsl:when> <xsl:when test="$license-locale='de_AT' ">Guatemala</xsl:when> <xsl:when test="$license-locale='es_AR' ">Guatemala</xsl:when> <xsl:when test="$license-locale='zu' ">Guatemala</xsl:when> <xsl:when test="$license-locale='ro' ">Guatemala</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en_GB' ">Guatemala</xsl:when> <xsl:when test="$license-locale='en_CA' ">Guatemala</xsl:when> <xsl:when test="$license-locale='fr' ">Guatemala</xsl:when> <xsl:when test="$license-locale='hy' ">Guatemala</xsl:when> <xsl:when test="$license-locale='th' ">กัวเตมาลา</xsl:when> <xsl:when test="$license-locale='hr' ">Guatemala</xsl:when> <xsl:when test="$license-locale='zh_TW' ">Guatemala</xsl:when> <xsl:when test="$license-locale='da' ">Guatemala</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Guatemala</xsl:when> <xsl:when test="$license-locale='fi' ">Guatemala</xsl:when> <xsl:when test="$license-locale='hu' ">Guatemala</xsl:when> <xsl:when test="$license-locale='ja' ">Guatemala</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Guatemala</xsl:when> <xsl:when test="$license-locale='he' ">גואטמלה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Guatemala</xsl:when> <xsl:when test="$license-locale='de' ">Guatemala</xsl:when> <xsl:when test="$license-locale='sr' ">Гватемала</xsl:when> <xsl:when test="$license-locale='ko' ">Guatemala</xsl:when> <xsl:when test="$license-locale='sv' ">Guatemala</xsl:when> <xsl:when test="$license-locale='mk' ">Guatemala</xsl:when> <xsl:when test="$license-locale='st' ">Guatemala</xsl:when> <xsl:when test="$license-locale='zh_HK' ">危地馬拉</xsl:when> <xsl:when test="$license-locale='it_CH' ">Guatemala</xsl:when> <xsl:when test="$license-locale='pl' ">Guatemala</xsl:when> <xsl:when test="$license-locale='ms' ">Guatemala</xsl:when> <xsl:when test="$license-locale='sl' ">Guatemala</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='th' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Thailand</xsl:when> <xsl:when test="$license-locale='el' ">Thailand</xsl:when> <xsl:when test="$license-locale='eo' ">Thailand</xsl:when> <xsl:when test="$license-locale='en' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_PR' ">Thailand</xsl:when> <xsl:when test="$license-locale='af' ">Thailand</xsl:when> <xsl:when test="$license-locale='vi' ">Thailand</xsl:when> <xsl:when test="$license-locale='ca' ">Thailand</xsl:when> <xsl:when test="$license-locale='it' ">Thailand</xsl:when> <xsl:when test="$license-locale='eu' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_PE' ">Thailand</xsl:when> <xsl:when test="$license-locale='bg' ">Thailand</xsl:when> <xsl:when test="$license-locale='en_US' ">Thailand</xsl:when> <xsl:when test="$license-locale='ga' ">Thailand</xsl:when> <xsl:when test="$license-locale='en_SG' ">Thailand</xsl:when> <xsl:when test="$license-locale='cs' ">Thailand</xsl:when> <xsl:when test="$license-locale='zh' ">Thailand</xsl:when> <xsl:when test="$license-locale='en_HK' ">Thailand</xsl:when> <xsl:when test="$license-locale='gl' ">Thailand</xsl:when> <xsl:when test="$license-locale='id' ">Thailand</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Thailand</xsl:when> <xsl:when test="$license-locale='de_CH' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_MX' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_GT' ">Thailand</xsl:when> <xsl:when test="$license-locale='nl' ">Thailand</xsl:when> <xsl:when test="$license-locale='pt' ">Thailand</xsl:when> <xsl:when test="$license-locale='no' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_EC' ">Thailand</xsl:when> <xsl:when test="$license-locale='nso' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_CO' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_CL' ">Thailand</xsl:when> <xsl:when test="$license-locale='tr' ">Thailand</xsl:when> <xsl:when test="$license-locale='es' ">Thailand</xsl:when> <xsl:when test="$license-locale='de_AT' ">Thailand</xsl:when> <xsl:when test="$license-locale='es_AR' ">Thailand</xsl:when> <xsl:when test="$license-locale='zu' ">Thailand</xsl:when> <xsl:when test="$license-locale='ro' ">Thailand</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Thailand</xsl:when> <xsl:when test="$license-locale='en_GB' ">Thailand</xsl:when> <xsl:when test="$license-locale='en_CA' ">Thailand</xsl:when> <xsl:when test="$license-locale='fr' ">Thailand</xsl:when> <xsl:when test="$license-locale='hy' ">Thailand</xsl:when> <xsl:when test="$license-locale='th' ">ประเทศไทย</xsl:when> <xsl:when test="$license-locale='hr' ">Thailand</xsl:when> <xsl:when test="$license-locale='zh_TW' ">Thailand</xsl:when> <xsl:when test="$license-locale='da' ">Thailand</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Thailand</xsl:when> <xsl:when test="$license-locale='fi' ">Thailand</xsl:when> <xsl:when test="$license-locale='hu' ">Thailand</xsl:when> <xsl:when test="$license-locale='ja' ">Thailand</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Thailand</xsl:when> <xsl:when test="$license-locale='he' ">Thailand</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Thailand</xsl:when> <xsl:when test="$license-locale='de' ">Thailand</xsl:when> <xsl:when test="$license-locale='sr' ">Thailand</xsl:when> <xsl:when test="$license-locale='ko' ">Thailand</xsl:when> <xsl:when test="$license-locale='sv' ">Thailand</xsl:when> <xsl:when test="$license-locale='mk' ">Thailand</xsl:when> <xsl:when test="$license-locale='st' ">Thailand</xsl:when> <xsl:when test="$license-locale='zh_HK' ">泰國</xsl:when> <xsl:when test="$license-locale='it_CH' ">Thailand</xsl:when> <xsl:when test="$license-locale='pl' ">Thailand</xsl:when> <xsl:when test="$license-locale='ms' ">Thailand</xsl:when> <xsl:when test="$license-locale='sl' ">Thailand</xsl:when> </xsl:choose> </xsl:when> <xsl:when test="$jurisdiction='cz' "> <xsl:choose> <xsl:when test="$license-locale='az' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='el' ">Δημοκρατία της Τσεχίας</xsl:when> <xsl:when test="$license-locale='eo' ">Ĉeĥio</xsl:when> <xsl:when test="$license-locale='en' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='es_PR' ">República Checa</xsl:when> <xsl:when test="$license-locale='af' ">Tsjeggiese Republiek</xsl:when> <xsl:when test="$license-locale='vi' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='ca' ">República Txeca</xsl:when> <xsl:when test="$license-locale='it' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='eu' ">Txekiar Errepublika</xsl:when> <xsl:when test="$license-locale='es_PE' ">República Checa</xsl:when> <xsl:when test="$license-locale='bg' ">Чехия</xsl:when> <xsl:when test="$license-locale='en_US' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='ga' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='en_SG' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='cs' ">Česko</xsl:when> <xsl:when test="$license-locale='zh' ">捷克共和国</xsl:when> <xsl:when test="$license-locale='en_HK' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='gl' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='id' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Češka</xsl:when> <xsl:when test="$license-locale='de_CH' ">Tschechische Republik</xsl:when> <xsl:when test="$license-locale='es_MX' ">República Checa</xsl:when> <xsl:when test="$license-locale='es_GT' ">República Checa</xsl:when> <xsl:when test="$license-locale='nl' ">Tjechië</xsl:when> <xsl:when test="$license-locale='pt' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='no' ">Tjekkia</xsl:when> <xsl:when test="$license-locale='es_EC' ">República Checa</xsl:when> <xsl:when test="$license-locale='nso' ">Czech Repabliki</xsl:when> <xsl:when test="$license-locale='es_CO' ">República Checa</xsl:when> <xsl:when test="$license-locale='es_CL' ">República Checa</xsl:when> <xsl:when test="$license-locale='tr' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='es' ">República Checa</xsl:when> <xsl:when test="$license-locale='de_AT' ">Tschechische Republik</xsl:when> <xsl:when test="$license-locale='es_AR' ">República Checa</xsl:when> <xsl:when test="$license-locale='zu' ">ECzech Republic</xsl:when> <xsl:when test="$license-locale='ro' ">Cehia</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='en_GB' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='en_CA' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='fr' ">République Tchèque</xsl:when> <xsl:when test="$license-locale='hy' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='th' ">สาธารณรัฐเชค</xsl:when> <xsl:when test="$license-locale='hr' ">Češka</xsl:when> <xsl:when test="$license-locale='zh_TW' ">捷克</xsl:when> <xsl:when test="$license-locale='da' ">Tjekkiet</xsl:when> <xsl:when test="$license-locale='fr_CH' ">République Tchèque</xsl:when> <xsl:when test="$license-locale='fi' ">Tsekki</xsl:when> <xsl:when test="$license-locale='hu' ">Cseh Köztársaság</xsl:when> <xsl:when test="$license-locale='ja' ">チェコ共和国</xsl:when> <xsl:when test="$license-locale='fr_CA' ">République Tchèque</xsl:when> <xsl:when test="$license-locale='he' ">צ'כיה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">République Tchèque</xsl:when> <xsl:when test="$license-locale='de' ">Tschechische Republik</xsl:when> <xsl:when test="$license-locale='sr' ">Чешка</xsl:when> <xsl:when test="$license-locale='ko' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='sv' ">Tjeckien</xsl:when> <xsl:when test="$license-locale='mk' ">Чешка</xsl:when> <xsl:when test="$license-locale='st' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='zh_HK' ">捷克</xsl:when> <xsl:when test="$license-locale='it_CH' ">Czech Republic</xsl:when> <xsl:when test="$license-locale='pl' ">Czechy</xsl:when> <xsl:when test="$license-locale='ms' ">Republik Czeck</xsl:when> <xsl:when test="$license-locale='sl' ">Češka</xsl:when> </xsl:choose> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="attribution"> <xsl:choose> <xsl:when test="$license-locale='az' ">Attribution</xsl:when> <xsl:when test="$license-locale='el' ">Αναφορά</xsl:when> <xsl:when test="$license-locale='eo' ">Atribuo</xsl:when> <xsl:when test="$license-locale='en' ">Attribution</xsl:when> <xsl:when test="$license-locale='es_PR' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='af' ">Erkenning</xsl:when> <xsl:when test="$license-locale='vi' ">Attribution</xsl:when> <xsl:when test="$license-locale='ca' ">Reconeixement</xsl:when> <xsl:when test="$license-locale='it' ">Attribuzione</xsl:when> <xsl:when test="$license-locale='eu' ">Aitortu</xsl:when> <xsl:when test="$license-locale='es_PE' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='bg' ">Признание</xsl:when> <xsl:when test="$license-locale='en_US' ">Attribution</xsl:when> <xsl:when test="$license-locale='ga' ">Attribution</xsl:when> <xsl:when test="$license-locale='en_SG' ">Attribution</xsl:when> <xsl:when test="$license-locale='cs' ">Uveďte autora</xsl:when> <xsl:when test="$license-locale='zh' ">署名</xsl:when> <xsl:when test="$license-locale='en_HK' ">Attribution</xsl:when> <xsl:when test="$license-locale='gl' ">Recoñecemento</xsl:when> <xsl:when test="$license-locale='id' ">Attribution</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Autorstvo</xsl:when> <xsl:when test="$license-locale='de_CH' ">Namensnennung</xsl:when> <xsl:when test="$license-locale='es_MX' ">Atribución</xsl:when> <xsl:when test="$license-locale='es_GT' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='nl' ">Naamsvermelding</xsl:when> <xsl:when test="$license-locale='pt' ">Atribuição</xsl:when> <xsl:when test="$license-locale='no' ">Navngivelse</xsl:when> <xsl:when test="$license-locale='es_EC' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='nso' ">Tsebagatšo</xsl:when> <xsl:when test="$license-locale='es_CO' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='es_CL' ">Atribución</xsl:when> <xsl:when test="$license-locale='tr' ">Attribution</xsl:when> <xsl:when test="$license-locale='es' ">Reconocimiento</xsl:when> <xsl:when test="$license-locale='de_AT' ">Namensnennung</xsl:when> <xsl:when test="$license-locale='es_AR' ">Atribución</xsl:when> <xsl:when test="$license-locale='zu' ">Qaphela Umnikazi</xsl:when> <xsl:when test="$license-locale='ro' ">Atribuire</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Atribuição</xsl:when> <xsl:when test="$license-locale='en_GB' ">Attribution</xsl:when> <xsl:when test="$license-locale='en_CA' ">Attribution</xsl:when> <xsl:when test="$license-locale='fr' ">Paternité</xsl:when> <xsl:when test="$license-locale='hy' ">Attribution</xsl:when> <xsl:when test="$license-locale='th' ">แสดงที่มา</xsl:when> <xsl:when test="$license-locale='hr' ">Imenovanje</xsl:when> <xsl:when test="$license-locale='zh_TW' ">姓名標示</xsl:when> <xsl:when test="$license-locale='da' ">Navngivelse</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Paternité</xsl:when> <xsl:when test="$license-locale='fi' ">Nimeä</xsl:when> <xsl:when test="$license-locale='hu' ">Nevezd meg!</xsl:when> <xsl:when test="$license-locale='ja' ">表示</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Paternité</xsl:when> <xsl:when test="$license-locale='he' ">ייחוס</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Paternité</xsl:when> <xsl:when test="$license-locale='de' ">Namensnennung</xsl:when> <xsl:when test="$license-locale='sr' ">Ауторство</xsl:when> <xsl:when test="$license-locale='ko' ">저작자표시</xsl:when> <xsl:when test="$license-locale='sv' ">Erkännande</xsl:when> <xsl:when test="$license-locale='mk' ">Наведи извор</xsl:when> <xsl:when test="$license-locale='st' ">Attribution</xsl:when> <xsl:when test="$license-locale='zh_HK' ">署名</xsl:when> <xsl:when test="$license-locale='it_CH' ">Attribuzione</xsl:when> <xsl:when test="$license-locale='pl' ">Uznanie autorstwa</xsl:when> <xsl:when test="$license-locale='ms' ">Pengiktirafan</xsl:when> <xsl:when test="$license-locale='sl' ">Priznanje avtorstva</xsl:when> <xsl:otherwise>Attribution</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="derivatives"> <xsl:param name="derivs" /> <xsl:variable name="prettystring"> <xsl:choose> <xsl:when test="$derivs='n'"> <xsl:choose> <xsl:when test="$license-locale='az' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='el' ">Όχι Παράγωγα Έργα</xsl:when> <xsl:when test="$license-locale='eo' ">Neniuj derivaĵoj</xsl:when> <xsl:when test="$license-locale='en' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='es_PR' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='af' ">Onveranderd</xsl:when> <xsl:when test="$license-locale='vi' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='ca' ">Sense obres derivades</xsl:when> <xsl:when test="$license-locale='it' ">Non opere derivate</xsl:when> <xsl:when test="$license-locale='eu' ">Lan eratorririk gabe</xsl:when> <xsl:when test="$license-locale='es_PE' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='bg' ">Без производни произведения</xsl:when> <xsl:when test="$license-locale='en_US' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='ga' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='en_SG' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='cs' ">Nezasahujte do díla</xsl:when> <xsl:when test="$license-locale='zh' ">禁止演绎</xsl:when> <xsl:when test="$license-locale='en_HK' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='gl' ">Sen obras derivadas.</xsl:when> <xsl:when test="$license-locale='id' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Bez prerada</xsl:when> <xsl:when test="$license-locale='de_CH' ">Keine Bearbeitung</xsl:when> <xsl:when test="$license-locale='es_MX' ">No Derivadas</xsl:when> <xsl:when test="$license-locale='es_GT' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='nl' ">Geen Afgeleide werken</xsl:when> <xsl:when test="$license-locale='pt' ">Vedada a Criação de Obras Derivadas</xsl:when> <xsl:when test="$license-locale='no' ">Ingen Bearbeidelse</xsl:when> <xsl:when test="$license-locale='es_EC' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='nso' ">Ga go na Mešomo e Ntšhitšwego</xsl:when> <xsl:when test="$license-locale='es_CO' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='es_CL' ">Sin Derivadas</xsl:when> <xsl:when test="$license-locale='tr' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='es' ">Sin obras derivadas</xsl:when> <xsl:when test="$license-locale='de_AT' ">Keine Bearbeitung</xsl:when> <xsl:when test="$license-locale='es_AR' ">Sin Obras Derivadas</xsl:when> <xsl:when test="$license-locale='zu' ">Akukho Msebenzi Ozosuselwa kulo</xsl:when> <xsl:when test="$license-locale='ro' ">Fără Opere Derivate</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Não a Obras Derivadas</xsl:when> <xsl:when test="$license-locale='en_GB' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='en_CA' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='fr' ">Pas de Modification</xsl:when> <xsl:when test="$license-locale='hy' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='th' ">ไม่ดัดแปลง</xsl:when> <xsl:when test="$license-locale='hr' ">Bez prerada</xsl:when> <xsl:when test="$license-locale='zh_TW' ">禁止改作</xsl:when> <xsl:when test="$license-locale='da' ">Ingen bearbejdelser</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Pas de Modification</xsl:when> <xsl:when test="$license-locale='fi' ">Ei muutettuja teoksia</xsl:when> <xsl:when test="$license-locale='hu' ">Ne változtasd!</xsl:when> <xsl:when test="$license-locale='ja' ">改変禁止</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Pas de Modification</xsl:when> <xsl:when test="$license-locale='he' ">איסור יצירות נגזרות</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Pas de Modification</xsl:when> <xsl:when test="$license-locale='de' ">Keine Bearbeitung</xsl:when> <xsl:when test="$license-locale='sr' ">Без прерада</xsl:when> <xsl:when test="$license-locale='ko' ">변경금지</xsl:when> <xsl:when test="$license-locale='sv' ">Inga bearbetningar</xsl:when> <xsl:when test="$license-locale='mk' ">Без адаптирани дела.</xsl:when> <xsl:when test="$license-locale='st' ">No Derivative Works</xsl:when> <xsl:when test="$license-locale='zh_HK' ">禁止衍生</xsl:when> <xsl:when test="$license-locale='it_CH' ">Non opere derivate</xsl:when> <xsl:when test="$license-locale='pl' ">Bez utworów zależnych</xsl:when> <xsl:when test="$license-locale='ms' ">Bukan Karya Terbitan</xsl:when> <xsl:when test="$license-locale='sl' ">Brez predelav</xsl:when> <xsl:otherwise>NoDerivs</xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="$derivs='sa'"> <xsl:choose> <xsl:when test="$license-locale='az' ">Share Alike</xsl:when> <xsl:when test="$license-locale='el' ">Παρόμοια διανομή</xsl:when> <xsl:when test="$license-locale='eo' ">Distribui kun sama permesilo</xsl:when> <xsl:when test="$license-locale='en' ">Share Alike</xsl:when> <xsl:when test="$license-locale='es_PR' ">Compartir Igual</xsl:when> <xsl:when test="$license-locale='af' ">Insgelyks Deel</xsl:when> <xsl:when test="$license-locale='vi' ">Share Alike</xsl:when> <xsl:when test="$license-locale='ca' ">Compartir Igual</xsl:when> <xsl:when test="$license-locale='it' ">Condividi allo stesso modo</xsl:when> <xsl:when test="$license-locale='eu' ">Partekatu baimen beraren arabera</xsl:when> <xsl:when test="$license-locale='es_PE' ">Compartir bajo la misma licencia</xsl:when> <xsl:when test="$license-locale='bg' ">Споделяне на споделеното</xsl:when> <xsl:when test="$license-locale='en_US' ">Share Alike</xsl:when> <xsl:when test="$license-locale='ga' ">Share Alike</xsl:when> <xsl:when test="$license-locale='en_SG' ">Share Alike</xsl:when> <xsl:when test="$license-locale='cs' ">Zachovejte licenci</xsl:when> <xsl:when test="$license-locale='zh' ">相同方式共享</xsl:when> <xsl:when test="$license-locale='en_HK' ">Share Alike</xsl:when> <xsl:when test="$license-locale='gl' ">Compartir baixo a mesma licenza.</xsl:when> <xsl:when test="$license-locale='id' ">Share Alike</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Deliti pod istim uslovima</xsl:when> <xsl:when test="$license-locale='de_CH' ">Weitergabe unter gleichen Bedingungen</xsl:when> <xsl:when test="$license-locale='es_MX' ">Licenciamiento Recíproco</xsl:when> <xsl:when test="$license-locale='es_GT' ">Compartir bajo la misma licencia</xsl:when> <xsl:when test="$license-locale='nl' ">Gelijk delen</xsl:when> <xsl:when test="$license-locale='pt' ">Compartilhamento pela mesma Licença</xsl:when> <xsl:when test="$license-locale='no' ">Del på samme vilkår</xsl:when> <xsl:when test="$license-locale='es_EC' ">Compartir bajo la misma licencia</xsl:when> <xsl:when test="$license-locale='nso' ">Mohlakanelwa</xsl:when> <xsl:when test="$license-locale='es_CO' ">Compartir bajo la misma licencia</xsl:when> <xsl:when test="$license-locale='es_CL' ">Licenciar Igual</xsl:when> <xsl:when test="$license-locale='tr' ">Share Alike</xsl:when> <xsl:when test="$license-locale='es' ">Compartir bajo la misma licencia</xsl:when> <xsl:when test="$license-locale='de_AT' ">Weitergabe unter gleichen Bedingungen</xsl:when> <xsl:when test="$license-locale='es_AR' ">Compartir Obras Derivadas Igual</xsl:when> <xsl:when test="$license-locale='zu' ">Zihlanganyeleni</xsl:when> <xsl:when test="$license-locale='ro' ">Distribuire în condiţii identice</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Partilha nos termos da mesma Licença</xsl:when> <xsl:when test="$license-locale='en_GB' ">Share Alike</xsl:when> <xsl:when test="$license-locale='en_CA' ">Share Alike</xsl:when> <xsl:when test="$license-locale='fr' ">Partage des Conditions Initiales à l'Identique</xsl:when> <xsl:when test="$license-locale='hy' ">Share Alike</xsl:when> <xsl:when test="$license-locale='th' ">อนุญาตแบบเดียวกัน</xsl:when> <xsl:when test="$license-locale='hr' ">Dijeli pod istim uvjetima</xsl:when> <xsl:when test="$license-locale='zh_TW' ">相同方式分享</xsl:when> <xsl:when test="$license-locale='da' ">Del på samme vilkår</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Partage des Conditions Initiales à l'Identique</xsl:when> <xsl:when test="$license-locale='fi' ">Tarttuva</xsl:when> <xsl:when test="$license-locale='hu' ">Így add tovább!</xsl:when> <xsl:when test="$license-locale='ja' ">継承</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Partage des Conditions Initiales à l'Identique</xsl:when> <xsl:when test="$license-locale='he' ">שיתוף זהה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Partage des Conditions Initiales à l'Identique</xsl:when> <xsl:when test="$license-locale='de' ">Weitergabe unter gleichen Bedingungen</xsl:when> <xsl:when test="$license-locale='sr' ">Делити под истим условима</xsl:when> <xsl:when test="$license-locale='ko' ">동일조건변경허락</xsl:when> <xsl:when test="$license-locale='sv' ">Dela Lika</xsl:when> <xsl:when test="$license-locale='mk' ">Сподели под исти услови</xsl:when> <xsl:when test="$license-locale='st' ">Share Alike</xsl:when> <xsl:when test="$license-locale='zh_HK' ">相同方式共享</xsl:when> <xsl:when test="$license-locale='it_CH' ">Condividi allo stesso modo</xsl:when> <xsl:when test="$license-locale='pl' ">Na tych samych warunkach</xsl:when> <xsl:when test="$license-locale='ms' ">Perkongsian Serupa</xsl:when> <xsl:when test="$license-locale='sl' ">Deljenje pod enakimi pogoji</xsl:when> <xsl:otherwise>ShareAlike</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:if test="string-length($prettystring) &gt; 0"> <xsl:value-of select="concat('-', $prettystring)" /> </xsl:if> </xsl:template> <xsl:template name="noncommercial"> <xsl:param name="commercial" /> <xsl:variable name="prettystring"> <xsl:if test="./commercial='n'"> <xsl:choose> <xsl:when test="$license-locale='az' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='el' ">Μη Εμπορική Χρήση</xsl:when> <xsl:when test="$license-locale='eo' ">Nekomerca</xsl:when> <xsl:when test="$license-locale='en' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='es_PR' ">No comercial</xsl:when> <xsl:when test="$license-locale='af' ">Niekommersieel</xsl:when> <xsl:when test="$license-locale='vi' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='ca' ">No comercial</xsl:when> <xsl:when test="$license-locale='it' ">Non commerciale</xsl:when> <xsl:when test="$license-locale='eu' ">Ez merkataritzarako</xsl:when> <xsl:when test="$license-locale='es_PE' ">No comercial</xsl:when> <xsl:when test="$license-locale='bg' ">Некомерсиално</xsl:when> <xsl:when test="$license-locale='en_US' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='ga' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='en_SG' ">Non-Commercial</xsl:when> <xsl:when test="$license-locale='cs' ">Neužívejte dílo komerčně</xsl:when> <xsl:when test="$license-locale='zh' ">非商业性使用</xsl:when> <xsl:when test="$license-locale='en_HK' ">Non-Commercial</xsl:when> <xsl:when test="$license-locale='gl' ">Non comercial</xsl:when> <xsl:when test="$license-locale='id' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Nekomercijalno</xsl:when> <xsl:when test="$license-locale='de_CH' ">Keine kommerzielle Nutzung</xsl:when> <xsl:when test="$license-locale='es_MX' ">No comercial</xsl:when> <xsl:when test="$license-locale='es_GT' ">No comercial</xsl:when> <xsl:when test="$license-locale='nl' ">Niet-commercieel</xsl:when> <xsl:when test="$license-locale='pt' ">Uso Não-Comercial</xsl:when> <xsl:when test="$license-locale='no' ">Ikkekommersiell</xsl:when> <xsl:when test="$license-locale='es_EC' ">No comercial</xsl:when> <xsl:when test="$license-locale='nso' ">E sego ya kgwebo</xsl:when> <xsl:when test="$license-locale='es_CO' ">No comercial</xsl:when> <xsl:when test="$license-locale='es_CL' ">No Comercial</xsl:when> <xsl:when test="$license-locale='tr' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='es' ">No comercial</xsl:when> <xsl:when test="$license-locale='de_AT' ">Keine kommerzielle Nutzung</xsl:when> <xsl:when test="$license-locale='es_AR' ">No Comercial</xsl:when> <xsl:when test="$license-locale='zu' ">Awunakusetshenziselwa ezentengiselwano</xsl:when> <xsl:when test="$license-locale='ro' ">Necomercial</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Uso Não-Comercial</xsl:when> <xsl:when test="$license-locale='en_GB' ">Non-Commercial</xsl:when> <xsl:when test="$license-locale='en_CA' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='fr' ">Pas d'Utilisation Commerciale</xsl:when> <xsl:when test="$license-locale='hy' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='th' ">ไม่ใช้เพื่อการค้า</xsl:when> <xsl:when test="$license-locale='hr' ">Nekomercijalno</xsl:when> <xsl:when test="$license-locale='zh_TW' ">非商業性</xsl:when> <xsl:when test="$license-locale='da' ">Ikke-kommerciel</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Pas d'Utilisation Commerciale</xsl:when> <xsl:when test="$license-locale='fi' ">Epäkaupallinen</xsl:when> <xsl:when test="$license-locale='hu' ">Ne add el!</xsl:when> <xsl:when test="$license-locale='ja' ">非営利</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Pas d'Utilisation Commerciale</xsl:when> <xsl:when test="$license-locale='he' ">שימוש לא מסחרי</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Pas d'Utilisation Commerciale</xsl:when> <xsl:when test="$license-locale='de' ">Keine kommerzielle Nutzung</xsl:when> <xsl:when test="$license-locale='sr' ">Некомерцијално</xsl:when> <xsl:when test="$license-locale='ko' ">비영리</xsl:when> <xsl:when test="$license-locale='sv' ">Ickekommersiell</xsl:when> <xsl:when test="$license-locale='mk' ">Некомерцијално</xsl:when> <xsl:when test="$license-locale='st' ">Noncommercial</xsl:when> <xsl:when test="$license-locale='zh_HK' ">非商業性</xsl:when> <xsl:when test="$license-locale='it_CH' ">Non commerciale</xsl:when> <xsl:when test="$license-locale='pl' ">Użycie niekomercyjne</xsl:when> <xsl:when test="$license-locale='ms' ">Bukan komersial</xsl:when> <xsl:when test="$license-locale='sl' ">Nekomercialno</xsl:when> <xsl:otherwise>NonCommercial</xsl:otherwise> </xsl:choose> </xsl:if> </xsl:variable> <xsl:if test="string-length($prettystring) &gt; 0"> <xsl:value-of select="concat('-', $prettystring)" /> </xsl:if> </xsl:template> <xsl:template name="thiswork"> <xsl:param name="license_name" /> <xsl:param name="license_url" /> <xsl:variable name="work_type_raw" select="/answers/work-info/type" /> <xsl:variable name="work_title_raw" select="/answers/work-info/title" /> <xsl:variable name="attribution_name" select="/answers/work-info/attribution_name" /> <xsl:variable name="attribution_url" select="/answers/work-info/attribution_url" /> <xsl:variable name="more_perms_url" select="/answers/work-info/more_permissions_url" /> <xsl:variable name="source_url" select="/answers/work-info/source_work_url" /> <xsl:variable name="source_domain" select="/answers/work-info/source_work_domain" /> <xsl:variable name="work_title"> <xsl:choose> <xsl:when test="$work_title_raw != ''"> <xsl:choose> <xsl:when test="$work_type_raw=''"> <span property="dc:title" xmlns:dc="http://purl.org/dc/elements/1.1/"><xsl:value-of select="$work_title_raw" /></span> </xsl:when> <xsl:otherwise> <span href="http://purl.org/dc/dcmitype/{$work_type_raw}" property="dc:title" rel="dc:type" xmlns:dc="http://purl.org/dc/elements/1.1/"> <xsl:value-of select="$work_title_raw" /> </span> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="work_author"> <xsl:choose> <xsl:when test="$attribution_url != ''"> <a href="{$attribution_url}" xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName" rel="cc:attributionURL"> <xsl:choose> <xsl:when test="$attribution_name != ''"> <xsl:value-of select="$attribution_name" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$attribution_url" /> </xsl:otherwise> </xsl:choose></a> </xsl:when> <xsl:when test="$attribution_name != ''"> <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName"> <xsl:value-of select="$attribution_name" /> </span> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="more_perms_link"> <xsl:choose> <xsl:when test="$more_perms_url != ''"> <a xmlns:cc="http://creativecommons.org/ns#" href="{$more_perms_url}" rel="cc:morePermissions"><xsl:value-of select="$more_perms_url" /></a> </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="work_type_word"> <xsl:choose> <xsl:when test="$license-locale='az' ">work</xsl:when> <xsl:when test="$license-locale='el' ">έργο</xsl:when> <xsl:when test="$license-locale='eo' ">verko</xsl:when> <xsl:when test="$license-locale='en' ">work</xsl:when> <xsl:when test="$license-locale='es_PR' ">obra</xsl:when> <xsl:when test="$license-locale='af' ">werk</xsl:when> <xsl:when test="$license-locale='vi' ">work</xsl:when> <xsl:when test="$license-locale='ca' ">obra</xsl:when> <xsl:when test="$license-locale='it' ">opera</xsl:when> <xsl:when test="$license-locale='eu' ">lana</xsl:when> <xsl:when test="$license-locale='es_PE' ">obra</xsl:when> <xsl:when test="$license-locale='bg' ">произведение</xsl:when> <xsl:when test="$license-locale='en_US' ">work</xsl:when> <xsl:when test="$license-locale='ga' ">work</xsl:when> <xsl:when test="$license-locale='en_SG' ">work</xsl:when> <xsl:when test="$license-locale='cs' ">dílo</xsl:when> <xsl:when test="$license-locale='zh' ">作品</xsl:when> <xsl:when test="$license-locale='en_HK' ">work</xsl:when> <xsl:when test="$license-locale='gl' ">obra</xsl:when> <xsl:when test="$license-locale='id' ">work</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">delo</xsl:when> <xsl:when test="$license-locale='de_CH' ">Werk</xsl:when> <xsl:when test="$license-locale='es_MX' ">obra</xsl:when> <xsl:when test="$license-locale='es_GT' ">obra</xsl:when> <xsl:when test="$license-locale='nl' ">werk</xsl:when> <xsl:when test="$license-locale='pt' ">obra</xsl:when> <xsl:when test="$license-locale='no' ">verk</xsl:when> <xsl:when test="$license-locale='es_EC' ">obra</xsl:when> <xsl:when test="$license-locale='nso' ">mošomo</xsl:when> <xsl:when test="$license-locale='es_CO' ">obra</xsl:when> <xsl:when test="$license-locale='es_CL' ">obra</xsl:when> <xsl:when test="$license-locale='tr' ">work</xsl:when> <xsl:when test="$license-locale='es' ">obra</xsl:when> <xsl:when test="$license-locale='de_AT' ">Werk</xsl:when> <xsl:when test="$license-locale='es_AR' ">obra</xsl:when> <xsl:when test="$license-locale='zu' ">umsebenzi</xsl:when> <xsl:when test="$license-locale='ro' ">operă</xsl:when> <xsl:when test="$license-locale='pt_PT' ">obra</xsl:when> <xsl:when test="$license-locale='en_GB' ">work</xsl:when> <xsl:when test="$license-locale='en_CA' ">work</xsl:when> <xsl:when test="$license-locale='fr' ">création</xsl:when> <xsl:when test="$license-locale='hy' ">work</xsl:when> <xsl:when test="$license-locale='th' ">ผลงาน</xsl:when> <xsl:when test="$license-locale='hr' ">djelo</xsl:when> <xsl:when test="$license-locale='zh_TW' ">著作</xsl:when> <xsl:when test="$license-locale='da' ">værk</xsl:when> <xsl:when test="$license-locale='fr_CH' ">création</xsl:when> <xsl:when test="$license-locale='fi' ">teos</xsl:when> <xsl:when test="$license-locale='hu' ">Mű</xsl:when> <xsl:when test="$license-locale='ja' ">作品</xsl:when> <xsl:when test="$license-locale='fr_CA' ">création</xsl:when> <xsl:when test="$license-locale='he' ">יצירה</xsl:when> <xsl:when test="$license-locale='fr_LU' ">création</xsl:when> <xsl:when test="$license-locale='de' ">Werk oder Inhalt</xsl:when> <xsl:when test="$license-locale='sr' ">дело</xsl:when> <xsl:when test="$license-locale='ko' ">저작물</xsl:when> <xsl:when test="$license-locale='sv' ">verk</xsl:when> <xsl:when test="$license-locale='mk' ">дело</xsl:when> <xsl:when test="$license-locale='st' ">work</xsl:when> <xsl:when test="$license-locale='zh_HK' ">作品</xsl:when> <xsl:when test="$license-locale='it_CH' ">opera</xsl:when> <xsl:when test="$license-locale='pl' ">utwór</xsl:when> <xsl:when test="$license-locale='ms' ">karya</xsl:when> <xsl:when test="$license-locale='sl' ">delo</xsl:when> <xsl:otherwise>work</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="work_type"> <xsl:choose> <xsl:when test="$work_type_raw=''"> <xsl:value-of select="$work_type_word" /> </xsl:when> <xsl:otherwise> <span href="http://purl.org/dc/dcmitype/{$work_type_raw}" rel="dc:type" xmlns:dc="http://purl.org/dc/elements/1.1/"> <xsl:value-of select="$work_type_word" /></span> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$work_author != ''"> <xsl:choose> <xsl:when test="$work_title != ''"> <xsl:choose> <xsl:when test="$license-locale='az' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='el' "><xsl:copy-of select="$work_title"/> αναφορά <xsl:copy-of select="$work_author"/> διέπεται από άδεια <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='eo' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PR' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='af' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='vi' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ca' "><xsl:copy-of select="$work_type"/> de <xsl:copy-of select="$work_author"/> està subjecta a una llicència de <a rel="license" href="{$license_url}"><xsl:copy-of select="$license_name"/> de Creative Commons</a></xsl:when> <xsl:when test="$license-locale='it' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='eu' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PE' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='bg' ">Произведението <xsl:copy-of select="$work_title"/> създадено от <xsl:copy-of select="$work_author"/> ползва <a rel="license" href="{$license_url}">Криейтив Комънс <xsl:copy-of select="$license_name"/> договор</a>.</xsl:when> <xsl:when test="$license-locale='en_US' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ga' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_SG' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='cs' "><xsl:copy-of select="$work_title"/> autora <xsl:copy-of select="$work_author"/> podléhí licenci <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='zh' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_HK' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='gl' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='id' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Ovo <xsl:copy-of select="$work_title"/> , čiji je autor <xsl:copy-of select="$work_author"/> je licencirano pod uslovima licence <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='de_CH' "><xsl:copy-of select="$work_title"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_MX' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_GT' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nl' "><xsl:copy-of select="$work_title"/> van <xsl:copy-of select="$work_author"/> is in licentie gegeven volgens een <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licentie</a>.</xsl:when> <xsl:when test="$license-locale='pt' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='no' "><xsl:copy-of select="$work_title"/> av <xsl:copy-of select="$work_author"/> er lisensiert under en <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lisens</a>.</xsl:when> <xsl:when test="$license-locale='es_EC' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nso' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CO' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CL' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='tr' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='de_AT' "><xsl:copy-of select="$work_title"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_AR' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zu' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ro' "><xsl:copy-of select="$work_title"/> de <xsl:copy-of select="$work_author"/> este licenţiat printr-o <a rel="license" href="{$license_url}">Licenţă Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='pt_PT' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_GB' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_CA' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hy' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='th' "><xsl:copy-of select="$work_title"/> โดย <xsl:copy-of select="$work_author"/> อนุญาตให้ใช้ได้ตาม <a rel="license" href="{$license_url}">สัญญาอนุญาตของครีเอทีฟคอมมอนส์แบบ <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hr' ">Djelo <xsl:copy-of select="$work_title"/>, čiji je autor <xsl:copy-of select="$work_author"/>, ustupljeno je pod licencom <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='zh_TW' "><xsl:copy-of select="$work_title"/>由<xsl:copy-of select="$work_author"/>製作,以<a rel="license" href="{$license_url}">創用CC <xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='da' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CH' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='fi' "><xsl:copy-of select="$work_title"/> jonka tekijä on <xsl:copy-of select="$work_author"/> on lisensoitu <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> lisenssillä</a>.</xsl:when> <xsl:when test="$license-locale='hu' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ja' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CA' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='he' ">היצירה <xsl:copy-of select="$work_title"/> של <xsl:copy-of select="$work_author"/> מוצעת תחת <a rel="license" href="{$license_url}">רישיון <xsl:copy-of select="$license_name"/> של Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='fr_LU' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='de' "><xsl:copy-of select="$work_title"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='sr' ">Ово <xsl:copy-of select="$work_title"/> , чији је аутор <xsl:copy-of select="$work_author"/>, је лиценцирано под условима лиценце <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='ko' "><xsl:copy-of select="$work_author"/>에 의해 창작된 <xsl:copy-of select="$work_title"/> 은(는) <a rel="license" href="{$license_url}">크리에이티브 커먼즈 <xsl:copy-of select="$license_name"/> 라이선스</a>에 따라 이용할 수 있습니다.</xsl:when> <xsl:when test="$license-locale='sv' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='mk' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='st' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zh_HK' "><xsl:copy-of select="$work_title"/>由<xsl:copy-of select="$work_author"/>製作,以<a rel="license" href="{$license_url}">共享創意<xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='it_CH' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='pl' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ms' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sl' "><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:otherwise><xsl:copy-of select="$work_title"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$license-locale='az' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='el' ">Αυτό <xsl:copy-of select="$work_type"/>αναφορά <xsl:copy-of select="$work_author"/> χορηγείται με άδεια<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='eo' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PR' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='af' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='vi' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ca' ">Aquesta <xsl:copy-of select="$work_type"/> de <xsl:copy-of select="$work_author"/> està subjecta a una llicència de <a rel="license" href="{$license_url}"><xsl:copy-of select="$license_name"/> de Creative Commons</a></xsl:when> <xsl:when test="$license-locale='it' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='eu' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PE' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='bg' ">Произведението <xsl:copy-of select="$work_type"/> с автор <xsl:copy-of select="$work_author"/> е лицензирано под <a rel="license" href="{$license_url}">Криейтив Комънс <xsl:copy-of select="$license_name"/> договор</a>.</xsl:when> <xsl:when test="$license-locale='en_US' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ga' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_SG' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='cs' ">Uvedené dílo (<xsl:copy-of select="$work_type"/>) vytvořené <xsl:copy-of select="$work_author"/> podléhá licenci <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='zh' ">本<xsl:copy-of select="$work_type"/>由<xsl:copy-of select="$work_author"/>创作,采用<a rel="license" href="{$license_url}">知识共享<xsl:copy-of select="$license_name"/>许可协议</a>进行许可。</xsl:when> <xsl:when test="$license-locale='en_HK' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='gl' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='id' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Ovo <xsl:copy-of select="$work_type"/> , čiji je autor <xsl:copy-of select="$work_author"/>, je licencirano pod uslovima licence<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='de_CH' ">Diese(s) <xsl:copy-of select="$work_type"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_MX' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_GT' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nl' "><xsl:copy-of select="$work_type"/> van <xsl:copy-of select="$work_author"/> is in licentie gegeven volgens een <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licentie</a>.</xsl:when> <xsl:when test="$license-locale='pt' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='no' ">Dette <xsl:copy-of select="$work_type"/> av <xsl:copy-of select="$work_author"/> er lisensieret under en<a rel="license" href="{$license_url}">Creative Commons<xsl:copy-of select="$license_name"/> lisens</a>.</xsl:when> <xsl:when test="$license-locale='es_EC' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nso' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CO' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CL' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='tr' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='de_AT' ">Diese(s) <xsl:copy-of select="$work_type"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_AR' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zu' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ro' ">Această <xsl:copy-of select="$work_type"/> creată de <xsl:copy-of select="$work_author"/> este pusă la dispoziţie sub <a rel="license" href="{$license_url}">Licenţa <xsl:copy-of select="$license_name"/> Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='pt_PT' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_GB' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_CA' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr' ">Cette <xsl:copy-of select="$work_type"/> par <xsl:copy-of select="$work_author"/> est mise à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hy' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='th' "><xsl:copy-of select="$work_type"/>นี้ โดย <xsl:copy-of select="$work_author"/> ใช้<a rel="license" href="{$license_url}">สัญญาอนุญาตของครีเอทีฟคอมมอนส์แบบ <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hr' ">Ovo <xsl:copy-of select="$work_type"/>, čiji je autor <xsl:copy-of select="$work_author"/>, ustupljeno je pod licencom <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='zh_TW' ">本<xsl:copy-of select="$work_type"/>由<xsl:copy-of select="$work_author"/>製作,以<a rel="license" href="{$license_url}">創用CC <xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='da' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Ce/tte{work_type} par <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='fi' ">Tämä <xsl:copy-of select="$work_type"/> jonka tekijä on <xsl:copy-of select="$work_author"/> on lisensoitu <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> lisenssillä</a>.</xsl:when> <xsl:when test="$license-locale='hu' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ja' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Ce/tte{work_type} par <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='he' ">יצירת <xsl:copy-of select="$work_type"/> זו של <xsl:copy-of select="$work_author"/> מוצע תחת <a rel="license" href="{$license_url}">רישיון <xsl:copy-of select="$license_name"/> של Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Ce/tte{work_type} par <xsl:copy-of select="$work_author"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='de' ">Diese(s) <xsl:copy-of select="$work_type"/> von <xsl:copy-of select="$work_author"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='sr' ">Ово <xsl:copy-of select="$work_type"/>, чији је аутор <xsl:copy-of select="$work_author"/>, је лиценцирано под условима лиценце<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='ko' "><xsl:copy-of select="$work_author"/>의 저작물인 이 <xsl:copy-of select="$work_type"/>은 <a rel="license" href="{$license_url}">크리에이티브 커먼즈 <xsl:copy-of select="$license_name"/> 라이선스</a>에 따라 이용할 수 있습니다.</xsl:when> <xsl:when test="$license-locale='sv' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='mk' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='st' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zh_HK' ">本<xsl:copy-of select="$work_type"/>由<xsl:copy-of select="$work_author"/>製作,以<a rel="license" href="{$license_url}">共享創意<xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='it_CH' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='pl' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ms' ">This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sl' ">To <xsl:copy-of select="$work_type"/> avtorja <xsl:copy-of select="$work_author"/> je ponujeno pod <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licenco</a>.</xsl:when> <xsl:otherwise>This <xsl:copy-of select="$work_type"/> by <xsl:copy-of select="$work_author"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$work_title != ''"> <xsl:choose> <xsl:when test="$license-locale='az' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='el' "><xsl:copy-of select="$work_title"/>είναι υπό άδεια <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Άδεια</a>.</xsl:when> <xsl:when test="$license-locale='eo' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PR' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='af' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='vi' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ca' "><xsl:copy-of select="$work_type"/> està subjecte a una llicència de <a rel="license" href="{$license_url}"><xsl:copy-of select="$license_name"/> de Creative Commons</a></xsl:when> <xsl:when test="$license-locale='it' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='eu' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PE' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='bg' ">Произведението <xsl:copy-of select="$work_title"/> ползва <a rel="license" href="{$license_url}">Криейтив Комънс <xsl:copy-of select="$license_name"/> договор</a>.</xsl:when> <xsl:when test="$license-locale='en_US' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ga' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_SG' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='cs' "><xsl:copy-of select="$work_title"/> podléhá licenci <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='zh' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_HK' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='gl' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='id' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Ovo <xsl:copy-of select="$work_title"/> je licencirano pod uslovima licence<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='de_CH' "><xsl:copy-of select="$work_title"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_MX' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_GT' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nl' "><xsl:copy-of select="$work_title"/> is in licentie gegeven volgens een <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licentie</a>.</xsl:when> <xsl:when test="$license-locale='pt' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='no' "><xsl:copy-of select="$work_title"/> er lisensiert under en <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lisens</a>.</xsl:when> <xsl:when test="$license-locale='es_EC' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='nso' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CO' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CL' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='tr' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='de_AT' "><xsl:copy-of select="$work_title"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='es_AR' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zu' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ro' "><xsl:copy-of select="$work_title"/> este licenţiat printr-o <a rel="license" href="{$license_url}">Licenţă Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='pt_PT' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_GB' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_CA' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr' "><xsl:copy-of select="$work_title"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hy' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='th' "><xsl:copy-of select="$work_title"/> ได้อนุญาตให้ใช้ภายใต้ <a rel="license" href="{$license_url}">สัญญาอนุญาตครีเอทีฟคอมมอนส์แบบ<xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hr' ">Djelo <xsl:copy-of select="$work_title"/> ustupljeno je pod licencom <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='zh_TW' "><xsl:copy-of select="$work_title"/>以<a rel="license" href="{$license_url}">創用CC <xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='da' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CH' "><xsl:copy-of select="$work_title"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='fi' "><xsl:copy-of select="$work_title"/> on lisensoitu <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> lisenssillä</a>.</xsl:when> <xsl:when test="$license-locale='hu' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ja' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='fr_CA' "><xsl:copy-of select="$work_title"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='he' ">היצירה <xsl:copy-of select="$work_title"/> מוצעת תחת <a rel="license" href="{$license_url}">רישיון <xsl:copy-of select="$license_name"/> של Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='fr_LU' "><xsl:copy-of select="$work_title"/> est mis à disposition selon les termes de la <a rel="license" href="{$license_url}">licence Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='de' "><xsl:copy-of select="$work_title"/> steht unter einer <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Lizenz</a>.</xsl:when> <xsl:when test="$license-locale='sr' ">Ово <xsl:copy-of select="$work_title"/> је лиценцирано под условима лиценце<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='ko' "><xsl:copy-of select="$work_title"/>은(는) <a rel="license" href="{$license_url}">크리에이티브 커먼즈 <xsl:copy-of select="$license_name"/> 라이선스</a>에 따라 이용할 수 있습니다.</xsl:when> <xsl:when test="$license-locale='sv' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='mk' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='st' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zh_HK' "><xsl:copy-of select="$work_title"/>以<a rel="license" href="{$license_url}">共享創意 <xsl:copy-of select="$license_name"/> 授權條款</a>釋出。</xsl:when> <xsl:when test="$license-locale='it_CH' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='pl' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ms' "><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sl' "><xsl:copy-of select="$work_title"/> je ponujeno pod <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licenco</a>.</xsl:when> <xsl:otherwise><xsl:copy-of select="$work_title"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$license-locale='az' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='el' ">Αυτό <xsl:copy-of select="$work_type"/> χορηγείται με άδεια <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='eo' ">Tiu ĉi <xsl:copy-of select="$work_type"/> havas permesilon <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Permesilo</a>.</xsl:when> <xsl:when test="$license-locale='en' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_PR' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='af' ">Hierdie <xsl:copy-of select="$work_type"/> is gelisensieer ingevolge 'n <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/>-lisensie</a>.</xsl:when> <xsl:when test="$license-locale='vi' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ca' ">Aquesta <xsl:copy-of select="$work_type"/> està subjecta a una llicència de <a rel="license" href="{$license_url}"><xsl:copy-of select="$license_name"/> de Creative Commons</a></xsl:when> <xsl:when test="$license-locale='it' ">Questo/a <xsl:copy-of select="$work_type"/> è pubblicato sotto una <a rel="license" href="{$license_url}">Licenza Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='eu' "><xsl:copy-of select="$work_type"/> lan hau <a rel="license" href="{$license_url}">Creative Commons-en baimen baten mende dago</a>.</xsl:when> <xsl:when test="$license-locale='es_PE' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='bg' ">Произведението <xsl:copy-of select="$work_type"/> ползва условията на <a rel="license" href="{$license_url}">Криейтив Комънс договор</a>.</xsl:when> <xsl:when test="$license-locale='en_US' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='ga' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='en_SG' ">This <xsl:copy-of select="$work_type"/> is licenced under a <a rel="license" href="{$license_url}">Creative Commons Licence</a>.</xsl:when> <xsl:when test="$license-locale='cs' ">Uvedené dílo (<xsl:copy-of select="$work_type"/>) podléhá licenci<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='zh' ">本<xsl:copy-of select="$work_type"/>采用<a rel="license" href="{$license_url}">知识共享<xsl:copy-of select="$license_name"/>许可协议</a>进行许可。</xsl:when> <xsl:when test="$license-locale='en_HK' ">This <xsl:copy-of select="$work_type"/> is licenced under a <a rel="license" href="{$license_url}">Creative Commons Licence</a>.</xsl:when> <xsl:when test="$license-locale='gl' ">Esta <xsl:copy-of select="$work_type"/> está baixo unha licenza <a rel="license" href="{$license_url}"><xsl:copy-of select="$license_name"/> de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='id' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Ovo <xsl:copy-of select="$work_type"/> je licencirano pod uslovima licence<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='de_CH' ">Dieser <xsl:copy-of select="$work_type"/> ist unter einer <a rel="license" href="{$license_url}">Creative Commons-Lizenz</a> lizenziert.</xsl:when> <xsl:when test="$license-locale='es_MX' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='es_GT' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='nl' ">Op dit <xsl:copy-of select="$work_type"/> is een <a rel="license" href="{$license_url}">Creative Commons Licentie</a> van toepassing.</xsl:when> <xsl:when test="$license-locale='pt' ">Esta <xsl:copy-of select="$work_type"/> está licenciada sob uma <a rel="license" href="{$license_url}">Licença Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='no' ">Dette <xsl:copy-of select="$work_type"/> er lisensieret under en <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> lisens</a>.</xsl:when> <xsl:when test="$license-locale='es_EC' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='nso' ">O <xsl:copy-of select="$work_type"/> o tsentšwe laesense ka tlase ga <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es_CO' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='es_CL' ">Esta <xsl:copy-of select="$work_type"/> es publicada bajo una <a rel="license" href="{$license_url}">licencia Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='tr' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='es' ">Esta <xsl:copy-of select="$work_type"/> está bajo una <a rel="license" href="{$license_url}">licencia de Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='de_AT' ">Dieser <xsl:copy-of select="$work_type"/> ist unter einer <a rel="license" href="{$license_url}">Creative Commons-Lizenz</a> lizenziert.</xsl:when> <xsl:when test="$license-locale='es_AR' ">Esta <xsl:copy-of select="$work_type"/> está licenciada bajo una <a rel="license" href="{$license_url}">Licencia Creative Commons <xsl:copy-of select="$license_name"/> </a>.</xsl:when> <xsl:when test="$license-locale='zu' ">Lolu <xsl:copy-of select="$work_type"/> lufakwa ilayisensi ngaphansi kwale <a rel="license" href="{$license_url}">Layisensi Yakwa-Creative Commons ethi <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='ro' ">Această <xsl:copy-of select="$work_type"/> este pusă la dispoziţie sub <a rel="license" href="{$license_url}">Licenţa <xsl:copy-of select="$license_name"/> Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Esta <xsl:copy-of select="$work_type"/> está licenciada sob uma <a rel="license" href="{$license_url}">Licença Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='en_GB' ">This <xsl:copy-of select="$work_type"/> is licenced under a <a rel="license" href="{$license_url}">Creative Commons Licence</a>.</xsl:when> <xsl:when test="$license-locale='en_CA' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons Licence</a>.</xsl:when> <xsl:when test="$license-locale='fr' ">Cette <xsl:copy-of select="$work_type"/> est mise à disposition sous un <a rel="license" href="{$license_url}">contrat Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='hy' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='th' "><xsl:copy-of select="$work_type"/>นี้ ใช้<a rel="license" href="{$license_url}">สัญญาอนุญาตของครีเอทีฟคอมมอนส์แบบ <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='hr' ">Ovo <xsl:copy-of select="$work_type"/> je dano na korištenje pod licencom <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='zh_TW' ">本 <xsl:copy-of select="$work_type"/> 係採用<a rel="license" href="{$license_url}">創用 CC <xsl:copy-of select="$license_name"/> 授權條款</a>授權.</xsl:when> <xsl:when test="$license-locale='da' ">Dette <xsl:copy-of select="$work_type"/> er licenseret under en <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Licens</a>.</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Ce/tte <xsl:copy-of select="$work_type"/> est mis/e à disposition sous un <a rel="license" href="{$license_url}">contrat Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='fi' ">Tämän <xsl:copy-of select="$work_type"/>teoksen käyttöoikeutta koskee <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/>-lisenssi</a>.</xsl:when> <xsl:when test="$license-locale='hu' ">Ez a <xsl:copy-of select="$work_type"/> a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Licenc feltételeinek megfelelően szabadon felhasználható</a>.</xsl:when> <xsl:when test="$license-locale='ja' ">この<xsl:copy-of select="$work_type"/>は、<a rel="license" href="{$license_url}">クリエイティブ・コモンズ・ライセンス</a>の下でライセンスされています。</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Cette <xsl:copy-of select="$work_type"/> est mise à disposition sous un <a rel="license" href="{$license_url}">contrat Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='he' "><span dir="rtl"><xsl:copy-of select="$work_type"/> זו מופצת תחת <a rel="license" href="{$license_url}"> רישיון <xsl:copy-of select="$license_name"/> של Creative Commons</a>.</span></xsl:when> <xsl:when test="$license-locale='fr_LU' ">Ce/tte <xsl:copy-of select="$work_type"/> est mis/e à disposition sous un <a rel="license" href="{$license_url}">contrat Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='de' ">Dieser <xsl:copy-of select="$work_type"/> ist unter einer <a rel="license" href="{$license_url}">Creative Commons-Lizenz</a> lizenziert.</xsl:when> <xsl:when test="$license-locale='sr' ">Ово <xsl:copy-of select="$work_type"/> је лиценцирано под условима лиценце<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='ko' ">이 <xsl:copy-of select="$work_type"/>은 <a rel="license" href="{$license_url}">크리에이티브 커먼즈 <xsl:copy-of select="$license_name"/> 라이선스</a>에 따라 이용할 수 있습니다.</xsl:when> <xsl:when test="$license-locale='sv' ">Detta <xsl:copy-of select="$work_type"/> är licensierat under en <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> Licens</a>.</xsl:when> <xsl:when test="$license-locale='mk' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='st' ">This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:when> <xsl:when test="$license-locale='zh_HK' ">本 <xsl:copy-of select="$work_type"/> 係採用<a rel="license" href="{$license_url}">共享創意 <xsl:copy-of select="$license_name"/> 授權條款</a>授權.</xsl:when> <xsl:when test="$license-locale='it_CH' ">Questo/a <xsl:copy-of select="$work_type"/> è pubblicato sotto una <a rel="license" href="{$license_url}">Licenza Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='pl' ">Ten <xsl:copy-of select="$work_type"/> jest dostępny na <a rel="license" href="{$license_url}">licencji Creative Commons <xsl:copy-of select="$license_name"/></a>.</xsl:when> <xsl:when test="$license-locale='ms' "><xsl:copy-of select="$work_type"/> ini dilesen dibawah satu <a rel="license" href="{$license_url}">Lesen <xsl:copy-of select="$license_name"/> Creative Commons</a>.</xsl:when> <xsl:when test="$license-locale='sl' ">To <xsl:copy-of select="$work_type"/> je ponujeno pod<a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> licenco</a></xsl:when> <xsl:otherwise>This <xsl:copy-of select="$work_type"/> is licensed under a <a rel="license" href="{$license_url}">Creative Commons <xsl:copy-of select="$license_name"/> License</a>.</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> <xsl:if test="$source_url != ''"> <br /> <xsl:variable name="source_link"> <a href="{$source_url}" rel="dc:source" xmlns:dc="http://purl.org/dc/elements/1.1/"><xsl:value-of select="$source_domain" /></a> </xsl:variable> <xsl:choose> <xsl:when test="$license-locale='az' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='el' ">Βασισμένο σε ένα έργο στο <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='eo' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='en' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_PR' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='af' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='vi' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ca' ">Creat a partir d'una obra disponible a <xsl:copy-of select="$source_link"/></xsl:when> <xsl:when test="$license-locale='it' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='eu' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_PE' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='bg' ">Базирано на следната творба:<xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='en_US' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ga' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='en_SG' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='cs' ">Vytvořeno na základě tohoto díla: <xsl:copy-of select="$source_link"/></xsl:when> <xsl:when test="$license-locale='zh' ">基于<xsl:copy-of select="$source_link"/>上的作品创作。</xsl:when> <xsl:when test="$license-locale='en_HK' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='gl' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='id' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Zasnovano na delu na <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='de_CH' ">Beruht auf einem Werk unter <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_MX' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_GT' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='nl' ">Gebaseerd op een werk op <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='pt' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='no' ">Basert på et verk på adresse <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_EC' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='nso' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_CO' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_CL' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='tr' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='de_AT' ">Beruht auf einem Werk unter <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='es_AR' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='zu' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ro' ">Bazată pe opera disponibilă la <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='en_GB' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='en_CA' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='fr' ">Basé(e) sur une oeuvre à <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='hy' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='th' ">อยู่บนพื้นฐานของงานที่ <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='hr' ">Bazirano na djelu koje se nalazi na <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='zh_TW' ">此作品衍生自<xsl:copy-of select="$source_link"/>。</xsl:when> <xsl:when test="$license-locale='da' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Basé(e) sur une oeuvre à <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='fi' ">Teos on muunnelma teoksesta <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='hu' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ja' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Basé(e) sur une oeuvre à <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='he' ">מבוסס על יצירה הנמצאת בכתובת <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Basé(e) sur une oeuvre à <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='de' ">Beruht auf einem Inhalt unter <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='sr' ">Засновано на делу на <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ko' "><xsl:copy-of select="$source_link"/>의 저작물에 기초</xsl:when> <xsl:when test="$license-locale='sv' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='mk' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='st' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='zh_HK' ">此作品衍生自<xsl:copy-of select="$source_link"/>。</xsl:when> <xsl:when test="$license-locale='it_CH' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='pl' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='ms' ">Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:when test="$license-locale='sl' ">Ustvarjena na podlagi dela, dostopnega na <xsl:copy-of select="$source_link"/>.</xsl:when> <xsl:otherwise>Based on a work at <xsl:copy-of select="$source_link"/>.</xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="$more_perms_link != ''"> <br /> <xsl:choose> <xsl:when test="$license-locale='az' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='el' ">Παραχωρήσεις πέρα από τα πλαίσα αυτής της άδειας ενδεχομένως να είναι διαθέσιμες στο<xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='eo' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_PR' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='af' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='vi' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ca' ">Els permisos addicionals als d'aquesta llicència es poden trobar a <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='it' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='eu' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_PE' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='bg' ">За разрешения извън обсега на този договор, проверете на <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en_US' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ga' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en_SG' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='cs' ">Práva nad rámec této licence jsou popsána zde: <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='zh' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en_HK' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='gl' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='id' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='sr_LATN' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='de_CH' ">Über diese Lizenz hinausgehende Erlaubnisse erhalten Sie möglicherweise unter <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_MX' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_GT' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='nl' ">Toestemming met betrekking tot rechten die niet onder deze licentie vallen zijn beschikbaar voor <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='pt' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='no' ">Tillatelse til annen bruk enn den som dekkes av denne lisensen kanvære tilgjengelig fra <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_EC' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='nso' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_CO' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_CL' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='tr' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='de_AT' ">Über diese Lizenz hinausgehende Erlaubnisse erhalten Sie möglicherweise unter <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='es_AR' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='zu' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ro' ">Permisii dincolo de aria acestei licente ar putea fi disponibile la <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='pt_PT' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en_GB' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='en_CA' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='fr' ">Les autorisations au-delà du champ de cette licence peuvent être obtenues à <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='hy' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='th' ">การอนุญาตนอกเหนือจากที่ระบุไว้ในสัญญาอนุญาตนี้ อาจมีอยู่ที่ <xsl:copy-of select="$more_perms_link"/></xsl:when> <xsl:when test="$license-locale='hr' ">Dopuštenja koja prelaze okvire ove licence možda su dostupna na <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='zh_TW' ">超出此條款範圍外的授權可於<xsl:copy-of select="$more_perms_link"/>查閱。</xsl:when> <xsl:when test="$license-locale='da' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_CH' ">Les autorisations au-delà du champ de cette licence peuvent être obtenues à <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='fi' ">Voit myös hankkia muita oikeuksia teokseen <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='hu' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ja' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_CA' ">Les autorisations au-delà du champ de cette licence peuvent être obtenues à <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='he' ">ייתכן וניתן למצוא הרשאות מעבר לאלו הניתנות ברישיון זה בכתובת <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='fr_LU' ">Les autorisations au-delà du champ de cette licence peuvent être obtenues à <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='de' ">Über diese Lizenz hinausgehende Erlaubnisse erhalten Sie möglicherweise unter <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='sr' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ko' ">이 라이선스의 범위를 넘는 이용허락은 <xsl:copy-of select="$more_perms_link"/>에서 받을 수 있습니다.</xsl:when> <xsl:when test="$license-locale='sv' ">Tillstånd utöver denna licens kan vara tillgängligt från <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='mk' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='st' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='zh_HK' ">超出此條款範圍外的授權可於<xsl:copy-of select="$more_perms_link"/>查閱。</xsl:when> <xsl:when test="$license-locale='it_CH' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='pl' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='ms' ">Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:when test="$license-locale='sl' ">Dodatna dovoljenja, ki jih ne obsega ta licenca, so dostopna na <xsl:copy-of select="$more_perms_link"/>.</xsl:when> <xsl:otherwise>Permissions beyond the scope of this license may be available at <xsl:copy-of select="$more_perms_link"/>.</xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="iso-8859-1"?> <!-- simple xslt file: scexml.xsl --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:scexml="http://microsoft.com/sce/scexml" > <xsl:output method="html" indent="no"/> <msxsl:script language="JScript" implements-prefix="scexml"> function AttribValue(NodeList, AttriName) { var Node = NodeList.nextNode(); return Node.attributes.getNamedItem(AttriName).text; } function OpenWindowWithHtml(contents) { window.open("Sample.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); } </msxsl:script> <xsl:template match="/SCEAnalysisData"> <html> <xsl:text disable-output-escaping="yes"> <![CDATA[ <script> function OpenDetailsWindow(name, system, baseline) { var TmpWindow=window.open(null,target="_blank","height=400,width=640,status=no,toolbar=no,menubar=no,location=no,resizable=yes"); TmpWindow.document.write('<body bgcolor="#EEEEEE">'); TmpWindow.document.write('<table width="90%" frame="border" bgcolor="#DDDDDD">'); TmpWindow.document.write('<tr><td width="20%">Setting</td><td>'); TmpWindow.document.write(name); TmpWindow.document.write('</td></tr>'); TmpWindow.document.write('<tr><td width="20%">System</td><td>'); TmpWindow.document.write(system); TmpWindow.document.write('</td></tr>'); TmpWindow.document.write('<tr><td>Baseline</td><td>'); TmpWindow.document.write(baseline); TmpWindow.document.write('</td></tr></Table>'); TmpWindow.document.write('</body>'); } </script> <STYLE TYPE="text/css"> <!-- A.nav:link { color: #000000 } A.nav:visited { color: #000000 } //--> </STYLE> ]]> </xsl:text> <title>SCE Analysis Results</title> <h2>SCE Analysis Results</h2> <body bgcolor="#EEEEEE"> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Description</th> </TR> <tr> <td>Machine Name</td><td><xsl:value-of select="Description/MachineName"/></td> </tr> <tr> <td>Profile Description</td><td><xsl:value-of select="Description/ProfileDescription"/></td> </tr> <tr> <td>Analysis Timestamp</td><td><xsl:value-of select="Description/AnalysisTimestamp"/></td> </tr> </TABLE> <xsl:apply-templates select="SystemAccess"/> <xsl:apply-templates select="SystemAudit"/> <xsl:apply-templates select="RegistryValues"/> <xsl:apply-templates select="ServiceSecurity"/> <xsl:apply-templates select="GroupMembership"/> <xsl:apply-templates select="PrivilegeRights"/> <xsl:apply-templates select="FileSecurity"/> <xsl:apply-templates select="RegistrySecurity"/> </body> </html> </xsl:template> <xsl:template match="SystemAccess"> <h3><font face="Arial">Area: System Access</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="SystemAudit"> <h3><font face="Arial">Area: System Audit</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td> <xsl:apply-templates select="AnalysisResult"/> </td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="RegistryValues"> <h3><font face="Arial">Area: Registry Values</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="ServiceSecurity"> <h3><font face="Arial">Area: Service Security</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="GroupMembership"> <h3><font face="Arial">Area: Group Membership</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="PrivilegeRights"> <h3><font face="Arial">Area: Privilege Rights</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="FileSecurity"> <h3><font face="Arial">Area: File Security</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="RegistrySecurity"> <h3><font face="Arial">Area: Registry Security</font></h3> <TABLE width="90%" frame="border" bgcolor="#DDDDDD"> <TR bgcolor="#AAAAAA"> <th>Setting</th><th width="20%">Status</th> </TR> <xsl:for-each select="Setting"> <TR> <TD><xsl:value-of select="Description"/></TD> <td><xsl:apply-templates select="AnalysisResult"/></td> </TR> </xsl:for-each> </TABLE> <p/> </xsl:template> <xsl:template match="AnalysisResult"> <xsl:variable name="details"> <xsl:if test="BaselineValue/@Type='SecurityDescriptor' "> <xsl:value-of select="BaselineValue"/> <xsl:value-of select="StartupType"/> <xsl:value-of select="SecurityDescriptor"/> </xsl:if> </xsl:variable> <xsl:variable name="baseline"> <xsl:choose> <xsl:when test="BaselineValue/@Type='ServiceSetting' "> <xsl:value-of select="BaselineValue/StartupType"/>, <xsl:value-of select="BaselineValue/SecurityDescriptor"/> </xsl:when> <xsl:when test="BaselineValue/@Type='EventAudit' "> Audit Success: <xsl:value-of select="BaselineValue/Success"/>&lt;br/&gt; Audit Failure: <xsl:value-of select="BaselineValue/Failure"/> </xsl:when> <xsl:when test="BaselineValue/@Type='Accounts' "> <xsl:for-each select="BaselineValue/Account"> Account:<xsl:value-of select="."/>&lt;br/&gt; </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:value-of select="BaselineValue"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="system"> <xsl:choose> <xsl:when test="SystemValue/@Type='ServiceSetting' "> <xsl:value-of select="SystemValue/StartupType"/>, <xsl:value-of select="SystemValue/SecurityDescriptor"/> </xsl:when> <xsl:when test="SystemValue/@Type='EventAudit' "> Audit Success: <xsl:value-of select="SystemValue/Success"/>&lt;br/&gt; Audit Failure: <xsl:value-of select="SystemValue/Failure"/> </xsl:when> <xsl:when test="SystemValue/@Type='Accounts' "> <xsl:for-each select="SystemValue/Account"> Account:<xsl:value-of select="."/>&lt;br/&gt; </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:value-of select="SystemValue"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <a class="nav"> <xsl:attribute name="href">javascript:OpenDetailsWindow('<xsl:value-of select="../Description"/>', '<xsl:value-of select="$baseline"/>', '<xsl:value-of select="$system"/>');</xsl:attribute> <xsl:if test="Match='FALSE' "> <font color="red"> <xsl:value-of select="Match"/> </font> </xsl:if> <xsl:if test="Match!='FALSE' "> <xsl:value-of select="Match"/> </xsl:if> </a> </xsl:template> </xsl:stylesheet>
<reponame>mayankmanj/acl2 <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ; XDOC Documentation System for ACL2 ; Copyright (C) 2009-2011 Centaur Technology ; ; Contact: ; Centaur Technology Formal Verification Group ; 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA. ; http://www.centtech.com/ ; ; License: (An MIT/X11-style license) ; ; Permission is hereby granted, free of charge, to any person obtaining a ; copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation ; the rights to use, copy, modify, merge, publish, distribute, sublicense, ; and/or sell copies of the Software, and to permit persons to whom the ; Software is furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in ; all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ; DEALINGS IN THE SOFTWARE. ; ; Original author: <NAME> <<EMAIL>> html-full-index.xsl Provides the more full view of the index, which is shown when the "Full index" page is loaded. --> <xsl:include href="html-topic.xsl"/> <xsl:template match="index"> <h1>Full Index</h1> <dl class="index_dl"> <xsl:for-each select="index_entry"> <xsl:sort select="index_head/see" /> <dt class="index_dt"><xsl:apply-templates select="index_head"/></dt> <dd class="index_dd"><xsl:apply-templates select="index_body"/></dd> </xsl:for-each> </dl> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/math" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> --> <xsl:template name="F_Calc_Proc_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:variable name="tot_bifs_h_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H)">0</xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H"> <xsl:variable name="bifs_h_" select="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $iProcInst)]/@BIFS_H)"/> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_H) * $bifs_h_)"/> </xsl:if> </xsl:variable> <xsl:value-of select="(($BLKD_MOD_LANE_H * 2) + $tot_bifs_h_ + ($BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_H))"/> </xsl:template> <xsl:template name="F_Calc_Max_Proc_Height"> <!-- Store the heights in a variable --> <xsl:variable name="proc_heights_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE)"> <PROC HEIGHT="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE"> <xsl:variable name="procInst_" select="@INSTANCE"/> <xsl:variable name="proc_height_"> <xsl:call-template name="F_Calc_Proc_Height"> <xsl:with-param name="iProcInst" select="$procInst_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found Proc height as <xsl:value-of select="$proc_height_"/></xsl:message> --> <PROC HEIGHT="{$proc_height_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <!-- <xsl:message>Found Proc ax as <xsl:value-of select="math:max(exsl:node-set($proc_heights_)/PROC/@HEIGHT)"/></xsl:message> --> <xsl:value-of select="math:max(exsl:node-set($proc_heights_)/PROC/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Proc_MemoryUnits_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS = 'MEMORY_UNIT'))])">0</xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS='MEMORY_UNIT'))]"> <xsl:variable name="peri_gap_"> <xsl:choose> <xsl:when test="not(@CSTACK_INDEX)"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Store the all memory unit heights in a variable --> <xsl:variable name="memU_heights_"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and (@MODCLASS='MEMORY_UNIT'))]"> <!-- <xsl:variable name="unitId_" select="@PSTACK_MODS_Y"/> --> <xsl:variable name="unitHeight_"> <xsl:call-template name="F_Calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <MEM_UNIT HEIGHT="{$unitHeight_ + $peri_gap_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($memU_heights_)/MEM_UNIT/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="F_Calc_Proc_Peripherals_Height"> <xsl:param name="iProcInst" select="_processor_"/> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS = 'MEMORY_UNIT'))])">0</xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS='MEMORY_UNIT'))]"> <xsl:variable name="peri_gap_"> <xsl:if test="@CSTACK_INDEX"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:if> <xsl:if test="not(@IS_CSTACK)">0</xsl:if> </xsl:variable> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="peri_heights_"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@PROCESSOR = $iProcInst) and not(@MODCLASS='MEMORY_UNIT'))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message><xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <PERI HEIGHT="{$peri_height_ + $peri_gap_}"/> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($peri_heights_)/PERI/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="F_Calc_Space_AbvSbs_Height"> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:variable name = "stackAbvSbs_West_H_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name = "stackAbvSbs_East_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackAbvSbs_heights_"> <STACK HEIGHT="{$stackAbvSbs_East_H_}"/> <STACK HEIGHT="{$stackAbvSbs_West_H_}"/> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($stackAbvSbs_heights_)/STACK/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Space_BlwSbs_Height"> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:variable name = "stackBlwSbs_West_H_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name = "stackBlwSbs_East_H_"> <xsl:call-template name="F_Calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackBlwSbs_heights_"> <STACK HEIGHT="{$stackBlwSbs_East_H_}"/> <STACK HEIGHT="{$stackBlwSbs_West_H_}"/> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($stackBlwSbs_heights_)/STACK/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Stack_AbvSbs_Height"> <xsl:param name="iStackIdx" select="100"/> <!-- <xsl:message>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</xsl:message> --> <xsl:if test="(not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]) and not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@STACK_HORIZ_INDEX = $iStackIdx)]))"><xsl:value-of select="$BLKD_PROC2SBS_GAP"/></xsl:if> <xsl:if test="(($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]) or ($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[ (@STACK_HORIZ_INDEX = $iStackIdx)]))"> <!-- <xsl:variable name="peri_gap_"> <xsl:value-of select="$BLKD_BIF_H"/> <xsl:choose> <xsl:when test="(@SHAPE_VERTI_INDEX)"> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> --> <!-- <xsl:message>The gap is <xsl:value-of select="$peri_gap_"/></xsl:message> <xsl:message>The gap is <xsl:value-of select="$peri_gap_"/></xsl:message> <xsl:message>================================</xsl:message> <xsl:message>================================</xsl:message> <xsl:message>This is above <xsl:value-of select="@INSTANCE"/></xsl:message> <xsl:message><xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_"/></xsl:message> --> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="peri_heights_"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and not(@MODCLASS = 'MEMORY_UNIT') and (@IS_ABVSBS))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message>This is above <xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <!-- <xsl:call-template name="F_Calc_Shape_Height"> <xsl:with-param name="shapeId" select="@SHAPE_ID"/> </xsl:call-template> --> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <PERI HEIGHT="{$peri_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@MODCLASS = 'MEMORY_UNIT') and (@IS_ABVSBS))]"> <xsl:variable name="memu_height_"> <xsl:call-template name="F_Calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Mem_Unit : <xsl:value-of select="@SHAPE_ID"/> : <xsl:value-of select="$memu_height_ + $peri_gap_"/></xsl:message> --> <PERI HEIGHT="{$memu_height_ + $BLKD_BIF_H}"/> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_ABVSBS))]"> <xsl:variable name="proc_height_"> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>===================================</xsl:message> <xsl:message>Processor : <xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_ + $peri_gap_"/></xsl:message> <PERI HEIGHT="{$proc_height_ + $BLKD_PROC2SBS_GAP }"/> --> <PERI HEIGHT="{$proc_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message><xsl:value-of select="@INSTANCE"/> : <xsl:value-of select="$peri_height_ + $peri_gap_"/></xsl:message> <xsl:message>================================</xsl:message> --> <!-- <xsl:message>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</xsl:message> --> <xsl:value-of select="sum(exsl:node-set($peri_heights_)/PERI/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="F_Calc_Stack_BlwSbs_Height"> <xsl:param name="iStackIdx" select="100"/> <!-- Store the all peripheral heights in a variable --> <xsl:variable name="stack_heights_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_BLWSBS))])"> <STACKSHAPE HEIGHT="0"/> </xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@IS_BLWSBS))]"> <xsl:variable name="peri_gap_"> <xsl:choose> <xsl:when test="(@SHAPE_VERTI_INDEX)"> <xsl:value-of select="$BLKD_BIF_H"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and not(@MODCLASS = 'MEMORY_UNIT') and (@IS_BLWSBS))]"> <xsl:for-each select="MODULE"> <!-- <xsl:message>This is below <xsl:value-of select="@INSTANCE"/></xsl:message> --> <xsl:variable name="peri_height_"> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <STACKSHAPE HEIGHT="{$peri_height_ + $peri_gap_}"/> </xsl:for-each> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iStackIdx) and (@MODCLASS = 'MEMORY_UNIT') and (@IS_BLWSBS))]"> <xsl:variable name="memu_height_"> <xsl:call-template name="F_Calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <STACKSHAPE HEIGHT="{$memu_height_ + $peri_gap_}"/> <!-- <xsl:message>Mem_Unit : <xsl:value-of select="@SHAPE_ID"/> : <xsl:value-of select="$memu_height_ + $peri_gap_"/></xsl:message> --> </xsl:for-each> </xsl:if> <xsl:variable name="sbsBuckets_H_"> <xsl:call-template name="F_Calc_Stack_SbsBuckets_Height"> <xsl:with-param name="iStackIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <STACKSHAPE HEIGHT="{$sbsBuckets_H_}"/> <!-- <xsl:message>Sbs Bucket H : <xsl:value-of select="$sbsBuckets_H_"/></xsl:message> --> </xsl:variable> <!-- <xsl:message>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv</xsl:message> --> <xsl:value-of select="sum(exsl:node-set($stack_heights_)/STACKSHAPE/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Stack_SbsBuckets_Height"> <xsl:param name="iStackIdx" select="1000"/> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)])">0</xsl:if> <xsl:if test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <!-- Store the all buckets heights in a variable --> <xsl:variable name="bkt_heights_"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="bkt_height_"> <xsl:call-template name="F_Calc_SbsBucket_Height"> <xsl:with-param name="iBucketId" select="@BUS_INDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found shared buckets height as <xsl:value-of select="$bkt_height_"/></xsl:message> --> <BKT HEIGHT="{$bkt_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($bkt_heights_)/BKT/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="F_Calc_Max_Stack_BlwSbs_Height"> <!-- Store the heights in a variable --> <xsl:variable name="blwSbs_heights_"> <!-- Default, in case there are no modules or ports --> <BLW HEIGHT="0"/> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@EAST &lt; $G_ROOT/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH)]"> <!-- <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="F_Calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <BLW HEIGHT="{$stack_height_}"/> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@WEST = ($G_ROOT/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH -1))]"> <!-- <xsl:message>Last stack of index <xsl:value-of select="@WEST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="F_Calc_Stack_BlwSbs_Height"> <xsl:with-param name="iStackIdx" select="@WEST"/> </xsl:call-template> </xsl:variable> <BLW HEIGHT="{$stack_height_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found Blw Sbs max as <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/></xsl:message> --> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Max_Stack_AbvSbs_Height"> <!-- Store the heights in a variable --> <xsl:variable name="abvSbs_heights_"> <!-- Default, in case there are no modules or ports --> <ABV HEIGHT="0"/> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@EAST &lt; $G_ROOT/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH)]"> <!-- <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> --> <xsl:variable name="stack_height_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found stack of width <xsl:value-of select="$stack_width_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <ABV HEIGHT="{$stack_height_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found Blw Sbs max as <xsl:value-of select="math:max(exsl:node-set($blwSbs_heights_)/BLW/@HEIGHT)"/></xsl:message> --> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($abvSbs_heights_)/ABV/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_MultiProc_Stack_Height"> <xsl:param name="iMPStack_Blkd_X" select="100"/> <xsl:variable name="mpStk_ShpHeights_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@HAS_MULTIPROCCONNS) and (@PSTACK_BLKD_X = $iMPStack_Blkd_X))])"> <MPSHAPE HEIGHT="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@HAS_MULTIPROCCONNS) and (@PSTACK_BLKD_X = $iMPStack_Blkd_X))]"> <xsl:variable name="shpClass_" select="@MODCLASS"/> <xsl:variable name="shpHeight_"> <xsl:choose> <xsl:when test="$shpClass_ = 'PERIPHERAL'"> <!-- <xsl:message>Found Multi Proc Peripheral</xsl:message> --> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="MODULE/@INSTANCE"/> </xsl:call-template> </xsl:when> <xsl:when test="$shpClass_ = 'MEMORY_UNIT'"> <!-- <xsl:message>Found Multi Proc Memory Unit</xsl:message> --> <xsl:call-template name="F_Calc_MemoryUnit_Height"> <xsl:with-param name="iShapeIndex" select="@CSHAPE_INDEX"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Found <xsl:value-of select="$shpHeight_"/></xsl:message> --> <MPSHAPE HEIGHT="{$shpHeight_}"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message>Found stack of height <xsl:value-of select="sum(exsl:node-set($mpStk_ShpHeights_)/MPSHAPE/@HEIGHT)"/></xsl:message> --> <xsl:value-of select="sum(exsl:node-set($mpStk_ShpHeights_)/MPSHAPE/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Max_MultiProc_Stack_Height"> <!-- Store the heights in a variable --> <xsl:variable name="mpStks_Heights_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE)"> <MPSTK HEIGHT="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@PSTACK_BLKD_X)]"> <xsl:variable name="mpstack_height_"> <xsl:call-template name="F_Calc_MultiProc_Stack_Height"> <xsl:with-param name="iMPStack_Blkd_X" select="(@PSTACK_BLKD_X + 1)"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found <xsl:value-of select="$mpstack_height_"/></xsl:message> --> <MPSTK HEIGHT="{$mpstack_height_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($mpStks_Heights_)/MPSTK/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Stack_Shape_Y"> <xsl:param name="iHorizIdx" select="100"/> <xsl:param name="iVertiIdx" select="100"/> <!-- <xsl:param name="sbsGap" select="0"/> <xsl:variable name="numSBSs_" select="count($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSSHAPES/MODULE)"/> <xsl:variable name="sbs_LANE_H_" select="($numSBSs_ * $BLKD_SBS_LANE_H)"/> <xsl:variable name="sbsGap_" select="($BLKD_PROC2SBS_GAP + $sbs_LANE_H_)"/> --> <xsl:variable name="sbsGap_" select="((count($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSSHAPES/MODULE) * $BLKD_SBS_LANE_H) + $BLKD_PROC2SBS_GAP)"/> <xsl:if test="(not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) and not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) and not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]))">0</xsl:if> <!-- <xsl:if test="(not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) and not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) and not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]))"> <xsl:message>Something is missing </xsl:message> </xsl:if> --> <xsl:if test="(($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) or ($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]) or ($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[( (@STACK_HORIZ_INDEX = $iHorizIdx) and ((@SHAPE_VERTI_INDEX = $iVertiIdx) or ($iVertiIdx = 100)))]))"> <!-- Store the spaces above this one in a variable --> <xsl:variable name="spaces_above_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))])"> <SPACE HEIGHT="0"/> </xsl:if> <!-- Store the height of all peripherals and memory units above this one--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:if test="not(@MODCLASS='MEMORY_UNIT')"> <xsl:variable name="peri_height_"> <xsl:call-template name="F_Calc_Shape_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found peri height <xsl:value-of select="$peri_height_"/></xsl:message> --> <SPACE HEIGHT="{$peri_height_ + $BLKD_BIF_H}"/> </xsl:if> <xsl:if test="(@MODCLASS='MEMORY_UNIT')"> <xsl:variable name="memu_height_"> <xsl:call-template name="F_Calc_MemoryUnit_Height"> <xsl:with-param name="iShapeId" select="@SHAPE_ID"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found unit height <xsl:value-of select="$memu_height_"/></xsl:message> --> <SPACE HEIGHT="{$memu_height_ + $BLKD_BIF_H}"/> </xsl:if> </xsl:for-each> <!-- Store the height of all the processors above this one--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:variable name="proc_height_"> <xsl:call-template name="F_Calc_PeriShape_Height"> <xsl:with-param name="iShapeInst" select="@INSTANCE"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found Proc height <xsl:value-of select="$proc_height_ + $BLKD_BIF_H"/></xsl:message> --> <SPACE HEIGHT="{$proc_height_ + $BLKD_BIF_H}"/> </xsl:for-each> <!-- If its a peripheral that is below the shared busses, or its a shared bus bucket --> <!-- add the height of the shared busses and the processor. --> <xsl:if test="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))]/@IS_BLWSBS)"> <SPACE HEIGHT="{$sbsGap_}"/> </xsl:if> <xsl:if test="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX = $iVertiIdx))])"> <SPACE HEIGHT="{$sbsGap_}"/> </xsl:if> <!-- Store the height of all shared bus buckets above this one--> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[((@STACK_HORIZ_INDEX = $iHorizIdx) and (@SHAPE_VERTI_INDEX &lt; $iVertiIdx))]"> <xsl:variable name="bkt_height_"> <xsl:call-template name="F_Calc_SbsBucket_Height"> <xsl:with-param name="iBucketId" select="@BUS_INDEX"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found bucket height <xsl:value-of select="$bkt_height_ + $BLKD_BIF_H"/></xsl:message> --> <SPACE HEIGHT="{$bkt_height_ + $BLKD_BIF_H}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($spaces_above_)/SPACE/@HEIGHT)"/> </xsl:if> </xsl:template> <xsl:template name="F_Calc_Max_BusConnLane_BifY"> <xsl:param name="iBusName" select="'_busname_'"/> <!-- Store the heights in a variable --> <xsl:variable name="busConnYs_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE/BUSCONN)"> <BUSCONNY HEIGHT="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE[(@BUSNAME = $iBusName)]/BUSCONN"> <xsl:variable name="peri_cstk_y_"> <xsl:call-template name="F_Calc_CStackShapesAbv_Height"> <xsl:with-param name="iCStackIndex" select="../@CSTACK_INDEX"/> <xsl:with-param name="ICStackModY" select="@CSTACK_MODS_Y"/> </xsl:call-template> </xsl:variable> <xsl:variable name="peri_bif_dy_"> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_H) * @BIF_Y)"/> </xsl:variable> <xsl:variable name="peri_bc_y_"> <xsl:value-of select="($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_H + $peri_bif_dy_ + ceiling($BLKD_BIF_H div 2)) - ceiling($BLKD_BIFC_H div 2)"/> </xsl:variable> <!-- <xsl:message>Found a busconn lane</xsl:message> --> <BUSCONNY HEIGHT="{$peri_cstk_y_ + $peri_bif_dy_ + $peri_bc_y_}"/> </xsl:for-each> </xsl:variable> <!-- Return the max of them --> <xsl:value-of select="math:max(exsl:node-set($busConnYs_)/BUSCONNY/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Min_BusConnLane_BifY"> <xsl:param name="iBusName" select="'_busname_'"/> <!-- Store the heights in a variable --> <xsl:variable name="busConnYs_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE/BUSCONN)"> <BUSCONNY HEIGHT="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE/BUSCONNS/BUSCONNLANE[(@BUSNAME = $iBusName)]/BUSCONN"> <xsl:variable name="peri_cstk_y_"> <xsl:call-template name="F_Calc_CStackShapesAbv_Height"> <xsl:with-param name="iCStackIndex" select="../@CSTACK_INDEX"/> <xsl:with-param name="iCStackModY" select="@CSTACK_MODS_Y"/> </xsl:call-template> </xsl:variable> <xsl:variable name="peri_bif_dy_"> <xsl:value-of select="(($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_H) * @BIF_Y)"/> </xsl:variable> <xsl:variable name="peri_bc_y_"> <xsl:value-of select="($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_H + $peri_bif_dy_ + ceiling($BLKD_BIF_H div 2)) - ceiling($BLKD_BIFC_H div 2)"/> </xsl:variable> <!-- <xsl:message>Found a busconn lane</xsl:message> --> <BUSCONNY HEIGHT="{$peri_cstk_y_ + $peri_bc_y_}"/> </xsl:for-each> </xsl:variable> <!-- Return the min of them --> <xsl:value-of select="math:min(exsl:node-set($busConnYs_)/BUSCONNY/@HEIGHT)"/> </xsl:template> <xsl:template name="F_Calc_Stack_Height"> <xsl:param name="iStackIdx" select="100"/> <!-- <xsl:message>Calculating height for Stack Index <xsl:value-of select="$iStackIdx"/></xsl:message> --> <xsl:variable name="stack_height_"> <!-- if this is called with no vert index of a shape it defaults to the total height of the stack --> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$iStackIdx"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Calculated height for Stack as <xsl:value-of select="$stack_height_"/></xsl:message> --> <xsl:value-of select="$stack_height_"/> </xsl:template> <!-- --> <xsl:template name="F_Calc_Stack_Width"> <xsl:param name="iStackIdx" select="100"/> <!-- <xsl:message>=============Stack Idx <xsl:value-of select="$iStackIdx"/>====</xsl:message> --> <xsl:variable name="shape_widths_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[@STACK_HORIZ_INDEX = $iStackIdx])"> <SHAPE WIDTH="0"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[@STACK_HORIZ_INDEX = $iStackIdx])"> <SHAPE WIDTH="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <!-- <xsl:variable name="proc_w_"> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:variable> <xsl:message>Found processor of width <xsl:value-of select="$proc_w_"/></xsl:message> --> <SHAPE WIDTH="{$BLKD_MOD_W}"/> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="shpClass_" select="@MODCLASS"/> <xsl:variable name="shape_w_"> <xsl:choose> <xsl:when test="$shpClass_ = 'PERIPHERAL'"> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:when> <xsl:when test="$shpClass_ = 'MEMORY_UNIT'"> <xsl:value-of select="($BLKD_MOD_W * @MODS_W)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Found shape width <xsl:value-of select="$shape_w_"/></xsl:message> --> <SHAPE WIDTH="{$shape_w_}"/> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX = $iStackIdx)]"> <xsl:variable name="bucket_w_"> <xsl:value-of select="(($BLKD_MOD_BKTLANE_W * 2) + (($BLKD_MOD_W * @MODS_W) + ($BLKD_MOD_BUCKET_G * (@MODS_W - 1))))"/> </xsl:variable> <!-- <xsl:message>Found bucket of width <xsl:value-of select="$bucket_w_"/></xsl:message> --> <SHAPE WIDTH="{$bucket_w_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="math:max(exsl:node-set($shape_widths_)/SHAPE/@WIDTH)"/> </xsl:template> <xsl:template name="F_Calc_Stack_X"> <xsl:param name="iStackIdx" select="0"/> <!-- <xsl:message>Looking for stack indexes less than <xsl:value-of select="$iStackIdx"/></xsl:message> --> <!-- Store the stack widths in a variable --> <xsl:variable name="stackspace_widths_"> <xsl:if test="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH = $iStackIdx)"> <STACKSPACE WIDTH="{$BLKD_BUS_LANE_W}"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX &lt; $iStackIdx)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@EAST &lt;= $iStackIdx)]"> <!-- <xsl:message>==============================</xsl:message> <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> <xsl:message>Bus lane space width <xsl:value-of select="@BUSLANES_W"/></xsl:message> <xsl:message>Bus lane space is <xsl:value-of select="$space_width_"/></xsl:message> <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> --> <xsl:variable name="East_"> <xsl:choose> <xsl:when test="@EAST"><xsl:value-of select="@EAST"/></xsl:when> <xsl:otherwise>'NONE'</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="West_"> <xsl:choose> <xsl:when test="@WEST"><xsl:value-of select="@WEST"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>1 - West_ <xsl:value-of select="$West_"/></xsl:message> <xsl:message>1 - East_ <xsl:value-of select="$East_"/></xsl:message> --> <xsl:variable name="space_width_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToWest" select="$West_"/> <xsl:with-param name="iStackToEast" select="$East_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stack_width_"> <xsl:if test="not(@EAST = $iStackIdx)"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:if> <xsl:if test="(@EAST = $iStackIdx)">0</xsl:if> </xsl:variable> <!-- <xsl:message>Found stack of width <xsl:value-of select="$stack_width_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <STACKSPACE WIDTH="{$stack_width_ + $space_width_}"/> </xsl:for-each> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(not(@EAST) and (@WEST = ($iStackIdx -1)))]"> <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> <!-- <xsl:message>Found end space of <xsl:value-of select="$space_width_"/></xsl:message> --> <STACKSPACE WIDTH="{$space_width_}"/> </xsl:for-each> </xsl:variable> <xsl:value-of select="sum(exsl:node-set($stackspace_widths_)/STACKSPACE/@WIDTH)"/> </xsl:template> <xsl:template name="F_Calc_Space_Width"> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <!-- <xsl:message>Stack to West <xsl:value-of select="$stackToWest"/></xsl:message> <xsl:message>Stack to East <xsl:value-of select="$stackToEast"/></xsl:message> --> <xsl:variable name="spaceWidth_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[((@EAST = $iStackToEast) or (not($iStackToWest = 'NONE') and (@WEST = $iStackToWest)))]"> <xsl:value-of select="((($G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[((@EAST = $iStackToEast) or (not($iStackToWest = 'NONE') and (@WEST = $iStackToWest)))]/@BUSLANES_W) + 1) * $BLKD_BUS_LANE_W)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Space width <xsl:value-of select="$spaceWidth_"/></xsl:message> --> <xsl:value-of select="$spaceWidth_"/> </xsl:template> <xsl:template name="F_Calc_Space_X"> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <!-- <xsl:message>Stack East <xsl:value-of select="$stackToEast"/></xsl:message> <xsl:message>Stack West <xsl:value-of select="$stackToWest"/></xsl:message> --> <!-- Store the stack widths in a variable --> <!-- <xsl:message>Looking for stack indexes less than <xsl:value-of select="$stackIdx"/></xsl:message> --> <xsl:variable name="stackspace_widths_"> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:if test="not($G_ROOT/EDKSYSTEM/SBSBUCKETS/SBSBUCKET[(@STACK_HORIZ_INDEX &lt; $iStackToEast)])"> <STACKSPACE WIDTH="0"/> </xsl:if> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[((@EAST &lt; $iStackToEast) or (not($iStackToWest = 'NONE') and (@EAST &lt;= $iStackToWest)))]"> <!-- <xsl:message>==============================</xsl:message> <xsl:message>Found a space of index <xsl:value-of select="@EAST"/></xsl:message> --> <xsl:variable name="East_"> <xsl:choose> <xsl:when test="@EAST"><xsl:value-of select="@EAST"/></xsl:when> <xsl:otherwise>'NONE'</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="West_"> <xsl:choose> <xsl:when test="@WEST"><xsl:value-of select="@WEST"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>2 - West_ <xsl:value-of select="$West_"/></xsl:message> <xsl:message>2 - East_ <xsl:value-of select="$East_"/></xsl:message> --> <xsl:variable name="space_width_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToWest" select="$West_"/> <xsl:with-param name="iStackToEast" select="$East_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:variable name="space_width_" select="($BLKD_BUS_LANE_W * @BUSLANES_W)"/> <xsl:message>Bus lane space width <xsl:value-of select="@BUSLANES_W"/></xsl:message> <xsl:message>Bus lane space is <xsl:value-of select="$space_width_"/></xsl:message> --> <xsl:variable name="stack_width_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="@EAST"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Found stack of width <xsl:value-of select="$stack_width_"/></xsl:message> <xsl:message>==============================</xsl:message> --> <STACKSPACE WIDTH="{$stack_width_ + $space_width_}"/> </xsl:for-each> </xsl:variable> <xsl:variable name = "stackToWest_W_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:variable name = "stackToEast_W_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="stackIdx" select="$stackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceEast_W_" select="ceiling($stackToEast_W_ div 2)"/> --> <xsl:variable name ="extSpaceWest_W_" select="ceiling($stackToWest_W_ div 2)"/> <xsl:value-of select="sum(exsl:node-set($stackspace_widths_)/STACKSPACE/@WIDTH) - $extSpaceWest_W_"/> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> --> <xsl:template name="Define_Busses"> <!-- <xsl:param name="drawarea_w" select="500"/> <xsl:param name="drawarea_h" select="500"/> --> <xsl:for-each select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR"> <xsl:call-template name="Define_BusArrowsEastWest"> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> <xsl:call-template name="Define_BusArrowsNorthSouth"> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> <xsl:call-template name="Define_SplitBusses"> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:for-each> <xsl:call-template name="Define_SharedBus"> <xsl:with-param name="iBusStd" select="'AXI'"/> </xsl:call-template> <xsl:call-template name="Define_SharedBus"> <xsl:with-param name="iBusStd" select="'OPB'"/> </xsl:call-template> <xsl:call-template name="Define_SharedBus"> <xsl:with-param name="iBusStd" select="'PLB'"/> </xsl:call-template> <xsl:call-template name="Define_SharedBus"> <xsl:with-param name="iBusStd" select="'PLBV46'"/> </xsl:call-template> <xsl:call-template name="Define_SharedBus_Group"/> </xsl:template> <xsl:template name="Define_BusArrowsEastWest"> <xsl:param name="iBusStd" select="'PLB'"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busStdColor_lt_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <g id="{$iBusStd}_BusArrowEast"> <path class="bus" d="M 0,0 L {$BLKD_BUS_ARROW_W}, {ceiling($BLKD_BUS_ARROW_H div 2)} L 0,{$BLKD_BUS_ARROW_H}, Z" style="stroke:none; fill:{$busStdColor_}"/> </g> <g id="{$iBusStd}_BusArrowWest"> <use x="0" y="0" xlink:href="#{$iBusStd}_BusArrowEast" transform="scale(-1,1) translate({$BLKD_BUS_ARROW_W * -1},0)"/> </g> <g id="{$iBusStd}_BusArrowHInitiator"> <rect x="0" y="{$BLKD_BUS_ARROW_G}" width= "{$BLKD_BUS_ARROW_W}" height="{$BLKD_P2P_BUS_W}" style="stroke:none; fill:{$busStdColor_}"/> </g> </xsl:template> <!-- <xsl:param name="bus_col" select="'OPB'"/> --> <xsl:template name="Define_BusArrowsNorthSouth"> <xsl:param name="iBusStd" select="'PLB'"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busStdColor_lt_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <g id="{$iBusStd}_BusArrowSouth"> <path class="bus" d="M 0,0 L {$BLKD_BUS_ARROW_H},0 L {ceiling($BLKD_BUS_ARROW_H div 2)}, {$BLKD_BUS_ARROW_W} Z" style="stroke:none; fill:{$busStdColor_}"/> </g> <g id="{$iBusStd}_BusArrowNorth"> <use x="0" y="0" xlink:href="#{$iBusStd}_BusArrowSouth" transform="scale(1,-1) translate(0,{$BLKD_BUS_ARROW_H * -1})"/> </g> <g id="{$iBusStd}_BusArrowInitiator"> <rect x="{$BLKD_BUS_ARROW_G}" y="0" width= "{$BLKD_BUS_ARROW_W - ($BLKD_BUS_ARROW_G * 2)}" height="{$BLKD_BUS_ARROW_H}" style="stroke:none; fill:{$busStdColor_}"/> </g> </xsl:template> <xsl:template name="Draw_P2PBus"> <xsl:param name="iBusX" select="0"/> <xsl:param name="iBusTop" select="0"/> <xsl:param name="iBusBot" select="0"/> <xsl:param name="iBusStd" select="'_bstd_'"/> <xsl:param name="iBusName" select="'_p2pbus_'"/> <xsl:param name="iBotBifType" select="'_unk_'"/> <xsl:param name="iTopBifType" select="'_unk_'"/> <xsl:variable name="busStdColor_"> <xsl:choose> <xsl:when test="@BUSSTD"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:when> <xsl:when test="not($iBusStd = '_bstd_')"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="'TRS'"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="p2pH_" select="($iBusBot - $iBusTop) - ($BLKD_BUS_ARROW_H * 2)"/> <xsl:variable name="botArrow_"> <xsl:choose> <xsl:when test="((($iBotBifType = 'INITIATOR') or ($iBotBifType = 'MASTER')) and ($iBusStd = 'FSL'))">BusArrowInitiator</xsl:when> <xsl:otherwise>BusArrowSouth</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="topArrow_"> <xsl:choose> <xsl:when test="((($iTopBifType = 'INITIATOR') or ($iTopBifType = 'MASTER')) and ($iBusStd = 'FSL'))">BusArrowInitiator</xsl:when> <xsl:otherwise>BusArrowNorth</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="@BUSSTD"> <use x="{($iBusX + ceiling($BLKD_BIFC_W div 2)) - ceiling($BLKD_BUS_ARROW_W div 2)}" y="{$iBusTop + ($BLKD_BIFC_H - $BLKD_BUS_ARROW_H) + $BLKD_BUS_ARROW_H}" xlink:href="#{@BUSSTD}_{$topArrow_}"/> <use x="{($iBusX + ceiling($BLKD_BIFC_W div 2)) - ceiling($BLKD_BUS_ARROW_W div 2)}" y="{$iBusBot - $BLKD_BUS_ARROW_H}" xlink:href="#{@BUSSTD}_{$botArrow_}"/> </xsl:if> <xsl:if test="(not(@BUSSTD) and not($iBusStd = '_bstd_'))"> <use x="{($iBusX + ceiling($BLKD_BIFC_W div 2)) - ceiling($BLKD_BUS_ARROW_W div 2)}" y="{$iBusTop + ($BLKD_BIFC_H - $BLKD_BUS_ARROW_H) + $BLKD_BUS_ARROW_H}" xlink:href="#{$iBusStd}_{$topArrow_}"/> <use x="{($iBusX + ceiling($BLKD_BIFC_W div 2)) - ceiling($BLKD_BUS_ARROW_W div 2)}" y="{$iBusBot - $BLKD_BUS_ARROW_H}" xlink:href="#{$iBusStd}_{$botArrow_}"/> </xsl:if> <rect x="{($iBusX + ceiling($BLKD_BIFC_W div 2)) - ceiling($BLKD_BUS_ARROW_W div 2) + $BLKD_BUS_ARROW_G}" y="{$iBusTop + $BLKD_BIFC_H + $BLKD_BUS_ARROW_H}" height= "{$p2pH_ - ($BLKD_BUS_ARROW_H * 2)}" width="{$BLKD_BUS_ARROW_W - ($BLKD_BUS_ARROW_G * 2)}" style="stroke:none; fill:{$busStdColor_}"/> <!-- <text class="p2pbuslabel" x="{$iBusX + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 4}" y="{$iBusTop + ($BLKD_BUS_ARROW_H * 3)}"> <xsl:value-of select="$iBusName"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($iBusX + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 4)"/> <xsl:with-param name="iY" select="($iBusTop + ($BLKD_BUS_ARROW_H * 3))"/> <xsl:with-param name="iText" select="$iBusName"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> <xsl:if test="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iBusName)]/@GROUP"> <!-- <text class="ioplblgrp" x="{$iBusX + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6}" y="{$iBusTop + ($BLKD_BUS_ARROW_H * 10)}"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iBusName)]/@GROUP"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="(iBusX + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6)"/> <xsl:with-param name="iY" select="($iBusTop + ($BLKD_BUS_ARROW_H * 10))"/> <xsl:with-param name="iText" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $iBusName)]/@GROUP"/> <xsl:with-param name="iClass" select="'iogrp_label'"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name="Draw_Proc2ProcBus"> <xsl:param name="iBc_Y" select="0"/> <xsl:param name="iBusStd" select="'_bstd_'"/> <xsl:param name="iBusName" select="'_p2pbus_'"/> <xsl:param name="iBcLeft_X" select="0"/> <xsl:param name="iBcRght_X" select="0"/> <xsl:param name="iLeftBifType" select="'_unk_'"/> <xsl:param name="iRghtBifType" select="'_unk_'"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="pr2pr_W_" select="($iBcRght_X - $iBcLeft_X)"/> <xsl:variable name="leftArrow_"> <xsl:choose> <xsl:when test="((($iLeftBifType = 'INITIATOR') or ($iLeftBifType = 'MASTER')) and ($iBusStd = 'FSL'))">BusArrowHInitiator</xsl:when> <xsl:otherwise>BusArrowWest</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="rghtArrow_"> <xsl:choose> <xsl:when test="((($iRghtBifType = 'INITIATOR') or ($iRghtBifType = 'MASTER')) and ($iBusStd = 'FSL'))">BusArrowHInitiator</xsl:when> <xsl:otherwise>BusArrowEast</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="bus_Y_" select="($iBc_Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2))"/> <use x="{$iBcLeft_X}" y="{$bus_Y_}" xlink:href="#{$iBusStd}_{$leftArrow_}"/> <use x="{$iBcRght_X - $BLKD_BUS_ARROW_W}" y="{$bus_Y_}" xlink:href="#{$iBusStd}_{$rghtArrow_}"/> <rect x="{$iBcLeft_X + $BLKD_BUS_ARROW_W}" y="{$bus_Y_ + $BLKD_BUS_ARROW_G}" width= "{$pr2pr_W_ - (2 * $BLKD_BUS_ARROW_W)}" height="{$BLKD_BUS_ARROW_H - (2 * $BLKD_BUS_ARROW_G)}" style="stroke:none; fill:{$busStdColor_}"/> <!-- <text class="horizp2pbuslabel" x="{$iBcLeft_X + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 4}" y="{($bus_Y_)}"><xsl:value-of select="$iBusName"/></text> <text class="horizp2pbuslabel" x="{$iBcRght_X - (string-length($iBusName) * 8)}" y="{($bus_Y_)}"><xsl:value-of select="$iBusName"/></text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($iBcLeft_X + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 4)"/> <xsl:with-param name="iY" select="$bus_Y_"/> <xsl:with-param name="iText" select="$iBusName"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> <!-- <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="(iBcRght_X - (string-length($iBusName) * 8))"/> <xsl:with-param name="iY" select="$bus_Y_"/> <xsl:with-param name="iText" select="$iBusName"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> --> </xsl:template> <xsl:template name="Draw_SplitConnBus"> <xsl:param name="iBc_X" select="0"/> <xsl:param name="iBc_Y" select="0"/> <xsl:param name="iBc_Type" select="'_unk_'"/> <xsl:param name="iBc_Side" select="'_unk_'"/> <xsl:param name="iBusStd" select="'_bstd_'"/> <xsl:param name="iBusName" select="'_p2pbus_'"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="connArrow_"> <xsl:choose> <xsl:when test="((($iBc_Type = 'INITIATOR') or ($iBc_Type = 'MASTER')) and ($iBusStd = 'FSL'))">BusArrowHInitiator</xsl:when> <xsl:otherwise>BusArrowEast</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="arrow_Y_" select="($iBc_Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2))"/> <xsl:variable name="bus_X_"> <xsl:choose> <xsl:when test="$iBc_Side = '0'"><xsl:value-of select="($iBc_X - ($BLKD_BUS_ARROW_W * 2))"/></xsl:when> <xsl:when test="$iBc_Side = '1'"><xsl:value-of select="($iBc_X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W)"/></xsl:when> </xsl:choose> </xsl:variable> <!-- <use x="{$bus_X_}" y="{$arrow_Y_}" xlink:href="#{$busStd}_BusArrowHInitiator"/> --> <xsl:variable name="arrow_X_"> <xsl:choose> <xsl:when test="$iBc_Side = '0'"><xsl:value-of select="($iBc_X - $BLKD_BUS_ARROW_W)"/></xsl:when> <xsl:when test="$iBc_Side = '1'"><xsl:value-of select="($iBc_X + $BLKD_BIFC_W)"/></xsl:when> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="(($iBusStd = 'FSL') and (($iBc_Type = 'MASTER') or ($iBc_Type = 'INITIATOR')))"> <use x="{$arrow_X_}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_{$connArrow_}"/> <use x="{$bus_X_}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_BusArrowHInitiator"/> </xsl:when> <xsl:when test="(($iBc_Side = '1') and not($iBusStd = 'FSL') and (($iBc_Type = 'MASTER') or ($iBc_Type = 'INITIATOR')))"> <use x="{$arrow_X_ - $BLKD_BIFC_W}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_SplitBus_WEST"/> </xsl:when> <xsl:when test="(($iBc_Side = '1') and (($iBc_Type = 'SLAVE') or ($iBc_Type = 'TARGET') or ($iBc_Type = 'USER')))"> <use x="{$arrow_X_}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_SplitBus_EAST"/> </xsl:when> <xsl:otherwise> <use x="{$arrow_X_}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_{$connArrow_}"/> <use x="{$bus_X_}" y="{$arrow_Y_}" xlink:href="#{$iBusStd}_BusArrowHInitiator"/> </xsl:otherwise> </xsl:choose> <xsl:variable name="text_X_"> <xsl:choose> <xsl:when test="$iBc_Side = '0'"><xsl:value-of select="($bus_X_ - $BLKD_BUS_ARROW_W - (string-length($iBusName) * 5))"/></xsl:when> <xsl:when test="$iBc_Side = '1'"><xsl:value-of select="($bus_X_ + $BLKD_BUS_ARROW_W)"/></xsl:when> </xsl:choose> </xsl:variable> <!-- <text class="horizp2pbuslabel" x="{$text_X_}" y="{($arrow_Y_)}"> <xsl:value-of select="$iBusName"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="$text_X_"/> <xsl:with-param name="iY" select="$arrow_Y_"/> <xsl:with-param name="iText" select="$iBusName"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> </xsl:template> <xsl:template name="Define_SharedBus"> <xsl:param name="iBusStd" select="'PLB46'"/> <xsl:variable name="sharedbus_w_" select="($G_Total_DrawArea_W - ($BLKD_INNER_GAP * 2))"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busStdColor_lt_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <g id="{$iBusStd}_SharedBus"> <use x="0" y="0" xlink:href="#{$iBusStd}_BusArrowWest"/> <use x="{$sharedbus_w_ - $BLKD_BUS_ARROW_W}" y="0" xlink:href="#{$iBusStd}_BusArrowEast"/> <rect x="{$BLKD_BUS_ARROW_W}" y="{$BLKD_BUS_ARROW_G}" width= "{$sharedbus_w_ - ($BLKD_BUS_ARROW_W * 2)}" height="{$BLKD_BUS_ARROW_H - (2 * $BLKD_BUS_ARROW_G)}" style="stroke:none; fill:{$busStdColor_}"/> </g> </xsl:template> <xsl:template name="Define_SplitBusses"> <xsl:param name="iBusStd" select="'FSL'"/> <xsl:variable name="busStdColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="bifc_r_" select="ceiling($BLKD_BIFC_W div 3)"/> <g id="{$iBusStd}_SplitBus_EAST"> <use x="0" y="0" xlink:href="#{$iBusStd}_BusArrowWest"/> <rect x="{$BLKD_BUS_ARROW_W}" y="{$BLKD_BUS_ARROW_G}" width= "{$BLKD_BIFC_W}" height="{$BLKD_BUS_ARROW_H - (2 * $BLKD_BUS_ARROW_G)}" style="stroke:none; fill:{$busStdColor_}"/> </g> <xsl:variable name="splbus_w_" select="($BLKD_BUS_ARROW_W + $BLKD_BIFC_W + $BLKD_BIFC_Wi)"/> <g id="{$iBusStd}_SplitBus_WEST"> <use x="0" y="0" xlink:href="#{$iBusStd}_SplitBus_EAST" transform="scale(-1,1) translate({$splbus_w_ * -1},0)"/> </g> <g id="{$iBusStd}_SplitBus_OneWay"> <rect x="0" y="{$BLKD_BUS_ARROW_G}" width= "{($BLKD_BUS_ARROW_W * 2)}" height="{$BLKD_BUS_ARROW_H - (2 * $BLKD_BUS_ARROW_G)}" style="stroke:none; fill:{$busStdColor_}"/> <rect x="{($BLKD_BUS_ARROW_W * 2)}" y="0" width= "{$BLKD_BUS_ARROW_H}" height="{$BLKD_BUS_ARROW_H}" style="stroke:none; fill:{$busStdColor_}"/> </g> </xsl:template> <xsl:template name="Define_SharedBus_Group"> <!-- The Bridges go into the shared bus shape --> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BRIDGESHAPES/MODULE"> <xsl:variable name="modInst_" select="@INSTANCE"/> <xsl:variable name="modType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInst_)]/@MODTYPE"/> <xsl:call-template name="Define_Peripheral"> <xsl:with-param name="iModVori" select="'normal'"/> <xsl:with-param name="iModInst" select="$modInst_"/> <xsl:with-param name="iModType" select="$modType_"/> </xsl:call-template> </xsl:for-each> <g id="group_sharedBusses"> <!-- Draw the shared bus shapes first --> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSSHAPES/MODULE"> <xsl:variable name="instance_" select="@INSTANCE"/> <xsl:variable name="busStd_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $instance_)]/@BUSSTD"/> <xsl:variable name="busIndex_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $instance_)]/@BUS_INDEX"/> <xsl:variable name="busY_" select="($busIndex_ * $BLKD_SBS_LANE_H)"/> <use x="0" y="{$busY_}" xlink:href="#{$busStd_}_SharedBus"/> <!-- <text class="sharedbuslabel" x="8" y="{$busY_ + $BLKD_BUS_ARROW_H + 10}"> <xsl:value-of select="$instance_"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="'8'"/> <xsl:with-param name="iY" select="($busY_ + $BLKD_BUS_ARROW_H + 10)"/> <xsl:with-param name="iText" select="$instance_"/> <xsl:with-param name="iClass" select="'sharedbus_label'"/> </xsl:call-template> </xsl:for-each> </g> <g id="KEY_SharedBus"> <use x="0" y="0" xlink:href="#KEY_BusArrowWest"/> <use x="30" y="0" xlink:href="#KEY_BusArrowEast"/> <xsl:variable name="key_col_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="'KEY'"/> </xsl:call-template> </xsl:variable> <rect x="{$BLKD_BUS_ARROW_W}" y="{$BLKD_BUS_ARROW_G}" width= "{30 - $BLKD_BUS_ARROW_W}" height="{$BLKD_BUS_ARROW_H - (2 * $BLKD_BUS_ARROW_G)}" style="stroke:none; fill:{$key_col_}"/> </g> </xsl:template> </xsl:stylesheet>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"> <rect x="0" y="0" width="400" height="200" fill="cyan"/> <circle cx="200" cy="100" r="50" fill="yellow"/> <text x="200" y="115" style="font-size: 40px; text-align: center; text-anchor: middle; fill: black;">Goodbye, World!</text> </svg>
<gh_stars>1-10 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/data/number"> <xsl:call-template name="for"> <xsl:with-param name="stop">13</xsl:with-param> <xsl:with-param name="value"><xsl:value-of select="@value"></xsl:value-of></xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="for"> <xsl:param name="start">1</xsl:param> <xsl:param name="stop">1</xsl:param> <xsl:param name="step">1</xsl:param> <xsl:param name="value">1</xsl:param> <xsl:text/> <xsl:choose> <xsl:when test="($value &gt; /data/roman /numeral[@pos=$start]/@value or $value = /data/roman /numeral[@pos=$start]/@value) "> <xsl:value-of select="/data/roman /numeral[@pos=$start]/@letter"/> <xsl:call-template name="for"> <xsl:with-param name="stop"> <xsl:value-of select="$stop"/> </xsl:with-param> <xsl:with-param name="start"> <xsl:value-of select="$start"/> </xsl:with-param> <xsl:with-param name="value"> <xsl:value-of select="$value - /data/roman/numeral[@pos=$start]/@value"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$start &lt; $stop"> <xsl:call-template name="for"> <xsl:with-param name="stop"> <xsl:value-of select="$stop"/> </xsl:with-param> <xsl:with-param name="start"> <xsl:value-of select="$start + $step"/> </xsl:with-param> <xsl:with-param name="value"> <xsl:value-of select="$value"/> </xsl:with-param> </xsl:call-template> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<results><result>qqqq qqqq qqqq qqqq </result><result accumulator="4"/></results>
<filename>Task/99-Bottles-of-Beer/XSLT/99-bottles-of-beer-1.xslt <?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text" encoding="utf-8"/> <!-- Main procedure --> <xsl:template match="/"> <!-- Default parameters are used --> <xsl:call-template name="sing-all-verses-in-range"/> </xsl:template> <!-- Calls sing-verse-starting-with-number over each value in a range. --> <xsl:template name="sing-all-verses-in-range"> <!-- Default parameters: From 99 through 1 --> <xsl:param name="first" select="99"/> <xsl:param name="final" select="1"/> <!-- Simulate a loop with tail recursion. --> <xsl:if test="$first &gt;= $final"> <!-- Process $first --> <xsl:call-template name="sing-verse-starting-with-number"> <xsl:with-param name="n" select="$first"/> </xsl:call-template> <!-- Process $first - 1 through $final --> <xsl:call-template name="sing-all-verses-in-range"> <xsl:with-param name="first" select="$first - 1"/> <xsl:with-param name="final" select="$final"/> </xsl:call-template> </xsl:if> </xsl:template> <!-- Outputs a single verse. Each verse starts with $n bottles and ends with $n - 1 bottles. --> <xsl:template name="sing-verse-starting-with-number"> <xsl:param name="n"/> <!-- "$n bottles of beer on the wall" --> <xsl:call-template name="sing-line-containing-number"> <xsl:with-param name="n" select="$n"/> </xsl:call-template> <!-- "$n bottles of beer" --> <xsl:call-template name="sing-line-containing-number"> <xsl:with-param name="n" select="$n"/> <!-- For the second line, specify blank suffix --> <xsl:with-param name="suffix"/> </xsl:call-template> <xsl:text>Take one down, pass it around&#10;</xsl:text> <!-- "($n - 1) bottles of beer on the wall" --> <xsl:call-template name="sing-line-containing-number"> <!-- End verse with one less bottle --> <xsl:with-param name="n" select="$n - 1"/> </xsl:call-template> <xsl:text>&#10;</xsl:text> </xsl:template> <!-- Outputs "[number] bottle[s] of beer[ on the wall]" --> <xsl:template name="sing-line-containing-number"> <xsl:param name="n"/> <!-- If no suffix is specified, use " on the wall" --> <xsl:param name="suffix"> on the wall</xsl:param> <xsl:value-of select="$n"/> <xsl:text> bottle</xsl:text> <!-- Add "s" iff appropriate --> <xsl:if test="$n != 1">s</xsl:if> <xsl:text> of beer</xsl:text> <xsl:value-of select="$suffix"/> <xsl:text>&#10;</xsl:text> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="xsl exsl"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> <xsl:template match="/*"> <xsl:copy> <xsl:apply-templates select="door" /> </xsl:copy> </xsl:template> <xsl:template match="door"> <xsl:variable name="door-num" select="@number" /> <xsl:variable name="knocks"> <xsl:for-each select="/*/door"> <xsl:if test="$door-num mod position() = 0"> <xsl:text>!</xsl:text> </xsl:if> </xsl:for-each> </xsl:variable> <door number="{$door-num}"> <xsl:choose> <xsl:when test="string-length($knocks) mod 2 = 1"> <xsl:text>open</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>closed</xsl:text> </xsl:otherwise> </xsl:choose> </door> </xsl:template> </xsl:stylesheet>
<gh_stars>1-10 <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <xsl:import href="sfw_generics.xsl" /> <xsl:import href="sfw_utilities.xsl" /> <xsl:import href="sfw_schema.xsl" /> <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" version="1.0" indent="yes" omit-xml-declaration="yes" encoding="UTF-8"/> <xsl:template match="field" mode="isotable_colhead"> <xsl:variable name="label"> <xsl:apply-templates select="." mode="get_label" /> </xsl:variable> <th><xsl:value-of select="$label" /></th> </xsl:template> <xsl:template match="field" mode="isotable_cell"> <xsl:param name="row" /> <td> <xsl:if test="$row"> <xsl:value-of select="$row/@*[local-name()=current()/@name]" /> </xsl:if> </td> </xsl:template> <xsl:template match="field" mode="isotable_field"> <xsl:param name="row" /> <td class="field"> <xsl:apply-templates select="." mode="construct_input" /> </td> </xsl:template> <xsl:template match="*" mode="isotable_row"> <xsl:param name="schema" /> <xsl:variable name="pos" select="position()" /> <tr data-pos="{$pos}"> <xsl:apply-templates select="$schema/field[not(@hidden)]" mode="isotable_cell"> <xsl:with-param name="row" select="." /> </xsl:apply-templates> </tr> </xsl:template> <xsl:template match="*[@rndx]" mode="isotable_fill_tbody"> <xsl:variable name="rows" select="*[local-name()=../@row-name]" /> <xsl:apply-templates select="$rows" mode="isotable_row"> <xsl:with-param name="schema" select="schema" /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx]" mode="construct_isotable"> <table> <thead> <tr> <xsl:apply-templates select="field[not(@hidden)]" mode="isotable_colhead" /> </tr> </thead> <tbody> <xsl:apply-templates select="." mode="isotable_fill_tbody" /> </tbody> <tfoot> <tr> <td colspan="99"> <button type="button" class="add_record" title="add record" /> </td> </tr> </tfoot> </table> </xsl:template> <xsl:template match="*[@rndx][not(schema)]" mode="construct_isotable"> <div>No isotable without a schema in the target result.</div> </xsl:template> <xsl:template match="field" mode="serialize_isotable_cell"> <xsl:param name="row" /> <xsl:variable name="attr" select="$row/@*[local-name()=current()/@name]" /> <xsl:if test="position() &gt; 1"><xsl:text>|</xsl:text></xsl:if> <xsl:if test="$attr and string-length($attr)"> <xsl:value-of select="$attr" /> </xsl:if> </xsl:template> <xsl:template match="*" mode="serialize_isotable_row"> <xsl:if test="position() &gt; 1"><xsl:text>;</xsl:text></xsl:if> <xsl:variable name="schema" select="../schema" /> <xsl:apply-templates select="$schema/field" mode="serialize_isotable_cell"> <xsl:with-param name="row" select="." /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx]" mode="serialize_isotable"> <xsl:apply-templates select="*[local-name()=../@row-name]" mode="serialize_isotable_row" /> </xsl:template> <xsl:template match="field" mode="phantom_isotable_input"> <xsl:variable name="result" select="/*/*[@rndx][local-name()=current()/@result]" /> <xsl:element name="input"> <xsl:attribute name="type">hidden</xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute> <xsl:attribute name="value"> <xsl:apply-templates select="$result" mode="serialize_isotable" /> </xsl:attribute> </xsl:element> </xsl:template> <!-- Above this line, the templates support the following templates. --> <!-- The following templates are directly called by the framework. --> <xsl:template match="field[@type='isotable'][@result]" mode="construct_input"> <xsl:param name="data" /> <xsl:param name="result-schema" select="/.." /> <xsl:param name="view-mode" select="/.." /> <xsl:variable name="result" select="/*/*[@rndx][local-name()=current()/@result]" /> <xsl:apply-templates select="." mode="phantom_isotable_input" /> <form class="isotable" data-sfw-class="isotable" data-sfw-input="true" name="{@name}"> <xsl:apply-templates select="$result" mode="construct_isotable" /> </form> </xsl:template> <!-- Fall-through template that announces an error. --> <xsl:template match="field[@type='isotable'][not(@result)]" mode="construct_input"> <div>ISOTable field type requires a result link to row data.</div> </xsl:template> <!-- Modeless match for replotting the table contents (tbody). --> <xsl:template match="*[@rndx][@iso_replot='table']"> <xsl:apply-templates select="." mode="isotable_fill_tbody" /> </xsl:template> <xsl:template match="*[@rndx][@iso_replot='value']"> <xsl:apply-templates select="." mode="serialize_isotable" /> </xsl:template> <!-- TWO Modeless matches for creating a form --> <!-- matches a row, so type is not new --> <xsl:template match="*[parent::*[@rndx][@iso_replot='form'][schema]][local-name()=../@row-name]"> <xsl:apply-templates select="../schema" mode="construct_form"> <xsl:with-param name="type" select="'isotable_form'" /> <xsl:with-param name="prow" select="." /> </xsl:apply-templates> </xsl:template> <!-- matching a result, not an existing row, type is new. --> <xsl:template match="*[@rndx][@iso_replot='form'][schema]"> <xsl:apply-templates select="schema" mode="construct_form"> <xsl:with-param name="type" select="'isotable_form'" /> <!-- The document object has no attributes, suitable for empty row. --> <xsl:with-param name="prow" select="/" /> </xsl:apply-templates> </xsl:template> <xsl:template match="button[@iso_del][ancestor::*[@rndx][@iso_ftype='add']]" mode="skip_check">1</xsl:template> </xsl:stylesheet>
<filename>umldiag/transtables/transtable.xslt <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="transtable"> <xsl:for-each select="ttkeyword"> <xsl:value-of select="@keyword"/> <xsl:apply-templates select="ttentry"/> </xsl:for-each> </xsl:template> <xsl:template match="ttentry"> <xsl:value-of select="@groupid"/> </xsl:template> </xsl:stylesheet>
<filename>Task/Longest-string-challenge/XSLT-2.0/longest-string-challenge-3.xslt<gh_stars>1-10 <t> <s>ccc</s> <s>ddd</s> <s>ggg</s> </t>
<filename>sw/gdbscript-mips.xsl <?xml version="1.0" encoding="ISO-8859-1"?> <!-- This is the simple MIPS bus mapping gdbscript generator --> <xsl:stylesheet version="1.0" xmlns:my="http://www.section5.ch/dclib/schema/devdesc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="text" encoding="ISO-8859-1"/> <!-- Register definition prefix --> <xsl:param name="regprefix">Reg_</xsl:param> <!-- Index of desired device --> <xsl:param name="selectDevice">1</xsl:param> <!-- If set, convert bit fields --> <xsl:param name="convertBitfields">0</xsl:param> <!-- If 1, use parent register map's name as prefix --> <xsl:param name="useMapPrefix">0</xsl:param> <xsl:variable name="index" select="number($selectDevice)"></xsl:variable> <xsl:key name="regkey" match="my:register" use="@id"/> <xsl:key name="multi_inst_key" match="my:group[@name='INSTANCES']/my:array" use="@name"/> <!-- Register C type according to size field --> <xsl:template match="my:register" mode="ctype"> <xsl:choose> <xsl:when test="@size = 1"> <xsl:text> (unsigned char *) </xsl:text> </xsl:when> <xsl:when test="@size = 2"> <xsl:text> (unsigned short *) </xsl:text> </xsl:when> <xsl:when test="@size = 4"> <xsl:text> (unsigned long *) </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text> (unsigned short *) </xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="my:item" mode="unit_map"> <xsl:text>set $UNIT_</xsl:text> <xsl:value-of select="@name"/> = <xsl:value-of select="my:value"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="my:register" mode="reg_dump"> def dump_<xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/> <xsl:variable name="regname">$<xsl:value-of select="$regprefix"/><xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/></xsl:variable> <xsl:choose> <xsl:when test="key('multi_inst_key',../@id)"> set $index = $arg0 </xsl:when> <xsl:otherwise> set $index = 0 </xsl:otherwise> </xsl:choose> _get_indexed_reg <xsl:value-of select="$regname"/> $index $MMR_SELECT_DEVINDEX_<xsl:value-of select="../@name"/>_SHFT printf "<xsl:value-of select="@id"/>:\t" <xsl:choose> <xsl:when test="./my:bitfield"> <xsl:apply-templates select=".//my:bitfield" mode="reg_dump"/> printf "\n" </xsl:when> <xsl:otherwise> _dump_reg($r) </xsl:otherwise> </xsl:choose> end </xsl:template> <!-- Register definition/declaration and reference --> <xsl:template match="my:registermap" mode="init_shiftvals"> <xsl:text>set $SELECT_DEVINDEX_</xsl:text> <xsl:value-of select="@name"/><xsl:text>_SHFT = 0 </xsl:text> </xsl:template> <xsl:template match="my:registermap" mode="reg_decl"> ########################################################## # Address segment '<xsl:value-of select="@name"/>'<xsl:if test="./my:info"> # # <xsl:value-of select="./my:info"/></xsl:if> ########################################################## <xsl:choose> <xsl:when test="@offset"> set $<xsl:value-of select="@name"/>_Offset = $MMR_OFFSET_ADDRESS + <xsl:value-of select="@offset"/> </xsl:when> <xsl:otherwise> set $<xsl:value-of select="@name"/> <xsl:text>_Offset = $MMR_OFFSET_ADDRESS</xsl:text> <xsl:if test="@id"> <xsl:text> + ($UNIT_</xsl:text> <xsl:value-of select="@id"/> &lt;&lt; $MMR_UNIT_SHIFT) </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:apply-templates select=".//my:register" mode="reg_decl"/> </xsl:template> <xsl:template match="my:register" mode="reg_decl"> set $<xsl:value-of select="$regprefix"/><xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="substring(concat(@id, ' '), 1, 20)"/><xsl:text> = </xsl:text><xsl:apply-templates select="." mode="ctype"/> ($<xsl:value-of select="../@name"/>_Offset + <xsl:value-of select="@addr"/>)<xsl:if test="$convertBitfields = 1"> <xsl:apply-templates select=".//my:bitfield" mode="reg_decl"/></xsl:if></xsl:template> <xsl:template match="my:bitfield" mode="reg_dump"> <xsl:choose> <xsl:when test="@lsb = @msb"> if $r &amp; $<xsl:value-of select="@name"/> printf "[<xsl:value-of select="@name"/>] " end</xsl:when> <xsl:otherwise> printf "[<xsl:value-of select="@name"/> : %d] ", ($r &amp; $<xsl:value-of select="@name"/>) &gt;&gt; $<xsl:value-of select="@name"/>_SHFT</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="my:bitfield" mode="reg_decl"> <xsl:variable name="lsb" select="number(@lsb)"/> <xsl:variable name="msb" select="number(@msb)"/> set $<xsl:value-of select="substring(concat(@name, ' '), 1, 28)"/> <xsl:text> = </xsl:text> <xsl:choose> <xsl:when test="@lsb = @msb"> <xsl:text>(1 &lt;&lt; (</xsl:text> <xsl:if test="string($lsb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/>))</xsl:when> <xsl:otherwise> <xsl:text>( (-1 &lt;&lt; (</xsl:text> <xsl:if test="string($msb) = 'NaN'">$</xsl:if> <xsl:value-of select="@msb"/> <xsl:text> + 1)) ^ (-1 &lt;&lt;</xsl:text> <xsl:if test="string($lsb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/>)) </xsl:otherwise> </xsl:choose> set $<xsl:value-of select="@name"/> <xsl:text>_SHFT = </xsl:text> <xsl:if test="string($msb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/> <!--xsl:if test="./my:info"><xsl:text> </xsl:text>/* <xsl:value-of select="my:info"/> */</xsl:if--></xsl:template> <!-- Emit header content if language not defined, or if set to "C" --> <xsl:template match="my:header"> <xsl:choose> <xsl:when test="@language = 'GDBSCRIPT'"> <xsl:value-of select="."/> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="resolve_regref_lsb"> <xsl:param name="which"/> <xsl:value-of select="key('regkey',$which/@ref)/my:bitfield[@name=$which/@bits]/@lsb"/> </xsl:template> <xsl:template match="/">################################################################# # <xsl:value-of select="my:devdesc/my:device[$index]/my:info"/> # # This file was generated by dclib/netpp. Modifications to # this file will be lost. # Stylesheet: gdbscript.xsl v0.3-mips (c) 2010-2015 section5.ch # # Device description version: # v<xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:major"/>.<xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:minor"/><xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:extension"/> ################################################################# <xsl:apply-templates select=".//my:header"/> def _get_indexed_reg set $a = &amp;$arg0[($arg1 &lt;&lt; $arg2) / sizeof(*$arg0)] set $r = *$a printf "Address: %08x ", $a end def _dump_reg if sizeof($arg0) == 4 printf "%08x", $arg0 end if sizeof($arg0) == 2 printf " %04x", $arg0 end if sizeof($arg0) == 1 printf " %02x", $arg0 end printf "\n" end <xsl:text>set $MMR_UNIT_SHIFT = </xsl:text> <xsl:call-template name="resolve_regref_lsb"> <xsl:with-param name="which" select=".//my:device[$index]/my:group[@name='UNIT_MAP']/my:property/my:regref"/> </xsl:call-template> # Unit defines: <xsl:apply-templates select=".//my:device[$index]/my:group[@name='UNIT_MAP']/my:property/my:choice/my:item" mode="unit_map" /> # Initialize defaults: <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@nodecode='true')]" mode="init_shiftvals"/> <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@hidden='true')]" mode="reg_decl"/> ################################################################# <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@nodecode='true')]/my:register" mode="reg_dump"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="processing-instruction('config')"> # ifdef CONFIG_<xsl:value-of select="."/> # </xsl:template> </xsl:stylesheet>
15863724 16837425 ... 88 lines omitted ... 83162574 84136275
<reponame>npocmaka/Windows-Server-2003 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Copyright (c) Microsoft Corporation. All rights reserved. --> <!-- Match the root node --> <xsl:output method="xml" indent="yes" encoding="utf-16" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:apply-templates select="*|@*|node()|comment()|processing-instruction()"/> </xsl:template> <xsl:template match="*|@*|node()|comment()|processing-instruction()"> <xsl:copy><xsl:apply-templates select="*|@*|node()|comment()|processing-instruction()"/></xsl:copy> </xsl:template> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Compound-data-type/XSLT/compound-data-type-2.xslt <circle> <point> <x>20</x> <y>30</y> </point> <radius>10</radius> </circle> <!-- context is a circle node. Children are accessed using a path-like notation (hence the name "XPath"). -->
<filename>doc/memmap.xsl <?xml version="1.0" encoding="ISO-8859-1"?> <!-- (c) 2003-2019 section5.ch This file is subject to the MaSoCist open source license. Please respect OpenSource and contribute valuable changes! --> <xsl:stylesheet version="1.0" xmlns:my="http://www.section5.ch/dclib/schema/devdesc" xmlns:memmap="http://www.section5.ch/dclib/schema/memmap" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" doctype-system="/usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd" doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"/> <xsl:template match="my:memorymap"> <row> <entry><xsl:value-of select="@name"/></entry> <entry><hardware><constant><xsl:value-of select="@offset"/></constant></hardware></entry> <entry><hardware><constant><xsl:value-of select="@size"/></constant></hardware></entry> <entry><xsl:value-of select="memmap:info"/></entry> </row> </xsl:template> <xsl:template match="my:device"> <table> <xsl:attribute name="id">tbl_mmap_<xsl:value-of select="@id"/></xsl:attribute> <title>Address map for <emphasis><xsl:value-of select="@name"/></emphasis> platform</title> <tgroup cols="4"> <thead> <row> <entry align="center">ID</entry> <entry align="center">Address [Size]</entry> <entry align="center">Size</entry> <entry align="center">Description</entry> </row> </thead> <tbody> <xsl:apply-templates select=".//my:memorymap"/> </tbody> </tgroup> </table> </xsl:template> <xsl:template match="/"> <section id="sec_memory_maps"> <title>Memory maps</title> <xsl:apply-templates select=".//my:device"/> </section> </xsl:template> </xsl:stylesheet>
<programs> <code>qqqq</code> <code>++++</code> </programs>
<filename>install/web_includes/sfw_lookup.xsl <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <!-- <xsl:template match="*"> --> <!-- <p>No match</p> --> <!-- </xsl:template> --> <!-- no-mode entry point for reploting field. Matches a row that cohabits with a schema including a linked field. --> <xsl:template match="*[@lookup-field-match=../schema/field/@name]"> <xsl:variable name="fname" select="@lookup-field-match" /> <xsl:variable name="field" select="../schema/field[@name=$fname]" /> <xsl:apply-templates select="$field" mode="host_linked_field"> <xsl:with-param name="data" select="." /> </xsl:apply-templates> </xsl:template> <!-- Override basic mode="write_cell_content" as entry point for table cells --> <xsl:template match="schema/field[@type='linked']" mode="write_cell_content"> <xsl:param name="data" /> <xsl:apply-templates select="buttons" mode="construct_buttons" /> <div name="{@name}"> <xsl:apply-templates select="." mode="host_linked_field"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </div> </xsl:template> <!-- Override basic mode="construct_input" as entry point for form fields --> <xsl:template match="field[@type='linked']" mode="construct_input"> <xsl:param name="data" /> <xsl:apply-templates select="buttons" mode="construct_buttons" /> <div name="{@name}"> <xsl:apply-templates select="." mode="host_linked_field"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </div> </xsl:template> <!-- host_linked_field templates are the opportunity to "wrap" the contents. before process_linked_fields template. See table-wrapping @style='table' example below. --> <xsl:template match="field" mode="host_linked_field"> <xsl:param name="data" /> <xsl:apply-templates select="." mode="process_linked_field"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:template> <xsl:template match="field[display/@style='table']" mode="host_linked_field"> <xsl:param name="data" /> <xsl:element name="table"> <xsl:attribute name="class">lookup</xsl:attribute> <xsl:attribute name="data-sfw-class">lookup</xsl:attribute> <xsl:attribute name="data-sfw-input">input</xsl:attribute> <xsl:attribute name="tabindex">0</xsl:attribute> <xsl:apply-templates select="display/@*" mode="add_on_click_attribute" /> <xsl:attribute name="data-path"> <xsl:apply-templates select="$data" mode="gen_path" /> </xsl:attribute> <tbody> <xsl:apply-templates select="." mode="process_linked_field"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </tbody> </xsl:element> </xsl:template> <!-- process the in-place attribute the hard way, without any indexes. --> <xsl:template match="field" mode="process_linked_field"> <xsl:param name="data" /> <xsl:variable name="result" select="/*/*[local-name()=current()/@result]" /> <xsl:apply-templates select="$result" mode="get_result_rows"> <xsl:with-param name="str" select="$data/@*[local-name()=current()/@name]" /> <xsl:with-param name="display" select="display" /> </xsl:apply-templates> </xsl:template> <!-- Lookup virtual attribute value in linked result, without a key. --> <xsl:template match="field[@virtual]" mode="process_linked_field"> <xsl:param name="data" /> <xsl:variable name="ctxt_result" select="ancestor::*[@rndx][1]" /> <!-- get id value of current to find row in target result. --> <xsl:variable name="idname"> <xsl:apply-templates select="$ctxt_result" mode="get_idname" /> </xsl:variable> <xsl:variable name="idval" select="$data/@*[local-name()=$idname]" /> <xsl:variable name="t_result" select="/*/*[local-name()=current()/@result]" /> <xsl:variable name="t_idname"> <xsl:apply-templates select="$t_result" mode="get_idname" /> </xsl:variable> <xsl:variable name="row" select="$t_result/*[local-name()=../@row-name][@*[local-name()=$t_idname]=$idval]" /> <xsl:variable name="u_result" select="/*/*[local-name()=$t_result/@result]" /> <xsl:apply-templates select="$u_result" mode="get_result_rows"> <xsl:with-param name="str" select="$row/@*[local-name()=current()/@name]" /> <xsl:with-param name="display" select="display" /> </xsl:apply-templates> </xsl:template> <!-- process the extant field the hard way, using indexes. --> <xsl:template match="field[../../@xslkey]" mode="process_linked_field"> <xsl:param name="data" /> <xsl:variable name="result" select="ancestor::*[@rndx][1]" /> <xsl:apply-templates select="$result" mode="get_result_rows"> <xsl:with-param name="str" select="$data/@*[local-name()=current()/@name]" /> <xsl:with-param name="display" select="display" /> </xsl:apply-templates> </xsl:template> <!-- Lookup virtual field value in linked result, USING a key. --> <xsl:template match="field[@virtual][../../@xslkey]" mode="process_linked_field"> <xsl:param name="data" /> <xsl:variable name="idval"> <xsl:apply-templates select=".." mode="get_idval"> <xsl:with-param name="row" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:variable name="result" select="ancestor::*[@rndx][1]" /> <xsl:apply-templates select="../.." mode="use_linked_result"> </xsl:apply-templates> </xsl:template> <!-- This is the callback uses the virtual attribute to start the indexed rows search. --> <xsl:template match="field[@virtual][../../@xslkey]" mode="use_linked_rows"> <xsl:param name="rows" /> <xsl:variable name="t_result_name" select="$rows[1]/../@result" /> <xsl:variable name="t_result" select="/*/*[local-name()=$t_result_name]" /> <xsl:apply-templates select="$t_result"> <xsl:with-param name="str" select="$rows/@*[local-name()=current()/@name]" /> <xsl:with-param name="display" select="display" /> </xsl:apply-templates> </xsl:template> <xsl:template match="display" mode="use_linked_rows"> <xsl:param name="rows" /> <xsl:apply-templates select="." mode="display_row"> <xsl:with-param name="row" select="$rows" /> </xsl:apply-templates> </xsl:template> <!-- get_result_rows is the heart of the process to resolve references. It recursively parses a string of integers to get the targeted rows. --> <xsl:template match="*[@rndx]" mode="get_result_rows"> <xsl:param name="str" /> <xsl:param name="display" /> <xsl:variable name="c_id" select="substring-before($str,',')" /> <xsl:variable name="c_id_len" select="string-length($c_id)" /> <xsl:variable name="s_id" select="substring($str,1 div boolean($c_id_len=0))" /> <xsl:variable name="r_id" select="concat($c_id,$s_id)" /> <xsl:apply-templates select="." mode="retrieve_row"> <xsl:with-param name="display" select="$display" /> <xsl:with-param name="idval" select="$r_id" /> </xsl:apply-templates> <xsl:if test="$c_id_len&gt;0"> <xsl:apply-templates select="$display" mode="separate_following" /> <xsl:apply-templates select="." mode="get_result_rows"> <xsl:with-param name="str" select="substring-after($str,',')" /> <xsl:with-param name="display" select="$display" /> </xsl:apply-templates> </xsl:if> </xsl:template> <xsl:template match="display[@style='csv']" mode="separate_following"> <xsl:text>, </xsl:text> </xsl:template> <!-- The retrieve_row templates get a row, with or without a key index, according to whether or not the result includes an xslkey attribute indicating the key template to use. --> <xsl:template match="*[@rndx]" mode="retrieve_row"> <xsl:param name="display" /> <xsl:param name="idval" /> <xsl:variable name="idname"> <xsl:apply-templates select="." mode="get_idname" /> </xsl:variable> <xsl:variable name="row" select="*[@*[local-name()=$idname]=$idval][local-name()=../@row-name]" /> <xsl:apply-templates select="$display" mode="use_linked_rows"> <xsl:with-param name="rows" select="$row" /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx][@xslkey]" mode="retrieve_row"> <xsl:param name="display" /> <xsl:param name="idval" /> <!-- use_linked_result jumps out, to return to the local use_linked_rows template --> <xsl:apply-templates select="." mode="use_linked_result"> <xsl:with-param name="id" select="$idval" /> <xsl:with-param name="link" select="$display" /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx]" mode="use_linked_result"> <xsl:param name="id" /> <xsl:param name="link" /> <xsl:variable name="row" select="*[local-name()=../@row-name][@*[1]=$id]" /> <xsl:apply-templates select="$link" mode="use_linked_rows"> <xsl:with-param name="rows" select="$row" /> </xsl:apply-templates> </xsl:template> <xsl:template match="*[@rndx][schema]" mode="use_linked_result"> <xsl:param name="id" /> <xsl:param name="link" /> <xsl:variable name="idname"> <xsl:apply-templates select="schema" mode="get_id_field_name" /> </xsl:variable> <xsl:variable name="row" select="*[local-name()=../@row-name][@*[local-name()=$idname]=$id]" /> <xsl:apply-templates select="$link" mode="use_linked_rows"> <xsl:with-param name="rows" select="$row" /> </xsl:apply-templates> </xsl:template> <xsl:template match="display[@style='table']" mode="display_row"> <xsl:param name="row" /> <xsl:element name="tr"> <xsl:if test="$row/@id"> <xsl:attribute name="data-id"><xsl:value-of select="$row/@id" /></xsl:attribute> </xsl:if> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@template" /> <xsl:with-param name="row" select="$row" /> <xsl:with-param name="enclose" select="'td'" /> </xsl:call-template> </xsl:element> </xsl:template> <xsl:template match="display" mode="display_row"> <xsl:param name="row" /> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@template" /> <xsl:with-param name="row" select="$row" /> </xsl:call-template> </xsl:template> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- <xsl:template match="field[@type='linked']" mode="construct_linked_field"> --> <!-- <xsl:param name="data" /> --> <!-- <xsl:apply-templates select="." mode="construct_links"> --> <!-- <xsl:with-param name="row" select="$data" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:template> --> <!-- <xsl:template match="field[@type='linked'][display/@style='table']" mode="construct_linked_field"> --> <!-- <xsl:param name="data" /> --> <!-- <div class="SFW_Host"> --> <!-- <xsl:element name="table"> --> <!-- <xsl:attribute name="class">Schema</xsl:attribute> --> <!-- <xsl:attribute name="data-sfw-class">lookup</xsl:attribute> --> <!-- <xsl:attribute name="data-sfw-input">input</xsl:attribute> --> <!-- <xsl:apply-templates select="display/@*" mode="add_on_click_attribute" /> --> <!-- <xsl:apply-templates select="ancestor::*[@rndx]" mode="add_result_attribute" /> --> <!-- <tbody> --> <!-- <xsl:apply-templates select="." mode="construct_links"> --> <!-- <xsl:with-param name="row" select="$data" /> --> <!-- </xsl:apply-templates> --> <!-- </tbody> --> <!-- </xsl:element> --> <!-- </div> --> <!-- </xsl:template> --> <!-- <xsl:template match="field[@type='linked'][not(child::display)]" mode="construct_linked_field"> --> <!-- <span>Linked field without link instructions (<xsl:value-of select="@name" />). Count=<xsl:value-of select="local-name(*)" /></span> --> <!-- </xsl:template> --> <!-- <xsl:template match="field[@type='linked']" mode="construct_links"> --> <!-- <xsl:param name="row" /> --> <!-- <xsl:variable name="str" select="$row/@*[local-name()=current()/@name]" /> --> <!-- <xsl:variable name="result" select="/*/*[@rndx][local-name()=current()/@result]" /> --> <!-- <xsl:apply-templates select="$result" mode="get_result_rows"> --> <!-- <xsl:with-param name="str" select="str" /> --> <!-- <xsl:with-param name="display" select="display" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:template> --> <!-- <xsl:template match="field[@type='linked'][@virtual]" mode="construct_links"> --> <!-- <xsl:param name="row" /> --> <!-- <xsl:variable name="idname"> --> <!-- <xsl:apply-templates select="$row/parent::*[@rndx]" mode="get_idname" /> --> <!-- </xsl:variable> --> <!-- <xsl:variable name="idval" select="$row/@*[local-name()=$idname]" /> --> <!-- <xsl:variable name="result" select="/*/*[@rndx][local-name()=current()/@result]" /> --> <!-- <xsl:apply-templates select="$result" mode="get_result_rows"> --> <!-- <xsl:with-param name="str" select="$idval" /> --> <!-- <xsl:with-param name="display" select="display" /> --> <!-- </xsl:apply-templates> --> <!-- </xsl:template> --> <!-- <xsl:template match="field[@type='linked'][not(@result)]" mode="construct_links"> --> <!-- <span>Linked field without a target result.</span> --> <!-- </xsl:template> --> </xsl:stylesheet>
<reponame>SoCdesign/audiomixer<gh_stars>1-10 <?xml version="1.0" standalone="no"?> <!DOCTYPE stylesheet [ <!ENTITY HEXUPPER "ABCDEFxx0123456789"> <!ENTITY HEXLOWER "abcdefxX0123456789"> <!ENTITY HEXU2L " '&HEXLOWER;' , '&HEXUPPER;' "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn"> <xsl:output method="html"/> <!-- ======================= MAIN PERIPHERAL SECTION =============================== --> <xsl:template name="WriteContents_IPSection"> <TABLE BGCOLOR="{$COL_WHITE}" WIDTH="{$G_MAIN_WIDTH}" COLS="4" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <TD COLSPAN="4" WIDTH="5%" ALIGN="LEFT" VALIGN="BOTTOM"> <A name="ANCHOR_{@INSTANCE}"/> <!-- <xsl:if test="LICENSEINFO"><IMG SRC="imgs/IMG_LicensedCore.bmp" BORDER="0" VSPACE="0" HSPACE="0"/></xsl:if> --> <SPAN style="color:{$COL_XLNX}; font: bold italic 14px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@INSTANCE"/></SPAN> <xsl:if test="DESCRIPTION[(@TYPE = 'SHORT')]"> <SPAN style="color:{$COL_XLNX}; font: normal italic 12px Verdana,Arial,Helvetica,sans-serif"> &#160;&#160;<xsl:value-of select="DESCRIPTION[(@TYPE = 'SHORT')]"/> </SPAN> </xsl:if> <BR></BR> <xsl:if test="DESCRIPTION[(@TYPE = 'LONG')]"> <SPAN style="color:{$COL_BLACK}; font: normal italic 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="DESCRIPTION[(@TYPE = 'LONG')]" disable-output-escaping="yes"/> </SPAN> </xsl:if> <BR></BR> <BR></BR> </TD> <TR/> <!-- Layout the Module Specs table--> <TD COLSPAN="2" WIDTH="40%" ALIGN="LEFT" VALIGN="TOP"> <xsl:call-template name="WriteContents_IpSpecs"/> <BR></BR> <BR></BR> </TD> <TR/> <!-- Layout the Module Ports table--> <TD COLSPAN="2" WIDTH="40%" ALIGN="LEFT" VALIGN="TOP"> <IMG SRC="imgs/{@INSTANCE}.jpg" alt="{@INSTANCE} IP Image" BORDER="0" VSPACE="0" HSPACE="0"/> </TD> <TD COLSPAN="2" WIDTH="60%" ALIGN="CENTER" VALIGN="TOP"> <xsl:call-template name="WriteContents_IpPortBifTable"/> <BR></BR> <BR></BR> </TD> <TR/> <!-- Layout the Module Parameters table--> <TD COLSPAN="4" WIDTH="100%" ALIGN="LEFT" VALIGN="BOTTOM"> <xsl:call-template name="WriteContents_IpParametersTable"/> </TD> </TABLE> <BR></BR> <BR></BR> </xsl:template> <xsl:template name="WriteContents_IpSpecs"> <xsl:variable name="numof_docs_" select="count(DOCUMENTATION/DOCUMENT)"/> <xsl:variable name="numof_cols_" select="(2 + $numof_docs_)"/> <xsl:variable name="table_width_" select="ceiling($G_MAIN_WIDTH div 2)"/> <xsl:variable name="col_w_percent_" select="ceiling(100 div $numof_cols_)"/> <xsl:variable name="doc_w_percent_"> <xsl:if test="($numof_docs_ &gt; 0)"><xsl:value-of select="ceiling((100 - (2 * (100 div $numof_cols_))) div $numof_docs_)"/></xsl:if> <xsl:if test="not($numof_docs_ &gt; 0)">0</xsl:if> </xsl:variable> <!-- <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message>Num of columns <xsl:value-of select="$numof_cols_"/></xsl:message> </xsl:if> --> <!-- <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:if test="$PARAM_DEBUG='TRUE'"> <xsl:message>Col width percent <xsl:value-of select="$col_w_percent_"/></xsl:message> <xsl:message>Doc width percent <xsl:value-of select="$doc_w_percent_"/></xsl:message> <xsl:message>================</xsl:message> </xsl:if> --> <xsl:variable name="ipDoc_"> <xsl:choose> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"></xsl:value-of> </xsl:when> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"></xsl:value-of> </xsl:when> <xsl:otherwise>__NODOC__</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="drvDoc_"> <xsl:choose> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'DRIVER')]/@SRC_LOCAL"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'DRIVER')]/@SRC_LOCAL"></xsl:value-of> </xsl:when> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'DRIVER')]/@SOURCE"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'DRIVER')]/@SOURCE"></xsl:value-of> </xsl:when> <xsl:otherwise>__NODOC__</xsl:otherwise> </xsl:choose> </xsl:variable> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{$table_width_}" COLS="{$numof_cols_}" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TH COLSPAN="{$numof_cols_}" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">IP Specs</SPAN></TH> <TR/> <TH COLSPAN="1" WIDTH="{$col_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Core</SPAN></TH> <TH COLSPAN="1" WIDTH="{$col_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Version</SPAN></TH> <xsl:if test="($numof_docs_ &gt;= 1)"> <TH COLSPAN="{$numof_docs_}" WIDTH="{($doc_w_percent_ * $numof_docs_)}%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Documentation</SPAN></TH> </xsl:if> <TR/> <TD COLSPAN="1" WIDTH="{$col_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@MODTYPE"/></SPAN></TD> <TD COLSPAN="1" WIDTH="{$col_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@HWVERSION"/></SPAN></TD> <xsl:if test="not($ipDoc_ = '__NODOC__')"> <TD COLSPAN="1" WIDTH="{$doc_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="{$ipDoc_}" style="text-decoration:none; color:{$COL_XLNX}"><SPAN style="color:{$COL_XLNX}; font: bold italic 12px Verdana,Arial,Helvetica,sans-serif">IP</SPAN></A></TD> </xsl:if> <xsl:if test="not($drvDoc_ = '__NODOC__')"> <TD COLSPAN="1" WIDTH="{$doc_w_percent_}%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="{$drvDoc_}" style="text-decoration:none; color:{$COL_XLNX}"><SPAN style="color:{$COL_XLNX}; font: bold italic 12px Verdana,Arial,Helvetica,sans-serif">DRIVER</SPAN></A></TD> </xsl:if> </TABLE> </xsl:template> <!-- ======================= PERIHERAL TABLE PARTS =============================== --> <!-- Layout the Module's Information table --> <xsl:template name="WriteContents_IpParametersTable"> <xsl:variable name="moduleRef_" select="self::node()"/> <xsl:variable name="moduleIns_"><xsl:value-of select="$moduleRef_/@INSTANCE"/></xsl:variable> <xsl:for-each select="$G_MODULES"> <xsl:variable name="paramsRef_"> <xsl:choose> <xsl:when test="$moduleRef_/PARAMETERS"><xsl:text>$moduleRef_/PARAMETERS</xsl:text></xsl:when> <xsl:otherwise><xsl:text>$moduleRef_</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="mhsParamCNT_" select="count(dyn:evaluate($paramsRef_)/PARAMETER)"/> <xsl:variable name="num_of_params_" select="count(key('G_MAP_PARAMETERS',$moduleIns_))"/> <xsl:variable name="table_is_split_"> <xsl:if test="$mhsParamCNT_ &gt; 10">1</xsl:if> <xsl:if test="not($mhsParamCNT_ &gt; 10)">0</xsl:if> </xsl:variable> <xsl:variable name="table_width_"> <xsl:if test="$mhsParamCNT_ &gt; 10"><xsl:value-of select="$G_MAIN_WIDTH"/></xsl:if> <xsl:if test="$mhsParamCNT_ &lt;= 10"><xsl:value-of select="ceiling($G_MAIN_WIDTH div 2)"/></xsl:if> </xsl:variable> <xsl:variable name="left_extra_"> <xsl:if test="($mhsParamCNT_ mod 2) = 1">1</xsl:if> <xsl:if test="not(($mhsParamCNT_ mod 2) = 1)">0</xsl:if> </xsl:variable> <xsl:variable name="num_left_" select="floor($mhsParamCNT_ div 2) + $left_extra_"/> <xsl:variable name="num_rhgt_" select="floor($mhsParamCNT_ div 2)"/> <xsl:variable name="mdr_main_col_"> <xsl:if test="$mhsParamCNT_ &gt; 10">4</xsl:if> <xsl:if test="$mhsParamCNT_ &lt;= 10">2</xsl:if> </xsl:variable> <xsl:variable name="mdr_othr_col_"> <xsl:if test="$mhsParamCNT_ &gt; 10">2</xsl:if> <xsl:if test="$mhsParamCNT_ &lt;= 10">1</xsl:if> </xsl:variable> <xsl:variable name="ipDoc_"> <xsl:choose> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"></xsl:value-of> </xsl:when> <xsl:when test="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"> <xsl:value-of select="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"></xsl:value-of> </xsl:when> <xsl:otherwise>__NODOC__</xsl:otherwise> </xsl:choose> </xsl:variable> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{$table_width_}" COLS="5" CELLSPACING="1" CELLPADDING="1" BORDER="1"> <!-- <xsl:message><xsl:value-of select="$moduleIns_"/> has <xsl:value-of select="$num_of_params_"/> parameters</xsl:message> <xsl:if test="LICENSEINFO"> <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">License</SPAN></TD> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">TYPE</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="LICENSEINFO/@TYPE"/></SPAN> </TD> <xsl:if test="LICENSEINFO/@EXPIRESON"> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">EXPIRES ON</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="LICENSEINFO/@EXPIRESON"/></SPAN> </TD> </xsl:if> </xsl:if> --> <xsl:if test="$mhsParamCNT_ &gt; 0"> <TR></TR> <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Parameters</SPAN></TD> <TR></TR> <TD COLSPAN="5" WIDTH="100%" ALIGN="LEFT" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> These are the current parameter settings for this module. </SPAN> <BR></BR> <xsl:if test="not($ipDoc_ ='__NODOC__')"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">Please refer to the IP</SPAN> <A HREF="{$ipDoc_}" style="text-decoration:none; color:{$COL_XLNX}"><SPAN style="color:{$COL_XLNX}; font: bold italic 9px Verdana,Arial,Helvetica,sans-serif"> documentation </SPAN></A><SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">for complete information about module parameters.</SPAN> </xsl:if> <BR></BR> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> Parameters marked with </SPAN> <SPAN style="color:#FFBB00; font: bold 9px Verdana,Arial,Helvetica,sans-serif">yellow</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> indicate parameters set by the user. </SPAN> <BR></BR> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> Parameters marked with </SPAN> <SPAN style="color:{$COL_CHG_SYS}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">blue</SPAN> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> indicate parameters set by the system. </SPAN> </TD> <xsl:if test="$mhsParamCNT_ &lt;= 10"> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Name</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Value</SPAN></TD> <xsl:for-each select="dyn:evaluate($paramsRef_)/PARAMETER"> <xsl:sort select="@INDEX" data-type="number"/> <xsl:variable name="name_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="value_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="left" BGCOLOR="{$name_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="@NAME"/> </SPAN> <xsl:if test="DESCRIPTION"> <BR/> <SPAN style="color:{$COL_BLACK}; font: bold italic 9px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="DESCRIPTION"/> </SPAN> </xsl:if> </TD> <xsl:choose> <xsl:when test="((@TYPE ='std_logic_vector') or starts-with(@VALUE,'0x') or starts-with(@VALUE,'OX'))"> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate(@VALUE,&HEXU2L;)"/></SPAN></TD> </xsl:when> <xsl:otherwise> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@VALUE"/></SPAN></TD> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:if> <xsl:if test="$mhsParamCNT_ &gt; 10"> <TR></TR> <TD COLSPAN="5" WIDTH="100%"> <TABLE BGCOLOR="{$COL_GRAY}" WIDTH="100%" COLS="5" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <TD COLSPAN="2" WIDTH="49%"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="100%" COLS="2" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Name</SPAN></TD> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Value</SPAN></TD> <xsl:for-each select="dyn:evaluate($paramsRef_)/PARAMETER"> <xsl:sort select="@INDEX" data-type="number"/> <xsl:if test="position() &lt;= $num_left_"> <xsl:variable name="name_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="value_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <TR></TR> <TD COLSPAN="1" WIDTH="50%" ALIGN="left" BGCOLOR="{$name_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="@NAME"/> </SPAN> <xsl:if test="DESCRIPTION"> <BR/> <SPAN style="color:{$COL_BLACK}; font: bold italic 9px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="DESCRIPTION"/> </SPAN> </xsl:if> </TD> <xsl:choose> <xsl:when test="((@TYPE ='std_logic_vector') or starts-with(@VALUE,'0x') or starts-with(@VALUE,'OX'))"> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate(@VALUE,&HEXU2L;)"/></SPAN></TD> </xsl:when> <xsl:otherwise> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@VALUE"/></SPAN></TD> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:for-each> </TABLE> </TD> <TD COLSPAN="1" WIDTH="2%"> <TABLE BGCOLOR="{$COL_GRAY}" WIDTH="100%" COLS="1" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <TD COLSPAN="1" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_XLNX}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;</SPAN></TD> </TABLE> </TD> <TD COLSPAN="2" WIDTH="49%"> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="100%" COLS="2" CELLSPACING="1" CELLPADDING="0" BORDER="0"> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Name</SPAN></TD> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Value</SPAN></TD> <xsl:for-each select="dyn:evaluate($paramsRef_)/PARAMETER"> <xsl:sort select="@INDEX" data-type="number"/> <xsl:if test="position() &gt; $num_left_"> <xsl:variable name="name_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - $num_left_ - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="value_bg_col_"> <xsl:choose> <xsl:when test="@CHANGEDBY='USER'"> <xsl:value-of select="$COL_CHG_USR"/> </xsl:when> <xsl:when test="@CHANGEDBY='SYSTEM'"> <xsl:value-of select="$COL_CHG_SYS"/> </xsl:when> <xsl:when test="((position() - $num_left_ - 1) mod 2) = 0"> <xsl:value-of select="$COL_GRAY"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$COL_WHITE"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <TR></TR> <TD COLSPAN="1" WIDTH="50%" ALIGN="LEFT" BGCOLOR="{$name_bg_col_}"> <SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="@NAME"/> </SPAN> <xsl:if test="DESCRIPTION"> <BR/> <SPAN style="color:{$COL_BLACK}; font: bold italic 9px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="DESCRIPTION"/> </SPAN> </xsl:if> </TD> <xsl:choose> <xsl:when test="@TYPE ='std_logic_vector'"> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate(@VALUE,&HEXU2L;)"/></SPAN></TD> </xsl:when> <xsl:when test="(starts-with(@VALUE,'0x') or starts-with(@VALUE,'OX'))"> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="translate(@VALUE,&HEXU2L;)"/></SPAN></TD> </xsl:when> <xsl:otherwise> <TD COLSPAN="1" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$value_bg_col_}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@VALUE"/></SPAN></TD> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:for-each> <xsl:if test="$left_extra_ &gt; 0"> <TR></TR> <TD COLSPAN="2" WIDTH="100%" ALIGN="left" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_WHITE}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;</SPAN></TD> </xsl:if> </TABLE> </TD> </TABLE> </TD> </xsl:if> </xsl:if> </TABLE> <!-- <BR></BR> --> <xsl:if test="(@MODCLASS = 'PROCESSOR') and MEMORYMAP"> <!-- <xsl:message>Found a memory map</xsl:message> --> <xsl:call-template name="WriteContents_MemoryMap"> <xsl:with-param name="table_width" select="$table_width_"/> </xsl:call-template> </xsl:if> <!-- <BR></BR> --> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{$table_width_}" COLS="5" CELLSPACING="1" CELLPADDING="1" BORDER="0"> <TD WIDTH="100%" COLSPAN="5" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Post Synthesis Device Utilization</SPAN></TD> <xsl:choose> <xsl:when test="not(RESOURCES)"> <TR></TR> <TD WIDTH="100%" COLSPAN="5" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif"> Device utilization information is not available for this IP. Run platgen to generate synthesis information. </SPAN> </TD> </xsl:when> <xsl:otherwise> <TR></TR> <TD COLSPAN="2" WIDTH="55%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Resource Type</SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Used</SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Available</SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Percent</SPAN></TD> <xsl:for-each select="RESOURCES/RESOURCE"> <TR></TR> <TD COLSPAN="2" WIDTH="55%" ALIGN="left" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@TYPE"/></SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@USED"/></SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@TOTAL"/></SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@PERCENT"/></SPAN></TD> </xsl:for-each> </xsl:otherwise> </xsl:choose> <!-- <BR></BR> <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"></SPAN></TD> --> </TABLE> </xsl:for-each> </xsl:template> <!-- Layout the Module's Port list table --> <xsl:template name="WriteContents_IpPortBifTable"> <xsl:variable name="moduleRef_" select="self::node()"/> <xsl:variable name="moduleIns_"><xsl:value-of select="$moduleRef_/@INSTANCE"/></xsl:variable> <xsl:variable name="portsRef_"> <xsl:choose> <xsl:when test="$moduleRef_/PORTS"><xsl:text>$moduleRef_/PORTS</xsl:text></xsl:when> <xsl:otherwise><xsl:text>$moduleRef_</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="portsAllRef_"> <xsl:choose> <xsl:when test="$G_MODULES/MODULE/PORTS"><xsl:text>$G_MODULES/MODULE/PORTS</xsl:text></xsl:when> <xsl:otherwise><xsl:text>$G_MODULES/MODULE/</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="busifsRef_"> <xsl:choose> <xsl:when test="$moduleRef_/BUSINTERFACES"><xsl:text>$moduleRef_/BUSINTERFACES</xsl:text></xsl:when> <xsl:otherwise><xsl:text>$moduleRef_</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="busifsAllRef_"> <xsl:choose> <xsl:when test="$G_MODULES/MODULE/BUSINTERFACES"><xsl:text>$G_MODULES/MODULE/BUSINTERFACES</xsl:text></xsl:when> <xsl:otherwise><xsl:text>$G_MODULES/MODULE</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ipDoc_"> <xsl:choose> <xsl:when test="$moduleRef_/DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"> <xsl:value-of select="$moduleRef_/DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SRC_LOCAL"/> </xsl:when> <xsl:when test="$moduleRef_/DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"> <xsl:value-of select="$moduleRef_/DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE"/> </xsl:when> <xsl:otherwise>__NODOC__</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message><xsl:value-of select="$ipDoc_"/></xsl:message> --> <TABLE BGCOLOR="{$COL_BLACK}" WIDTH="{ceiling($G_MAIN_WIDTH div 2)}" COLS="7" CELLSPACING="1" CELLPADDING="1" BORDER="0"> <xsl:if test="dyn:evaluate($portsRef_)/PORT[(@IS_INMHS or @IS_INSTANTIATED)]"> <TH COLSPAN="7" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">PORT LIST</SPAN></TH> <TR/> <TH COLSPAN="7" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_INFO}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">These are the ports listed in the MHS file. <xsl:if test="not($ipDoc_ = '__NODOC__')"> Please refer to the IP <A HREF="{$ipDoc_}" style="text-decoration:none; color:{$COL_XLNX}"> <SPAN style="color:{$COL_XLNX}; font: bold italic 9px Verdana,Arial,Helvetica,sans-serif"> documentation </SPAN> </A>for complete information about module ports. </xsl:if> </SPAN> </TH> <TR/> <TH COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">#</SPAN></TH> <TH COLSPAN="2" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">NAME</SPAN></TH> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">DIR</SPAN></TH> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">[LSB:MSB]</SPAN></TH> <TH COLSPAN="2" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">SIGNAL</SPAN></TH> <xsl:for-each select="dyn:evaluate($portsRef_)/PORT[(not(@SIGNAME = '__NOC__') and not(@SIGNAME = '__DEF__') and (@IS_INMHS or @IS_INSTANTIATED))]"> <xsl:sort data-type="number" select="@MHS_INDEX" order="ascending"/> <TR></TR> <TD COLSPAN="1" WIDTH="5%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@MHS_INDEX"/></SPAN></TD> <TD COLSPAN="2" WIDTH="25%" ALIGN="LEFT" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> <TD COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@DIR"/></SPAN></TD> <xsl:if test="@MSB and @LSB"> <TD COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@LSB"/>:<xsl:value-of select="@MSB"/></SPAN></TD> </xsl:if> <xsl:if test="not(@MSB and @LSB)"> <TD COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">1</SPAN></TD> </xsl:if> <TD COLSPAN="2" WIDTH="50%" ALIGN="LEFT" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@SIGNAME"/></SPAN></TD> </xsl:for-each> </xsl:if> <xsl:if test="dyn:evaluate($busifsRef_)/BUSINTERFACE[(not(@BUSNAME = '__NOC__') and not(@IS_VALID = 'FALSE'))]"> <TR></TR> <TH COLSPAN="7" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"> <SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Bus Interfaces</SPAN> </TH> <TR></TR> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;NAME&#160;</SPAN></TH> <TH COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">&#160;TYPE&#160;</SPAN></TH> <TH COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">BUSSTD</SPAN></TH> <TH COLSPAN="3" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">BUS</SPAN></TH> <TH COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY_DK}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Connected To</SPAN></TH> <xsl:for-each select="dyn:evaluate($busifsRef_)/BUSINTERFACE[(not(@BUSNAME = '__NOC__') and not(@BUSNAME = '__DEF__'))]"> <xsl:sort select="@TYPE"/> <xsl:variable name="busname_"><xsl:value-of select="@BUSNAME"/></xsl:variable> <xsl:variable name="numCons_" select="count($G_MODULES/MODULE[not(@INSTANCE = $moduleIns_) and (BUSINTERFACE[(@BUSNAME = $busname_)] or BUSINTERFACES/BUSINTERFACE[(@BUSNAME = $busname_)])])"/> <xsl:variable name="connections_"> <xsl:choose> <xsl:when test="($numCons_ = '1')"> <xsl:value-of select="$G_MODULES/MODULE[not(@INSTANCE = $moduleIns_) and (BUSINTERFACE[(@BUSNAME = $busname_)] or BUSINTERFACES/BUSINTERFACE[(@BUSNAME = $busname_)])]/@INSTANCE"/> </xsl:when> <xsl:otherwise><xsl:value-of select="$numCons_"/> Peripherals.</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="busStd_"> <xsl:if test="@BUSSTD_PSF"> <xsl:value-of select="@BUSSTD_PSF"/> </xsl:if> <xsl:if test="not(@BUSSTD)">NA</xsl:if> </xsl:variable> <TR></TR> <TD COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> <TD COLSPAN="1" WIDTH="15%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@TYPE"/></SPAN></TD> <TD COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$busStd_"/></SPAN></TD> <!-- The bus name --> <xsl:choose> <xsl:when test="$busStd_ = 'NA'"> <TD COLSPAN="3" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@BUSNAME"/></SPAN></TD> </xsl:when> <xsl:otherwise> <TD COLSPAN="3" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="#ANCHOR_{@BUSNAME}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@BUSNAME"/></SPAN></A></TD> </xsl:otherwise> </xsl:choose> <!-- The bus connection --> <xsl:choose> <xsl:when test="($numCons_ &gt; '1')"> <TD COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold italic 11px san-serif Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$connections_"/></SPAN></TD> </xsl:when> <xsl:otherwise> <!-- Add a link to the actual element, when there is only one --> <TD COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="#ANCHOR_{$connections_}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$connections_"/></SPAN></A></TD> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:if> <!-- If this is a bus, list out is connections --> <xsl:if test="@MODCLASS='BUS'"> <xsl:variable name="instance_"><xsl:value-of select="@INSTANCE"/></xsl:variable> <TR></TR> <TH COLSPAN="7" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">Bus Connections</SPAN></TH> <TR></TR> <TH COLSPAN="5" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">INSTANCE</SPAN></TH> <TH COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">INTERFACE TYPE</SPAN></TH> <TH COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">INTERFACE NAME</SPAN></TH> <xsl:for-each select="dyn:evaluate($busifsAllRef_)/BUSINTERFACE[(@BUSNAME = $instance_)]"> <xsl:sort select="@TYPE"/> <xsl:variable name="cnctdInst_"> <xsl:choose> <xsl:when test="../@INSTANCE"><xsl:value-of select="../@INSTANCE"/></xsl:when> <xsl:otherwise><xsl:value-of select="../../@INSTANCE"/></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:variable name="buscName_"><xsl:value-of select="../@INSTANCE"/></xsl:variable> --> <TR></TR> <TD COLSPAN="5" WIDTH="50%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="#ANCHOR_{$cnctdInst_}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: italic 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$cnctdInst_"/></SPAN></A></TD> <TD COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@TYPE"/></SPAN></TD> <TD COLSPAN="1" WIDTH="25%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@NAME"/></SPAN></TD> </xsl:for-each> </xsl:if> <!-- If this is an interrupt controller, list out the sources and targets of its interrupts --> <xsl:if test="INTERRUPTINFO[(@TYPE = 'CONTROLLER')]"> <TR></TR> <TH COLSPAN="7" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"> <SPAN style="color:{$COL_WHITE}; font: bold 9px Verdana,Arial,Helvetica,sans-serif">Interrupt Priorities</SPAN> <TR></TR> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Priority</SPAN></TH> <TH COLSPAN="3" WIDTH="55%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">SIG</SPAN></TH> <TH COLSPAN="3" WIDTH="35%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">MODULE</SPAN></TH> <TR></TR> <xsl:for-each select="INTERRUPTINFO[(@TYPE = 'CONTROLLER')]/SOURCE"> <xsl:sort data-type="number" select="@PRIORITY" order="ascending"/> <xsl:variable name="intrins_"><xsl:value-of select="@INSTANCE"/></xsl:variable> <xsl:variable name="intrsig_"><xsl:value-of select="@SIGNAME"/></xsl:variable> <xsl:variable name="intrpri_"><xsl:value-of select="@PRIORITY"/></xsl:variable> <!-- <xsl:for-each select="dyn:evaluate($portsAllRef_)/PORT[((@DIR='O') and (@SIGNAME = $intrsrc_))]"> </xsl:for-each> --> <TR></TR> <TH COLSPAN="1" WIDTH="10%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$intrpri_"/></SPAN></TH> <TH COLSPAN="3" WIDTH="55%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$intrsig_"/></SPAN></TH> <TH COLSPAN="3" WIDTH="35%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><A HREF="#ANCHOR_{$intrins_}" style="text-decoration:none"><SPAN style="color:{$COL_XLNX}; font: normal 12px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="$intrins_"/></SPAN></A></TH> </xsl:for-each> </TH> </xsl:if> </TABLE> </xsl:template> </xsl:stylesheet> <!-- <TD COLSPAN="5" WIDTH="100%" ALIGN="CENTER" BGCOLOR="{$COL_XLNX}"><SPAN style="color:{$COL_WHITE}; font: bold 12px Verdana,Arial,Helvetica,sans-serif">General</SPAN></TD> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">IP Core</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <xsl:if test="DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]"> <SPAN style="color:{$COL_XLNX}; font: bold italic 10px Verdana,Arial,Helvetica,sans-serif"> <A HREF="{DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')]/@SOURCE}" style="text-decoration:none; color:{$COL_XLNX}"><xsl:value-of select="@MODTYPE"/></A> </SPAN> </xsl:if> <xsl:if test="not(DOCUMENTATION/DOCUMENT[(@TYPE = 'IP')])"> <SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"> <xsl:value-of select="@MODTYPE"/> </SPAN> </xsl:if> </TD> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Version</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif"><xsl:value-of select="@HWVERSION"/></SPAN></TD> <xsl:if test="DOCUMENTATION/DOCUMENT[(@TYPE = 'DRIVER')]"> <TR></TR> <TD COLSPAN="2" WIDTH="40%" ALIGN="CENTER" BGCOLOR="{$COL_GRAY}"><SPAN style="color:{$COL_BLACK}; font: bold 10px Verdana,Arial,Helvetica,sans-serif">Driver</SPAN></TD> <TD COLSPAN="3" WIDTH="60%" ALIGN="CENTER" BGCOLOR="{$COL_WHITE}"> <SPAN style="color:{$COL_XLNX}; font: bold italic 10px Verdana,Arial,Helvetica,sans-serif"> <A HREF="{DOCUMENTATION/DOCUMENT[@TYPE = 'DRIVER']/@SOURCE}" style="text-decoration:none; color:{$COL_XLNX}">API</A> </SPAN> </TD> </xsl:if> <TR></TR> -->
<?xml version="1.0" standalone="no"?> <!DOCTYPE stylesheet [ <!ENTITY UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZ"> <!ENTITY LOWERCASE "abcdefghijklmnopqrstuvwxyz"> <!ENTITY UPPER2LOWER " '&UPPERCASE;' , '&LOWERCASE;' "> <!ENTITY LOWER2UPPER " '&LOWERCASE;' , '&UPPERCASE;' "> <!ENTITY ALPHALOWER "ABCDEFxX0123456789"> <!ENTITY HEXUPPER "ABCDEFxX0123456789"> <!ENTITY HEXLOWER "abcdefxX0123456789"> <!ENTITY HEXU2L " '&HEXLOWER;' , '&HEXUPPER;' "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="exsl dyn math xlink"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <!-- ================================================================================ Generate XTeller for ADDRESSES ================================================================================ --> <xsl:template name="WRITE_VIEW_ADDRESS"> <xsl:for-each select="$G_SYS_MODS/MODULE[((@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@IS_CONSTANT = 'TRUE')))]))]"> <xsl:sort data-type="number" select="@ROW_INDEX" order="ascending"/> <xsl:variable name="procInst_" select="@INSTANCE"/> <xsl:variable name="procMod_" select="self::node()"/> <xsl:variable name="procModType" select="@MODTYPE"/> <xsl:variable name="procModClass_" select="@MODCLASS"/> <xsl:variable name="procInstHdrVal_"><xsl:value-of select="$procInst_"/>'s Address Map</xsl:variable> <xsl:variable name="procInstRowIdx_" select="position() - 1"/> <!-- <SET ID="{$procInst_}" CLASS="MODULE" ROW_INDEX="{$procInstRowIdx_}"> --> <xsl:element name="SET"> <xsl:attribute name="ID"><xsl:value-of select="$procInst_"/></xsl:attribute> <xsl:attribute name="CLASS">MODULE</xsl:attribute> <xsl:attribute name="ROW_INDEX"><xsl:value-of select="$procInstRowIdx_"/></xsl:attribute> <!-- <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$procInstHdrVal_}"/> --> <xsl:element name="VARIABLE"> <xsl:attribute name="NAME">INSTANCE</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="$procInstHdrVal_"/></xsl:attribute> <xsl:attribute name="VIEWDISP">Instance</xsl:attribute> <xsl:attribute name="VIEWTYPE">STATIC</xsl:attribute> </xsl:element> <xsl:for-each select="$procMod_/MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@MEMTYPE = 'BRIDGE') or (@IS_CONSTANT = 'TRUE')))]"> <xsl:sort data-type="number" select="@BASEDECIMAL" order="ascending"/> <xsl:variable name="addr_id_"><xsl:value-of select="@BASENAME"/>:<xsl:value-of select="@HIGHNAME"/></xsl:variable> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="highName_" select="@HIGHNAME"/> <!-- <xsl:if test="$G_DEBUG='TRUE'"> <xsl:message>ADDRESS ID <xsl:value-of select="$addr_id_"/></xsl:message> </xsl:if> --> <xsl:variable name="set_id_"> <xsl:if test="(@INSTANCE)"> <xsl:value-of select="$procInst_"/>.<xsl:value-of select="@INSTANCE"/>:<xsl:value-of select="$addr_id_"/> </xsl:if> <xsl:if test="not(@INSTANCE)"> <xsl:value-of select="$procInst_"/>:<xsl:value-of select="$addr_id_"/> </xsl:if> </xsl:variable> <xsl:variable name="procAddrRowIdx_" select="position() - 1"/> <SET ID="{$set_id_}" CLASS="ADDRESS" ROW_INDEX="{$procAddrRowIdx_}"> <xsl:if test="(@INSTANCE)"> <xsl:variable name="periInst_" select="@INSTANCE"/> <xsl:variable name="periMod_" select="key('G_MAP_MODULES', $periInst_)"/> <!-- <xsl:variable name="subInstance_" select="$G_SYS_MODS/MODULE[(@INSTANCE = $instance_)]"/> <xsl:message>Count memrange slaves <xsl:value-of select="count($modMemMapSlvs_)"/> </xsl:message> <xsl:message>Count mod valid bifs <xsl:value-of select="count($modValidBifs_)"/> </xsl:message> --> <xsl:variable name="periModType_" select="$periMod_/@MODTYPE"/> <xsl:variable name="periViewIcon_" select="$periMod_/LICENSEINFO/@ICON_NAME"/> <xsl:variable name="periHwVersion_" select="$periMod_/@HWVERSION"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$periInst_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$periModType_}" VIEWICON="{$periViewIcon_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$periHwVersion_}"/> </xsl:if> <xsl:if test="not(@INSTANCE)"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$procInst_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$procModType}" VIEWICON="{$procMod_/LICENSEINFO/@ICON_NAME}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$procHwVersion_}"/> </xsl:if> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Address Type" NAME="MEMTYPE" VALUE="{@MEMTYPE}"/> <xsl:variable name="instName_"> <xsl:choose> <xsl:when test="@INSTANCE"><xsl:value-of select="@INSTANCE"/></xsl:when> <xsl:otherwise>Connected<xsl:value-of select="$procInst_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>INST : <xsl:value-of select="$set_id_"/></xsl:message> --> <xsl:variable name="is_locked_"> <xsl:if test="@IS_LOCKED = 'TRUE'">TRUE</xsl:if> <xsl:if test="not(@IS_LOCKED) or not(@IS_LOCKED = 'TRUE')">FALSE</xsl:if> </xsl:variable> <xsl:variable name="is_constant_"> <xsl:if test="@IS_CONSTANT = 'TRUE'">TRUE</xsl:if> <xsl:if test="not(@IS_CONSTANT) or not(@IS_CONSTANT = 'TRUE')">FALSE</xsl:if> </xsl:variable> <xsl:variable name="baseAddrViewType_"> <xsl:choose> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>TEXTBOX</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(@SIZEABRV and not(@SIZEABRV = 'U'))"> <xsl:variable name="baseAddr_"><xsl:value-of select="translate(@BASEVALUE,&HEXU2L;)"/></xsl:variable> <xsl:variable name="highAddr_"><xsl:value-of select="translate(@HIGHVALUE,&HEXU2L;)"/></xsl:variable> <VARIABLE VIEWTYPE="{$baseAddrViewType_}" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE="{$baseAddr_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="High Address" NAME="HIGHVALUE" VALUE="{$highAddr_}"/> <xsl:if test="not(@MEMTYPE) or not(@MEMTYPE = 'BRIDGE')"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> <xsl:if test="@MEMTYPE and (@MEMTYPE = 'BRIDGE') and not(@BRIDGE_TO)"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> </xsl:if> <xsl:if test="(@SIZEABRV and (@SIZEABRV = 'U'))"> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE=""/> </xsl:if> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Base Name" NAME="BASENAME" VALUE="{@BASENAME}"/> <xsl:variable name="sizeViewType_"> <xsl:choose> <xsl:when test="(@SIZEABRV and (@SIZEABRV = 'U'))">DROPDOWN</xsl:when> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>DROPDOWN</xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="{$sizeViewType_}" VIEWDISP="Size" NAME="SIZEABRV" VALUE="{@SIZEABRV}"/> <xsl:variable name="periInst_" select="@INSTANCE"/> <xsl:variable name="periMod_" select="key('G_MAP_MODULES', $periInst_)"/> <xsl:variable name="periModClass_" select="$periMod_/@MODCLASS"/> <xsl:variable name="periValidBifs_" select="key('G_MAP_ALL_BIFS', $periInst_)[not(@BUSNAME = '__NOC__')]"/> <xsl:variable name="periMemMapSlvs_" select="$periMod_/MEMORYMAP/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"/> <xsl:variable name="periMemMapBifs_"> <xsl:for-each select="$periMemMapSlvs_"> <xsl:variable name="periSlvBifName_" select="@BUSINTERFACE"/> <xsl:if test="$periValidBifs_[(@NAME = $periSlvBifName_)]"> <xsl:variable name="periBif_" select="$periValidBifs_[(@NAME = $periSlvBifName_)]"/> <xsl:variable name="periBifName_" select="$periBif_/@NAME"/> <xsl:variable name="periBifBus_" select="$periBif_/@BUSNAME"/> <!-- <xsl:message> Slv Bif <xsl:value-of select="$periBifName_"/> = <xsl:value-of select="$periBifBus_"/></xsl:message> --> <MMBIF NAME="{$periBifName_}" BUS="{$periBifBus_}"/> </xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="num_of_periMemMapBifs_" select="count(exsl:node-set($periMemMapBifs_)/MMBIF)"/> <!-- <xsl:message> Total num of slv bifs <xsl:value-of select="$num_of_periMemMapBifs_"/> </xsl:message> <xsl:message> </xsl:message> --> <xsl:variable name="valid_bifNames_"> <xsl:for-each select="exsl:node-set($periMemMapBifs_)/MMBIF"> <xsl:variable name="bifName_" select="@NAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="$bifName_"/> </xsl:for-each> </xsl:variable> <xsl:variable name="valid_busNames_"> <xsl:for-each select="exsl:node-set($periMemMapBifs_)/MMBIF"> <xsl:variable name="busName_" select="@BUS"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="$busName_"/> </xsl:for-each> </xsl:variable> <!-- <xsl:message> Mod Bif <xsl:value-of select="$bifName_"/> : <xsl:value-of select="position()"/></xsl:message> <xsl:message> Mod Bif <xsl:value-of select="$bifName_"/> : <xsl:value-of select="position()"/></xsl:message> <xsl:message>Slv Bif <xsl:value-of select="$bifName_"/> : <xsl:value-of select="position()"/></xsl:message> <xsl:variable name="modBifs_" select="$modInst_/BUSINTERFACES"/> <xsl:if test="$periValidBifs_[(@NAME = $bifName_)]"> <xsl:variable name="busName_" select="$periValidBifs_[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:message>Mod Bif <xsl:value-of select="$bifName_"/> : <xsl:value-of select="position()"/></xsl:message> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="$bifName_"/> </xsl:if> --> <!-- <xsl:message>Module Instances <xsl:value-of select="$instName_"/> </xsl:message> <xsl:message>Base Name <xsl:value-of select="$baseName_"/> </xsl:message> <xsl:message>High Name <xsl:value-of select="$highName_"/> </xsl:message> <xsl:message>Valid bif names <xsl:value-of select="$valid_bifNames_"/> </xsl:message> <xsl:message>Valid bif names <xsl:value-of select="$valid_bifNames_"/> </xsl:message> <xsl:message>Valid bus names <xsl:value-of select="$valid_busNames_"/> </xsl:message> --> <xsl:variable name="var_bifNames_"> <xsl:choose> <xsl:when test="string-length($valid_bifNames_) &lt; 1"> <xsl:choose> <xsl:when test="$periModClass_ = 'BUS'">Not Applicable</xsl:when> <xsl:when test="$is_constant_ = 'TRUE'"></xsl:when> <xsl:otherwise>Not Connected</xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise><xsl:value-of select="$valid_bifNames_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Interface(s)" NAME="BIFNAMES" VALUE="{$var_bifNames_}"/> <xsl:if test="(($num_of_periMemMapBifs_ &gt; 0) and (string-length($valid_busNames_) &gt; 0))"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$valid_busNames_}"/> </xsl:if> </SET> <!-- End of one processor memory range row --> </xsl:for-each> <!-- end of processor memory ranges loop --> </xsl:element><!-- End of Processor memory map set --> </xsl:for-each> <!-- end of processor module address space loop --> <!-- Add branch for valid address that are not part of a processor's memory map. Usually modules that have just been added, but have not been connected to a bus yet. --> <xsl:variable name="nonProcAddresses_"> <!-- Add a dummy non proc as a place holder. Otherwise the exsl:node-set test Below complains if the variable is completely empty --> <NONPROCADDRESS INSTANCE="__DUMMY__" BASENAME="__DUMMY__" HIGHNAME="__DUMMY__" BASEDECIMAL="__DUMMY__"/> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@IS_CONSTANT = 'TRUE')))]))]"> <xsl:variable name="nonProcInst_" select="@INSTANCE"/> <xsl:for-each select="MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $nonProcInst_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"> <NONPROCADDRESS INSTANCE="{$nonProcInst_}" BASENAME="{$baseName_}" HIGHNAME="{$highName_}" BASEDECIMAL="{$baseDecimal_}"/> </xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <!-- Add unmapped addresses --> <xsl:variable name="hasUnMappedAddress"> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]))]"> <xsl:variable name="nonProcInst_" select="@INSTANCE"/> <xsl:for-each select="MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $nonProcInst_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"><xsl:value-of select="$nonProcInst_"/></xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:if test="string-length($hasUnMappedAddress) &gt; 1"> <SET ID="Unmapped Addresses" CLASS="MODULE" ROW_INDEX="{$G_NUM_OF_PROCS_W_ADDRS}"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="Unmapped Addresses"/> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]))]/MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="nonProcMod_" select="../.."/> <xsl:variable name="nonProcMMap_" select="$nonProcMod_/MEMORYMAP"/> <xsl:variable name="instance_" select="$nonProcMod_/@INSTANCE"/> <xsl:variable name="row_index_" select="position()"/> <xsl:variable name="instName_" select="$nonProcMod_/@INSTANCE"/> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:for-each select="$nonProcMMap_/MEMRANGE[((@BASENAME = $baseName_) and (@HIGHNAME = $highName_))]"> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $instName_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"> <xsl:variable name="addr_id_"><xsl:value-of select="$baseName_"/>:<xsl:value-of select="$highName_"/></xsl:variable> <xsl:variable name="set_id_"><xsl:value-of select="$instName_"/>:<xsl:value-of select="$addr_id_"/></xsl:variable> <xsl:variable name="inst_modtype_" select="$nonProcMod_/@MODTYPE"/> <xsl:variable name="inst_viewicon_" select="$nonProcMod_/LICENSEINFO/@ICON_NAME"/> <xsl:variable name="inst_modclass_" select="$nonProcMod_/@MODCLASS"/> <xsl:variable name="inst_hwversion_" select="$nonProcMod_/@HWVERSION"/> <SET ID="{$set_id_}" CLASS="ADDRESS"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$instance_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$inst_modtype_}" VIEWICON="{$inst_viewicon_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$inst_hwversion_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Address Type" NAME="MEMTYPE" VALUE="{@MEMTYPE}"/> <xsl:variable name="is_locked_"> <xsl:if test="@IS_LOCKED = 'TRUE'">TRUE</xsl:if> <xsl:if test="not(@IS_LOCKED) or not(@IS_LOCKED = 'TRUE')">FALSE</xsl:if> </xsl:variable> <xsl:variable name="baseAddrViewType_"> <xsl:choose> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>TEXTBOX</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(@SIZEABRV and not(@SIZEABRV = 'U'))"> <xsl:variable name="baseAddr_"><xsl:value-of select="translate(@BASEVALUE,&HEXU2L;)"/></xsl:variable> <xsl:variable name="highAddr_"><xsl:value-of select="translate(@HIGHVALUE,&HEXU2L;)"/></xsl:variable> <VARIABLE VIEWTYPE="{$baseAddrViewType_}" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE="{$baseAddr_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="High Address" NAME="HIGHVALUE" VALUE="{$highAddr_}"/> <xsl:if test="not(@MEMTYPE) or not(@MEMTYPE = 'BRIDGE')"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> <xsl:if test="@MEMTYPE and (@MEMTYPE = 'BRIDGE') and not(@BRIDGE_TO)"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> </xsl:if> <xsl:if test="(@SIZEABRV and (@SIZEABRV = 'U'))"> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE=""/> </xsl:if> <!-- Lock, DCache and ICache removed in 11.1 <xsl:if test="(@IS_CACHEABLE = 'TRUE')"> <xsl:variable name="is_dcached_"> <xsl:if test="(@IS_DCACHED = 'TRUE')">TRUE</xsl:if> <xsl:if test="(not(@IS_DCACHED) or not(@IS_DCACHED = 'TRUE'))">FALSE</xsl:if> </xsl:variable> <xsl:variable name="is_icached_"> <xsl:if test="(@IS_ICACHED = 'TRUE')">TRUE</xsl:if> <xsl:if test="(not(@IS_ICACHED) or not(@IS_ICACHED = 'TRUE'))">FALSE</xsl:if> </xsl:variable> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="DCache" NAME="IS_DCACHED" VALUE="{$is_dcached_}"/> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="ICache" NAME="IS_ICACHED" VALUE="{$is_icached_}"/> </xsl:if> --> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Base Name" NAME="BASENAME" VALUE="{@BASENAME}"/> <xsl:variable name="sizeViewType_"> <xsl:choose> <xsl:when test="(@SIZEABRV and (@SIZEABRV = 'U'))">DROPDOWN</xsl:when> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>DROPDOWN</xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="{$sizeViewType_}" VIEWDISP="Size" NAME="SIZEABRV" VALUE="{@SIZEABRV}"/> <xsl:variable name="valid_bifNames_"> <xsl:choose> <xsl:when test="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <!-- <xsl:message>Bif Name <xsl:value-of select="$bifName_"/> </xsl:message> --> <xsl:variable name="modBifs_" select="$nonProcMod_/BUSINTERFACES"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@BUSINTERFACE"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="bifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$nonProcMod_"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@NAME"/> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="def_bifNames_"> <xsl:choose> <xsl:when test="(string-length($valid_bifNames_) &lt; 1) or ((string-length($valid_bifNames_) = 1) and ($valid_bifNames_ = ':'))">Not Connected</xsl:when> <xsl:when test="starts-with($valid_bifNames_,':')"><xsl:value-of select="substring-after($valid_bifNames_,':')"/></xsl:when> <xsl:otherwise><xsl:value-of select="$valid_bifNames_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Interface(s)" NAME="BIFNAMES" VALUE="{$def_bifNames_}"/> <xsl:choose> <xsl:when test="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="slvBifName_" select="@BUSINTERFACE"/> <xsl:variable name="modBifs_" select="$nonProcMod_/BUSINTERFACES"/> <xsl:if test="count($modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]) = 1"> <xsl:variable name="slvBusName_" select="$modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$slvBusName_}"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="slvBifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$nonProcMod_"/> <xsl:if test="count($modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]) = 1"> <xsl:variable name="slvBusName_" select="$modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$slvBusName_}"/> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </SET> <!-- End of one non processor memory range row --> </xsl:if> </xsl:for-each> <!-- end of non processor memory ranges loop --> </xsl:for-each> <!-- end of NONPROCADDRESS loop --> </SET> <!-- End of non processor tree branch --> </xsl:if> <!-- End of test to see if we have and non processor mapped address --> </xsl:template> <xsl:template name="__WRITE_VIEW_ADDRESS__"> <!-- --> <xsl:for-each select="$G_SYS_MODS/MODULE[((@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@IS_CONSTANT = 'TRUE')))]))]"> <xsl:sort data-type="number" select="@ROW_INDEX" order="ascending"/> <xsl:variable name="procInst_" select="@INSTANCE"/> <xsl:variable name="modClass_" select="@MODCLASS"/> <xsl:variable name="procInstHdrVal_"><xsl:value-of select="$procInst_"/>'s Address Map</xsl:variable> <xsl:variable name="procInstRowIdx_" select="position() - 1"/> <xsl:variable name="modInstance_" select="self::node()"/> <SET ID="{$procInst_}" CLASS="MODULE" ROW_INDEX="{$procInstRowIdx_}"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$procInstHdrVal_}"/> <xsl:for-each select="$modInstance_/MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@MEMTYPE = 'BRIDGE') or (@IS_CONSTANT = 'TRUE')))]"> <xsl:sort data-type="number" select="@BASEDECIMAL" order="ascending"/> <xsl:variable name="addr_id_"><xsl:value-of select="@BASENAME"/>:<xsl:value-of select="@HIGHNAME"/></xsl:variable> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:if test="$G_DEBUG='TRUE'"> <xsl:message>ADDRESS ID <xsl:value-of select="$addr_id_"/></xsl:message> </xsl:if> <xsl:variable name="set_id_"> <xsl:if test="(@INSTANCE)"> <xsl:value-of select="$procInst_"/>.<xsl:value-of select="@INSTANCE"/>:<xsl:value-of select="$addr_id_"/> </xsl:if> <xsl:if test="not(@INSTANCE)"> <xsl:value-of select="$procInst_"/>:<xsl:value-of select="$addr_id_"/> </xsl:if> </xsl:variable> <xsl:variable name="procAddrRowIdx_" select="position() - 1"/> <SET ID="{$set_id_}" CLASS="ADDRESS" ROW_INDEX="{$procAddrRowIdx_}"> <xsl:if test="(@INSTANCE)"> <xsl:variable name="instance_" select="@INSTANCE"/> <xsl:variable name="subInstance_" select="$G_SYS_MODS/MODULE[(@INSTANCE = $instance_)]"/> <xsl:variable name="inst_modtype_" select="$subInstance_/@MODTYPE"/> <xsl:variable name="inst_viewicon_" select="$subInstance_/LICENSEINFO/@ICON_NAME"/> <xsl:variable name="inst_hwversion_" select="$subInstance_/@HWVERSION"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$instance_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$inst_modtype_}" VIEWICON="{$inst_viewicon_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$inst_hwversion_}"/> </xsl:if> <xsl:if test="not(@INSTANCE)"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$modInstance_/@INSTANCE}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$modInstance_/@MODTYPE}" VIEWICON="{$modInstance_/LICENSEINFO/@ICON_NAME}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$modInstance_/@HWVERSION}"/> </xsl:if> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Address Type" NAME="MEMTYPE" VALUE="{@MEMTYPE}"/> <xsl:variable name="instName_"> <xsl:choose> <xsl:when test="@INSTANCE"><xsl:value-of select="@INSTANCE"/></xsl:when> <xsl:otherwise>Connected<xsl:value-of select="$modInstance_/@INSTANCE"/></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>INST : <xsl:value-of select="$set_id_"/></xsl:message> --> <xsl:variable name="is_locked_"> <xsl:if test="@IS_LOCKED = 'TRUE'">TRUE</xsl:if> <xsl:if test="not(@IS_LOCKED) or not(@IS_LOCKED = 'TRUE')">FALSE</xsl:if> </xsl:variable> <xsl:variable name="baseAddrViewType_"> <xsl:choose> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>TEXTBOX</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(@SIZEABRV and not(@SIZEABRV = 'U'))"> <xsl:variable name="baseAddr_"><xsl:value-of select="translate(@BASEVALUE,&HEXU2L;)"/></xsl:variable> <xsl:variable name="highAddr_"><xsl:value-of select="translate(@HIGHVALUE,&HEXU2L;)"/></xsl:variable> <VARIABLE VIEWTYPE="{$baseAddrViewType_}" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE="{$baseAddr_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="High Address" NAME="HIGHVALUE" VALUE="{$highAddr_}"/> <xsl:if test="not(@MEMTYPE) or not(@MEMTYPE = 'BRIDGE')"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> <xsl:if test="@MEMTYPE and (@MEMTYPE = 'BRIDGE') and not(@BRIDGE_TO)"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> </xsl:if> <xsl:if test="(@SIZEABRV and (@SIZEABRV = 'U'))"> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE=""/> </xsl:if> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Base Name" NAME="BASENAME" VALUE="{@BASENAME}"/> <xsl:variable name="sizeViewType_"> <xsl:choose> <xsl:when test="(@SIZEABRV and (@SIZEABRV = 'U'))">DROPDOWN</xsl:when> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>DROPDOWN</xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="{$sizeViewType_}" VIEWDISP="Size" NAME="SIZEABRV" VALUE="{@SIZEABRV}"/> <xsl:variable name="modInst_" select="$G_SYS_MODS/MODULE[(@INSTANCE = $instName_)]"/> <xsl:variable name="modMemMap_" select="$modInst_/MEMORYMAP"/> <xsl:variable name="valid_bifNames_"> <xsl:choose> <xsl:when test="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <!-- <xsl:message>Bif Name <xsl:value-of select="$bifName_"/> </xsl:message> --> <xsl:variable name="modBifs_" select="$modInst_/BUSINTERFACES"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@BUSINTERFACE"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="bifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$modInst_"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@NAME"/> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Module Instances <xsl:value-of select="$instName_"/> </xsl:message> <xsl:message>Base Name <xsl:value-of select="$baseName_"/> </xsl:message> <xsl:message>High Name <xsl:value-of select="$highName_"/> </xsl:message> <xsl:message>Valid bif names <xsl:value-of select="$valid_bifNames_"/> </xsl:message> --> <xsl:variable name="def_bifNames_"> <xsl:choose> <xsl:when test="string-length($valid_bifNames_) &lt; 1"> <xsl:choose> <xsl:when test="$modClass_ = 'BUS'">Not Applicable</xsl:when> <xsl:otherwise>Not Connected</xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="starts-with($valid_bifNames_,':')"><xsl:value-of select="substring-after($valid_bifNames_,':')"/></xsl:when> <xsl:otherwise><xsl:value-of select="$valid_bifNames_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Interface(s)" NAME="BIFNAMES" VALUE="{$def_bifNames_}"/> <xsl:choose> <xsl:when test="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:variable name="modBifs_" select="$modInst_/BUSINTERFACES"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:variable name="numBifs_" select="count($modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))])"/> <xsl:if test="((position() = 1) or ($numBifs_ = 1))"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$busName_}"/> </xsl:if> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$modMemMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="bifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$modInst_"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:variable name="numBifs_" select="count($modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))])"/> <xsl:if test="((position() = 1) or ($numBifs_ = 1))"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$busName_}"/> </xsl:if> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> <!-- --> </SET> <!-- End of one processor memory range row --> </xsl:for-each> <!-- end of processor memory ranges loop --> </SET> </xsl:for-each> <!-- end of processor module address space loop --> <!-- Add branch for valid address that are not part of a processor's memory map. Usually modules that have just been added, but have not been connected to a bus yet. --> <xsl:variable name="nonProcAddresses_"> <!-- Add a dummy non proc as a place holder. Otherwise the exsl:node-set test Below complains if the variable is completely empty --> <NONPROCADDRESS INSTANCE="__DUMMY__" BASENAME="__DUMMY__" HIGHNAME="__DUMMY__" BASEDECIMAL="__DUMMY__"/> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[((not(@IS_VALID) or (@IS_VALID = 'TRUE')) and (ACCESSROUTE or (@IS_CONSTANT = 'TRUE')))]))]"> <xsl:variable name="nonProcInst_" select="@INSTANCE"/> <xsl:for-each select="MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $nonProcInst_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"> <NONPROCADDRESS INSTANCE="{$nonProcInst_}" BASENAME="{$baseName_}" HIGHNAME="{$highName_}" BASEDECIMAL="{$baseDecimal_}"/> </xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <!-- Add unmapped addresses --> <xsl:variable name="hasUnMappedAddress"> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]))]"> <xsl:variable name="nonProcInst_" select="@INSTANCE"/> <xsl:for-each select="MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $nonProcInst_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"><xsl:value-of select="$nonProcInst_"/></xsl:if> </xsl:for-each> </xsl:for-each> </xsl:variable> <xsl:if test="string-length($hasUnMappedAddress) &gt; 1"> <SET ID="Unmapped Addresses" CLASS="MODULE" ROW_INDEX="{$G_NUM_OF_PROCS_W_ADDRS}"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="Unmapped Addresses"/> <xsl:for-each select="$G_SYS_MODS/MODULE[(not(@MODCLASS = 'PROCESSOR') and (MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]))]/MEMORYMAP/MEMRANGE[(not(@IS_VALID) or (@IS_VALID = 'TRUE'))]"> <xsl:variable name="nonProcMod_" select="../.."/> <xsl:variable name="nonProcMMap_" select="$nonProcMod_/MEMORYMAP"/> <xsl:variable name="instance_" select="$nonProcMod_/@INSTANCE"/> <xsl:variable name="row_index_" select="position()"/> <xsl:variable name="instName_" select="$nonProcMod_/@INSTANCE"/> <xsl:variable name="highName_" select="@HIGHNAME"/> <xsl:variable name="baseName_" select="@BASENAME"/> <xsl:variable name="baseDecimal_" select="@BASEDECIMAL"/> <xsl:for-each select="$nonProcMMap_/MEMRANGE[((@BASENAME = $baseName_) and (@HIGHNAME = $highName_))]"> <xsl:if test="not($G_SYS_MODS/MODULE[(@MODCLASS = 'PROCESSOR')]/MEMORYMAP/MEMRANGE[((@INSTANCE = $instName_) and (@BASENAME = $baseName_) and (@HIGHNAME = $highName_))])"> <xsl:variable name="addr_id_"><xsl:value-of select="$baseName_"/>:<xsl:value-of select="$highName_"/></xsl:variable> <xsl:variable name="set_id_"><xsl:value-of select="$instName_"/>:<xsl:value-of select="$addr_id_"/></xsl:variable> <xsl:variable name="inst_modtype_" select="$nonProcMod_/@MODTYPE"/> <xsl:variable name="inst_viewicon_" select="$nonProcMod_/LICENSEINFO/@ICON_NAME"/> <xsl:variable name="inst_modclass_" select="$nonProcMod_/@MODCLASS"/> <xsl:variable name="inst_hwversion_" select="$nonProcMod_/@HWVERSION"/> <SET ID="{$set_id_}" CLASS="ADDRESS"> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Instance" NAME="INSTANCE" VALUE="{$instance_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Type" NAME="MODTYPE" VALUE="{$inst_modtype_}" VIEWICON="{$inst_viewicon_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="IP Version" NAME="HWVERSION" VALUE="{$inst_hwversion_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Address Type" NAME="MEMTYPE" VALUE="{@MEMTYPE}"/> <xsl:variable name="is_locked_"> <xsl:if test="@IS_LOCKED = 'TRUE'">TRUE</xsl:if> <xsl:if test="not(@IS_LOCKED) or not(@IS_LOCKED = 'TRUE')">FALSE</xsl:if> </xsl:variable> <xsl:variable name="baseAddrViewType_"> <xsl:choose> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>TEXTBOX</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="(@SIZEABRV and not(@SIZEABRV = 'U'))"> <xsl:variable name="baseAddr_"><xsl:value-of select="translate(@BASEVALUE,&HEXU2L;)"/></xsl:variable> <xsl:variable name="highAddr_"><xsl:value-of select="translate(@HIGHVALUE,&HEXU2L;)"/></xsl:variable> <VARIABLE VIEWTYPE="{$baseAddrViewType_}" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE="{$baseAddr_}"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="High Address" NAME="HIGHVALUE" VALUE="{$highAddr_}"/> <xsl:if test="not(@MEMTYPE) or not(@MEMTYPE = 'BRIDGE')"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> <xsl:if test="@MEMTYPE and (@MEMTYPE = 'BRIDGE') and not(@BRIDGE_TO)"> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="Lock" NAME="IS_LOCKED" VALUE="{$is_locked_}"/> </xsl:if> </xsl:if> <xsl:if test="(@SIZEABRV and (@SIZEABRV = 'U'))"> <VARIABLE VIEWTYPE="TEXTBOX" VIEWDISP="Base Address" NAME="BASEVALUE" VALUE=""/> </xsl:if> <!-- Lock, DCache and ICache removed in 11.1 <xsl:if test="(@IS_CACHEABLE = 'TRUE')"> <xsl:variable name="is_dcached_"> <xsl:if test="(@IS_DCACHED = 'TRUE')">TRUE</xsl:if> <xsl:if test="(not(@IS_DCACHED) or not(@IS_DCACHED = 'TRUE'))">FALSE</xsl:if> </xsl:variable> <xsl:variable name="is_icached_"> <xsl:if test="(@IS_ICACHED = 'TRUE')">TRUE</xsl:if> <xsl:if test="(not(@IS_ICACHED) or not(@IS_ICACHED = 'TRUE'))">FALSE</xsl:if> </xsl:variable> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="DCache" NAME="IS_DCACHED" VALUE="{$is_dcached_}"/> <VARIABLE VIEWTYPE="CHECKBOX" VIEWDISP="ICache" NAME="IS_ICACHED" VALUE="{$is_icached_}"/> </xsl:if> --> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Base Name" NAME="BASENAME" VALUE="{@BASENAME}"/> <xsl:variable name="sizeViewType_"> <xsl:choose> <xsl:when test="(@SIZEABRV and (@SIZEABRV = 'U'))">DROPDOWN</xsl:when> <xsl:when test="$is_locked_='TRUE'">STATIC</xsl:when> <xsl:otherwise>DROPDOWN</xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="{$sizeViewType_}" VIEWDISP="Size" NAME="SIZEABRV" VALUE="{@SIZEABRV}"/> <xsl:variable name="valid_bifNames_"> <xsl:choose> <xsl:when test="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <!-- <xsl:message>Bif Name <xsl:value-of select="$bifName_"/> </xsl:message> --> <xsl:variable name="modBifs_" select="$nonProcMod_/BUSINTERFACES"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@BUSINTERFACE"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="bifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$nonProcMod_"/> <xsl:if test="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]"> <xsl:variable name="busName_" select="$modBifs_/BUSINTERFACE[((@NAME = $bifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <xsl:if test="position() &gt; 1">:</xsl:if><xsl:value-of select="@NAME"/> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="def_bifNames_"> <xsl:choose> <xsl:when test="(string-length($valid_bifNames_) &lt; 1) or ((string-length($valid_bifNames_) = 1) and ($valid_bifNames_ = ':'))">Not Connected</xsl:when> <xsl:when test="starts-with($valid_bifNames_,':')"><xsl:value-of select="substring-after($valid_bifNames_,':')"/></xsl:when> <xsl:otherwise><xsl:value-of select="$valid_bifNames_"/></xsl:otherwise> </xsl:choose> </xsl:variable> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Interface(s)" NAME="BIFNAMES" VALUE="{$def_bifNames_}"/> <xsl:choose> <xsl:when test="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES"> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLAVES/SLAVE"> <xsl:variable name="slvBifName_" select="@BUSINTERFACE"/> <xsl:variable name="modBifs_" select="$nonProcMod_/BUSINTERFACES"/> <xsl:if test="count($modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]) = 1"> <xsl:variable name="slvBusName_" select="$modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$slvBusName_}"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$nonProcMMap_/MEMRANGE[(@BASENAME = $baseName_) and (@HIGHNAME = $highName_)]/SLVINTERFACES/BUSINTERFACE"> <xsl:variable name="slvBifName_" select="@NAME"/> <xsl:variable name="modBifs_" select="$nonProcMod_"/> <xsl:if test="count($modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]) = 1"> <xsl:variable name="slvBusName_" select="$modBifs_/BUSINTERFACE[((@NAME = $slvBifName_) and not(@IS_VALID = 'FALSE') and not(@BUSNAME = '__NOC__'))]/@BUSNAME"/> <VARIABLE VIEWTYPE="STATIC" VIEWDISP="Bus Name" NAME="BUSNAME" VALUE="{$slvBusName_}"/> </xsl:if> </xsl:for-each> </xsl:otherwise> </xsl:choose> </SET> <!-- End of one non processor memory range row --> </xsl:if> </xsl:for-each> <!-- end of non processor memory ranges loop --> </xsl:for-each> <!-- end of NONPROCADDRESS loop --> </SET> <!-- End of non processor tree branch --> </xsl:if> <!-- End of test to see if we have and non processor mapped address --> </xsl:template> </xsl:stylesheet>
<filename>ZedBoard_Linux_Design/hw/xps_proj/__xps/.dswkshop/MdtTinySvgBLKD_BusLaneSpaces.xsl <?xml version="1.0" standalone="no"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:dyn="http://exslt.org/dynamic" xmlns:math="http://exslt.org/math" xmlns:xlink="http://www.w3.org/1999/xlink" extension-element-prefixes="math dyn exsl xlink"> <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/> --> <!-- =========================================================== Handle Bucket connections to the shared busses./ =========================================================== --> <xsl:template name="BCLaneSpace_BucketToSharedBus"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:param name="iSpaceSharedBus_Y" select="0"/> <!-- <xsl:message>Stack To East <xsl:value-of select="$iStackToEast"/></xsl:message> <xsl:message>Stack to West <xsl:value-of select="$iStackToWest"/></xsl:message> <xsl:message>Stack to East Width <xsl:value-of select="$iStackToEast_W"/></xsl:message> <xsl:message>Stack to West Width <xsl:value-of select="$iStackToWest_W"/></xsl:message> <xsl:message>Shared Bus Y <xsl:value-of select="$iSpaceSharedBus_Y"/></xsl:message> <xsl:message>Lane in space X <xsl:value-of select="$iLaneInSpace_X"/></xsl:message> --> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="sbs_idx_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE= $iBusName)]/@BUS_INDEX"/> <xsl:variable name="sbs_name_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@BUS_INDEX = $sbs_idx_)]/@BUSNAME"/> <xsl:variable name="sbs_bc_y_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H))"/> <xsl:variable name="bktshp_hori_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@BUS_INDEX = $sbs_idx_)]/@STACK_HORIZ_INDEX"/> <xsl:variable name="bktshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/SBSBUCKETS/SBSBUCKET[(@BUS_INDEX = $sbs_idx_)]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <!-- <xsl:message>Ext Shape to West <xsl:value-of select="$extSpaceWest_W_"/></xsl:message> <xsl:message>Ext Shape to East <xsl:value-of select="$extSpaceEast_W_"/></xsl:message> --> <xsl:variable name="bktshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$bktshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$bktshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="sbsStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:if test="($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_)"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:if> <xsl:if test="not($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_)">0</xsl:if> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="vert_line_x_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="vert_line_y1_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H) + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="vert_line_y2_" select="($bktshp_Y_ + ceiling($BLKD_MOD_W div 2) + $sbsStack_H_diff_)"/> <xsl:variable name="bcInSpace_X_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2) - ceiling($BLKD_BUS_ARROW_W div 2))"/> <!-- <xsl:message>Shared Bus Y <xsl:value-of select="$G_SharedBus_Y"/></xsl:message> <xsl:message>Vert Bus Y <xsl:value-of select="$vert_line_y1_"/></xsl:message> <xsl:message>vert y1 <xsl:value-of select="$vert_line_y1_"/></xsl:message> <xsl:message>vert y2 <xsl:value-of select="$vert_line_y2_"/></xsl:message> --> <xsl:variable name="horz_line_y_" select="$vert_line_y2_"/> <xsl:variable name="horz_line_x1_" select="$vert_line_x_"/> <xsl:variable name="horz_line_x2_" select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_)"/> <xsl:variable name="v_bus_ul_x_" select="$vert_line_x_"/> <xsl:variable name="v_bus_ul_y_" select="$vert_line_y1_"/> <xsl:variable name="v_bus_width_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="v_bus_height_" select="(($vert_line_y2_ - $vert_line_y1_) - ceiling($BLKD_BIFC_H div 2))"/> <xsl:variable name="h_bus_ul_x_" select="$v_bus_ul_x_"/> <xsl:variable name="h_bus_ul_y_" select="$vert_line_y2_ - $BLKD_BIFC_H + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="h_bus_width_" select="ceiling($space_W_ div 2) + $extSpaceEast_W_"/> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <!-- <xsl:variable name="h_bus_width_" select="($space_W_ + ceiling(($extSpaceWest_W_ + $extSpaceEast_W_) div 2) - $BLKD_BIFC_W)"/> <xsl:message>v bus x <xsl:value-of select="$v_bus_ul_x_"/></xsl:message> <xsl:message>v bus y <xsl:value-of select="$v_bus_ul_y_"/></xsl:message> <xsl:message>v bus w <xsl:value-of select="$v_bus_width_"/></xsl:message> <xsl:message>v bus y1 <xsl:value-of select="$vert_line_y1_"/></xsl:message> <xsl:message>v bus y2 <xsl:value-of select="$vert_line_y2_"/></xsl:message> <xsl:message>v bus h <xsl:value-of select="$v_bus_height_"/></xsl:message> <xsl:message>h bus w <xsl:value-of select="$h_bus_width_"/></xsl:message> --> <!-- Draw rectangular parts of the bus --> <rect x="{$v_bus_ul_x_}" y="{$v_bus_ul_y_ - 2}" width= "{$v_bus_width_}" height="{$v_bus_height_}" style="stroke:none; fill:{$busColor_}"/> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_ - 5}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> <!-- --> </xsl:template> <!-- =========================================================== Handle Processor's Shared bus connections. =========================================================== --> <xsl:template name="BCLaneSpace_ProcBifToSharedBus"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:param name="iSpaceSharedBus_Y" select="0"/> <!-- <xsl:message>Proc Bus Std <xsl:value-of select="$iBusStd"/></xsl:message> <xsl:message>Proc Bus Name <xsl:value-of select="$iBusName"/></xsl:message> <xsl:message>Proc Bif Type <xsl:value-of select="$iBifType"/></xsl:message> --> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="sbs_idx_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE= $iBusName)]/@BUS_INDEX"/> <xsl:variable name="sbs_bc_y_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H))"/> <xsl:variable name="procInst_" select="BUSCONN/@INSTANCE"/> <!-- <xsl:message>Shared Bus Idx <xsl:value-of select="$sbs_idx_"/></xsl:message> <xsl:message>Proc inst <xsl:value-of select="$procInst_"/></xsl:message> --> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * BUSCONN/@BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifName_" select="BUSCONN/@BUSINTERFACE"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInst_)]/BUSINTERFACE[(@NAME = $procBifName_)]/@BIF_X"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInst_)]/BUSINTERFACE[(@NAME = $procBifName_)]/@TYPE"/> <xsl:variable name="procshp_hori_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInst_)]/@STACK_HORIZ_INDEX"/> <xsl:variable name="procshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInst_)]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <!-- <xsl:message>Ext Space to West <xsl:value-of select="$extSpaceWest_W_"/></xsl:message> <xsl:message>Ext Space to East <xsl:value-of select="$extSpaceEast_W_"/></xsl:message> <xsl:message>Ext Space to East <xsl:value-of select="$extSpaceEast_W_"/></xsl:message> <xsl:message>Stack horiz <xsl:value-of select="$procshp_hori_idx_"/></xsl:message> <xsl:message>Stack verti <xsl:value-of select="$procshp_vert_idx_"/></xsl:message> <xsl:message>Proc Bif Y <xsl:value-of select="$procBif_Y_"/></xsl:message> --> <xsl:variable name="procshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$procshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$procshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($procshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($procshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="bc_Y_" select="($procshp_Y_ + $procBif_Y_ + ceiling($BIF_H div 2) + $procStack_H_diff_) - ceiling($BLKD_BIFC_H div 2)"/> <!-- <xsl:variable name="bc_x_" select="($laneInSpace_X + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bc_x_" select="0"/> <xsl:message>Test</xsl:message> --> <xsl:variable name="bc_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> <!-- <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_)"/> <xsl:value-of select="($space_W_ - ceiling($BLKD_MOD_W div 2))"/> <xsl:value-of select="$space_W_ + $extSpaceEast_W_"/> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> --> </xsl:when> <xsl:when test="$procBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Place the bus connectijon --> <use x="{$bc_X_}" y="{$bc_Y_}" xlink:href="#{$iBusStd}_busconn_{$procBifType_}"/> <!-- --> <xsl:variable name="vert_line_x_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="vert_line_y1_" select="($procshp_Y_ + $procBif_Y_ + ceiling($BLKD_BIF_H div 2) + $procStack_H_diff_)"/> <xsl:variable name="vert_line_y2_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H) + ceiling($BLKD_BIFC_W div 2))"/> <!-- <xsl:message>Vert line Y1 <xsl:value-of select="$vert_line_y1_"/></xsl:message> <xsl:message>Vert line Y2 <xsl:value-of select="$vert_line_y2_"/></xsl:message> --> <xsl:variable name="v_bus_ul_y_"> <xsl:choose> <xsl:when test="$vert_line_y1_ &gt; $vert_line_y2_"> <xsl:value-of select="$vert_line_y2_"/> </xsl:when> <xsl:when test="$vert_line_y2_ &gt; $vert_line_y1_"> <xsl:value-of select="$vert_line_y1_"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="v_bus_ul_x_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="($vert_line_x_ + $BLKD_MOD_BIF_GAP_H)"/> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="($vert_line_x_ - $BLKD_MOD_BIF_GAP_H)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="v_bus_width_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="v_bus_height_"> <xsl:choose> <xsl:when test="$vert_line_y1_ &gt; $vert_line_y2_"> <xsl:value-of select="($vert_line_y1_ - $vert_line_y2_) - $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="$vert_line_y2_ &gt; $vert_line_y1_"> <xsl:value-of select="($vert_line_y2_ - $vert_line_y1_) - $BLKD_P2P_BUS_W"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="($bc_X_ + $BLKD_BIFC_W - ceiling(($BLKD_BIFC_W - $BLKD_BIFC_Wi) div 2))"/> <!-- <xsl:value-of select="$v_bus_ul_x_"/> --> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="$v_bus_ul_x_"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_"> <xsl:choose> <xsl:when test="$vert_line_y1_ &gt; $vert_line_y2_"> <xsl:value-of select="$vert_line_y2_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> <xsl:when test="$vert_line_y2_ &gt; $vert_line_y1_"> <xsl:value-of select="$vert_line_y1_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="$v_bus_ul_x_ - $h_bus_ul_x_ + $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="($bc_X_ - $v_bus_ul_x_) + ceiling(($BLKD_BIFC_W - $BLKD_BIFC_Wi) div 2) + 1"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- <xsl:if test="(@ORIENTED = 'WEST')"> </xsl:if> <xsl:message>bc_X_ <xsl:value-of select="$bc_X_"/></xsl:message> <xsl:message>v_bus_ul_x <xsl:value-of select="$v_bus_ul_x_"/></xsl:message> <xsl:message>h_bus_width <xsl:value-of select="$h_bus_width_"/></xsl:message> <xsl:message>h_bus_ul_y <xsl:value-of select="$h_bus_ul_y_"/></xsl:message> --> <rect x="{$v_bus_ul_x_}" y="{$v_bus_ul_y_ + 2}" width= "{$v_bus_width_}" height="{$v_bus_height_}" style="stroke:none; fill:{$busColor_}"/> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> </xsl:template> <!-- =========================================================== Handle non Processor Sharedebus connections. =========================================================== --> <xsl:template name="BCLaneSpace_NonProcBifToSharedBus"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:param name="iSpaceSharedBus_Y" select="0"/> <xsl:variable name="sbs_idx_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE= $iBusName)]/@BUS_INDEX"/> <xsl:variable name="sbs_bc_y_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H))"/> <!-- <xsl:variable name="sbs_bc_y_" select="($G_SharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H))"/> --> <xsl:variable name="cmplxInst_" select="BUSCONN/@INSTANCE"/> <xsl:variable name="cmplxBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * BUSCONN/@BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="cmplxBifName_" select="BUSCONN/@BUSINTERFACE"/> <xsl:variable name="cmplxBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $cmplxInst_)]/BUSINTERFACE[(@NAME = $cmplxBifName_)]/@BIF_X"/> <xsl:variable name="cmplxBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $cmplxInst_)]/BUSINTERFACE[(@NAME = $cmplxBifName_)]/@TYPE"/> <xsl:variable name="cmplxshp_hori_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $cmplxInst_)])]/@STACK_HORIZ_INDEX"/> <xsl:variable name="cmplxshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $cmplxInst_)])]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="is_abvSbs_" select="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $cmplxInst_)]]/@IS_ABVSBS)"/> <xsl:variable name="is_blwSbs_" select="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $cmplxInst_)]]/@IS_BLWSBS)"/> <!-- <xsl:message>iStackToEast <xsl:value-of select="$iStackToEast"/></xsl:message> <xsl:message>iStackToWest <xsl:value-of select="$iStackToWest"/></xsl:message> <xsl:message><xsl:value-of select="$cmplxInst_"/> : <xsl:value-of select="$is_blwSbs_"/></xsl:message> <xsl:message><xsl:value-of select="$cmplxInst_"/> : <xsl:value-of select="$is_abvSbs_"/></xsl:message> <xsl:message><xsl:value-of select="$cmplxInst_"/> : <xsl:value-of select="$is_blwSbs_"/></xsl:message> <xsl:message><xsl:value-of select="$cmplxInst_"/> : <xsl:value-of select="$is_abvSbs_"/></xsl:message> <xsl:message>Stack horiz <xsl:value-of select="$cmplxshp_hori_idx_"/></xsl:message> <xsl:message>Stack verti <xsl:value-of select="$cmplxshp_vert_idx_"/></xsl:message> <xsl:message>Proc Bif Y <xsl:value-of select="$procBif_Y_"/></xsl:message> --> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="cmplxshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$cmplxshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$cmplxshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Complex shape Y <xsl:value-of select="$cmplxshp_Y_"/></xsl:message> --> <xsl:variable name="stackToEast_"> <xsl:choose> <xsl:when test="not($iStackToEast = 'NONE')"><xsl:value-of select="$iStackToEast"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="stackToWest_"> <xsl:choose> <xsl:when test=" not($iStackToWest = 'NONE')"><xsl:value-of select="$iStackToWest"/></xsl:when> <xsl:when test="(not($iStackToEast = 'NONE') and not($iStackToEast = '0'))"><xsl:value-of select="($iStackToEast - 1)"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="cmplxStack_H_diff_"> <xsl:choose> <xsl:when test=" (($stackToEast_ = 'NONE') or ($stackToWest_ = 'NONE'))">0</xsl:when> <xsl:when test="not(($stackToEast_ = 'NONE') or ($stackToWest_ = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$stackToWest_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$stackToEast_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($cmplxshp_hori_idx_ = $stackToEast_) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($cmplxshp_hori_idx_ = $stackToWest_) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="bc_Y_" select="($cmplxshp_Y_ + $cmplxBif_Y_ + ceiling($BIF_H div 2) + $cmplxStack_H_diff_) - ceiling($BLKD_BIFC_H div 2)"/> <!-- <xsl:message>Sstack H Diff <xsl:value-of select="$cmplxStack_H_diff_"/></xsl:message> <xsl:message>BC Y <xsl:value-of select="$bc_Y_"/></xsl:message> <xsl:variable name="bc_x_" select="($laneInSpace_X + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bc_x_" select="0"/> --> <xsl:variable name="bc_X_"> <xsl:choose> <xsl:when test="$cmplxBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$cmplxBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <use x="{$bc_X_}" y="{$bc_Y_}" xlink:href="#{$iBusStd}_busconn_{$cmplxBifType_}"/> <xsl:variable name="vert_line_x_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="vert_line_y1_" select="($cmplxshp_Y_ + $cmplxBif_Y_ + ceiling($BLKD_BIF_H div 2) + $cmplxStack_H_diff_)"/> <xsl:variable name="vert_line_y2_" select="($iSpaceSharedBus_Y + ($sbs_idx_ * $BLKD_SBS_LANE_H) + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="v_bus_ul_y_"> <xsl:choose> <xsl:when test="$vert_line_y1_ &gt; $vert_line_y2_"> <xsl:value-of select="$vert_line_y2_"/> </xsl:when> <xsl:when test="$vert_line_y2_ &gt; $vert_line_y1_"> <xsl:value-of select="$vert_line_y1_"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="v_bus_ul_x_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="($vert_line_x_ + $BLKD_MOD_BIF_GAP_H)"/> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="($vert_line_x_ - $BLKD_MOD_BIF_GAP_H)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="v_bus_width_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="v_bus_height_"> <xsl:choose> <xsl:when test="$vert_line_y1_ &gt; $vert_line_y2_"> <xsl:value-of select="($vert_line_y1_ - $vert_line_y2_) - $BLKD_P2P_BUS_W + 8"/> </xsl:when> <xsl:when test="$vert_line_y2_ &gt; $vert_line_y1_"> <xsl:value-of select="($vert_line_y2_ - $vert_line_y1_) - $BLKD_P2P_BUS_W + 8"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="($bc_X_ + $BLKD_BIFC_W - ceiling(($BLKD_BIFC_W - $BLKD_BIFC_Wi) div 2))"/> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="$v_bus_ul_x_"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_"> <xsl:choose> <xsl:when test="($is_blwSbs_ = 'TRUE') and ($vert_line_y1_ &gt; $vert_line_y2_)"> <xsl:value-of select="$vert_line_y1_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> <xsl:when test="($is_blwSbs_ = 'TRUE') and ($vert_line_y2_ &gt; $vert_line_y1_)"> <xsl:value-of select="$vert_line_y2_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> <xsl:when test="($is_abvSbs_ = 'TRUE') and ($vert_line_y1_ &gt; $vert_line_y2_)"> <xsl:value-of select="$vert_line_y2_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> <xsl:when test="($is_abvSbs_ = 'TRUE') and ($vert_line_y2_ &gt; $vert_line_y1_)"> <xsl:value-of select="$vert_line_y1_ - ceiling($BLKD_P2P_BUS_W div 2)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <xsl:choose> <xsl:when test="@ORIENTED='WEST'"> <xsl:value-of select="$v_bus_ul_x_ - $h_bus_ul_x_ + $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="@ORIENTED='EAST'"> <xsl:value-of select="($bc_X_ - $v_bus_ul_x_) + ceiling(($BLKD_BIFC_W - $BLKD_BIFC_Wi) div 2) + 1"/> </xsl:when> </xsl:choose> </xsl:variable> <rect x="{$v_bus_ul_x_}" y="{$v_bus_ul_y_ - 2}" width= "{$v_bus_width_}" height="{$v_bus_height_}" style="stroke:none; fill:{$busColor_}"/> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> </xsl:template> <!-- =========================================================== Handle connections from processors to Memory UNITs =========================================================== --> <xsl:template name="BCLaneSpace_ProcBifToMemoryUnit"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:variable name="bcInSpace_X_" select="$iLaneInSpace_X"/> <xsl:variable name="procInstance_" select="BUSCONN[@IS_PROCCONN]/@INSTANCE"/> <xsl:variable name="mem_procshp_hori_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@STACK_HORIZ_INDEX"/> <xsl:variable name="mem_procshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="mem_procshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$mem_procshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$mem_procshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="cmplxStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($mem_procshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($mem_procshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="mem_procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($mem_procshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($mem_procshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <!-- Store the conns in a variable --> <xsl:variable name="memConn_heights_"> <xsl:for-each select="BUSCONN"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:choose> <xsl:when test="@IS_PROCCONN and @BIF_Y"> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="procBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcProc_Y_" select="($mem_procshp_Y_ + $procBif_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $mem_procStack_H_diff_)"/> <xsl:variable name="bcProc_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$procBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <MEMCONN X="{$bcProc_X_}" Y="{$bcProc_Y_}" BUSNAME="{$procBusName_}" BUSSTD="{$iBusStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}"/> </xsl:when> <xsl:otherwise> <xsl:variable name="memcInstance_" select="@INSTANCE"/> <xsl:variable name="memcshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $memcInstance_)]]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="memcBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $memcInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="memcBif_Y_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $memcInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_Y"/> <xsl:variable name="memshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$mem_procshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$memcshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="memcMOD_W_" select="(($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $memcInstance_)]]/@MODS_W) * $BLKD_MOD_W)"/> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="memcConn_Y_"> <xsl:choose> <xsl:when test="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $memcInstance_)]]/@MODS_H = 1)"> <xsl:value-of select="($memshp_Y_ + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V) + ($memcBif_Y_ * ($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V)) + ceiling($BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $cmplxStack_H_diff_)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="($memshp_Y_ + $BLKD_MOD_H + $BLKD_MOD_LANE_H + ($memcBif_Y_ * ($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V)) + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $cmplxStack_H_diff_)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="memcConn_X_"> <xsl:choose> <xsl:when test="$memcBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($memcMOD_W_ div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$memcBifSide_ = '1'"> <xsl:value-of select="ceiling($memcMOD_W_ div 2)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="memcBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $memcInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="memcBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $memcInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <MEMCONN X="{$memcConn_X_}" Y="{$memcConn_Y_}" BUSNAME="{$memcBusName_}" BUSSTD="{$iBusStd}" TYPE="{$memcBifType_}" BIFSIDE="{$memcBifSide_}"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable> <!-- Draw the busconnection and horizontal lines.--> <xsl:for-each select="exsl:node-set($memConn_heights_)/MEMCONN"> <xsl:variable name="bus_x_" select="($bcInSpace_X_ + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bus_y_" select="@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="adjusted_X_"> <xsl:choose> <xsl:when test="((@X &lt; ($bus_x_ + $BLKD_BUS_ARROW_W)) and (@BIFSIDE ='0'))"> <xsl:value-of select="(@X + $BLKD_P2P_BUS_W)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@X"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_x_dx_"> <xsl:choose> <xsl:when test="((@X &lt; ($bus_x_ + $BLKD_BUS_ARROW_W)) and (@BIFSIDE='0'))"> <xsl:value-of select="$BLKD_P2P_BUS_W"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="($bus_x_ - $h_bus_ul_x_dx_)"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="(@X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_" select="$bus_y_"/> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="($adjusted_X_ - $bus_x_ - $BLKD_BUS_ARROW_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="$bus_x_ - $h_bus_ul_x_"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- Place the bus connection --> <use x="{@X}" y="{@Y}" xlink:href="#{@BUSSTD}_busconn_{@TYPE}"/> <!-- Draw the arrow --> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowEast"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowWest"/> </xsl:when> </xsl:choose> <!-- Draw the horizontal part of the bus --> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> </xsl:for-each> <xsl:variable name="busTop_" select="math:min(exsl:node-set($memConn_heights_)/MEMCONN/@Y)"/> <xsl:variable name="busBot_" select="math:max(exsl:node-set($memConn_heights_)/MEMCONN/@Y)"/> <xsl:variable name="busName_" select="exsl:node-set($memConn_heights_)/MEMCONN/@BUSNAME"/> <xsl:variable name="busSide_" select="exsl:node-set($memConn_heights_)/MEMCONN/@BIFSIDE"/> <xsl:variable name="leftmost_x_" select="math:min(exsl:node-set($memConn_heights_)/MEMCONN/@X)"/> <!-- Hack to fix CR473515 --> <xsl:variable name="v_bus_x_dx_"> <xsl:choose> <xsl:when test="(($busSide_ = '0') and (($leftmost_x_ - ($bcInSpace_X_ + $BLKD_P2P_BUS_W)) &lt;= $BLKD_P2P_BUS_W))">-4</xsl:when> <xsl:otherwise><xsl:value-of select="$BLKD_P2P_BUS_W"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="v_bus_y_" select="$busTop_ + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="v_bus_x_"> <xsl:choose> <xsl:when test="$busSide_ ='0'"> <xsl:value-of select="($bcInSpace_X_ + $v_bus_x_dx_)"/> </xsl:when> <xsl:when test="$busSide_ ='1'"> <xsl:value-of select="($bcInSpace_X_ + $BLKD_P2P_BUS_W)"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- Draw the vertical part of the bus --> <rect x="{$v_bus_x_}" y="{$v_bus_y_}" width= "{$BLKD_P2P_BUS_W}" height="{($busBot_ - $busTop_) + $BLKD_P2P_BUS_W}" style="stroke:none; fill:{$busColor_}"/> <!-- Hack to fix CR473515 --> <xsl:if test="($busSide_ ='0')"> <rect x="{$v_bus_x_}" y="{$v_bus_y_ + ($busBot_ - $busTop_)}" width= "{$BLKD_P2P_BUS_W * 2}" height="{$BLKD_P2P_BUS_W}" style="stroke:none; fill:{$busColor_}"/> </xsl:if> <!-- <xsl:message>v_bus_x <xsl:value-of select="$v_bus_x_"/></xsl:message> --> <!-- Place the bus label.--> <!-- <text class="p2pbuslabel" x="{$bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6}" y="{$busTop_ + ($BLKD_BUS_ARROW_H * 3)}"> <xsl:value-of select="$busName_"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6)"/> <xsl:with-param name="iY" select="($busTop_ + ($BLKD_BUS_ARROW_H * 3))"/> <xsl:with-param name="iText" select="$busName_"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> </xsl:template> <!-- =========================================================== Handle generic Point to Point connections =========================================================== --> <xsl:template name="BCLaneSpace_PointToPoint"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busColor_lt_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="bcInSpace_X_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2) - ceiling($BLKD_BUS_ARROW_W div 2))"/> <xsl:variable name="p2pInstance_" select="BUSCONN[(@BIF_Y)]/@INSTANCE"/> <xsl:variable name="p2pshp_hori_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]/@STACK_HORIZ_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $p2pInstance_)])]/@STACK_HORIZ_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="p2pshp_vert_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]/@SHAPE_VERTI_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $p2pInstance_)])]/@SHAPE_VERTI_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:variable name="p2pshp_hori_idx_" select="/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@STACK_HORIZ_INDEX"/> <xsl:variable name="p2pshp_vert_idx_" select="/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@SHAPE_VERTI_INDEX"/> --> <xsl:variable name="p2pshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$p2pshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$p2pshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="cmplxStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <!-- Store the conns in a variable --> <xsl:variable name="p2pConn_heights_"> <xsl:for-each select="BUSCONN"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:choose> <xsl:when test="@IS_PROCCONN and @BIF_Y"> <!-- <xsl:message>Proc <xsl:value-of select="$procInstance_"/></xsl:message> --> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="procBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcProc_Y_" select="($p2pshp_Y_ + $procBif_Y_ + ceiling($BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $procStack_H_diff_)"/> <xsl:variable name="bcProc_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$procBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <P2PCONN X="{$bcProc_X_}" Y="{$bcProc_Y_}" BUSNAME= "{$procBusName_}" BUSSTD="{$iBusStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}"/> <!-- <xsl:message>bcProc_X_ <xsl:value-of select="$bcProc_X_"/></xsl:message> <xsl:message>bcProc_Y_ <xsl:value-of select="$bcProc_Y_"/></xsl:message> <P2PCONN X="{$bcInSpace_X_}" Y="{$bcProc_Y_}" BUSSTD="{$busStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}" STACK_ID=""/> --> </xsl:when> <xsl:otherwise> <xsl:variable name="modInstance_" select="@INSTANCE"/> <xsl:variable name="modshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $modInstance_)]]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="modBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="modBif_Y_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_Y"/> <xsl:variable name="modBc_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * $modBif_Y_) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <!-- <xsl:message>Memory Instance <xsl:value-of select="$procInstance_"/></xsl:message> --> <xsl:variable name="modshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$p2pshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$modshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="modBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="modBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="bcMod_Y_" select="($modshp_Y_ + $modBc_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $cmplxStack_H_diff_)"/> <xsl:variable name="bcMod_X_"> <xsl:choose> <xsl:when test="$modBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$modBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Bc Bif Y <xsl:value-of select="$modBif_Y_"/></xsl:message> <xsl:message>Bc Mod Y <xsl:value-of select="$modBc_Y_"/></xsl:message> <xsl:message>Bc Mod X <xsl:value-of select="$bcMod_X_"/></xsl:message> <P2PCONN X="{$bcInSpace_X_}" Y="{$bcMod_Y_}" BUSSTD="{$busStd}" TYPE="{$modBifType_}" BIFSIDE="{$modBifSide_}"/> --> <P2PCONN X="{$bcMod_X_}" Y="{$bcMod_Y_}" BUSNAME="{$modBusName_}" BUSSTD="{$iBusStd}" TYPE="{$modBifType_}" BIFSIDE="{$modBifSide_}"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable> <xsl:variable name="busTop_" select="math:min(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="busBot_" select="math:max(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="v_bus_y_" select="$busTop_ + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="busName_" select="exsl:node-set($p2pConn_heights_)/P2PCONN/@BUSNAME"/> <xsl:variable name="busStd_" select="exsl:node-set($p2pConn_heights_)/P2PCONN/@BUSSTD"/> <!-- --> <!-- Draw the vertical part of the bus --> <xsl:if test="$busStd_ = 'PLBV46_P2P'"> <rect x="{$bcInSpace_X_ + $BLKD_P2P_BUS_W}" y="{$v_bus_y_}" width= "{$BLKD_P2P_BUS_W}" height="{($busBot_ - $busTop_) + $BLKD_P2P_BUS_W}" style="stroke:{$COL_WHITE};stroke-width:1.5;fill:{$busColor_}"/> </xsl:if> <xsl:if test="not($busStd_ = 'PLBV46_P2P')"> <rect x="{$bcInSpace_X_ + $BLKD_P2P_BUS_W}" y="{$v_bus_y_}" width= "{$BLKD_P2P_BUS_W}" height="{($busBot_ - $busTop_) + $BLKD_P2P_BUS_W}" style="stroke:none;fill:{$busColor_}"/> </xsl:if> <!-- --> <!-- style="stroke:{$busColor_lt_};stroke-width:1;stroke-opacity:0.9;fill-opacity:2.0;fill:{$busColor_}"/> --> <!-- Place the bus label.--> <!-- <text class="p2pbuslabel" x="{$bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6}" y="{$busTop_ + ($BLKD_BUS_ARROW_H * 3)}"> <xsl:value-of select="$busName_"/> </text> --> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6)"/> <xsl:with-param name="iY" select="($busTop_ + ($BLKD_BUS_ARROW_H * 3))"/> <xsl:with-param name="iText" select="$busName_"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> <!-- Draw the busconnection and horizontal lines.--> <xsl:for-each select="exsl:node-set($p2pConn_heights_)/P2PCONN"> <xsl:variable name="bus_x_" select="($bcInSpace_X_ + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bus_y_" select="@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="$bus_x_"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="(@X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W) - 1"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_" select="$bus_y_"/> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <!-- <xsl:message>BIFSIDE <xsl:value-of select="@BIFSIDE"/></xsl:message> <xsl:message>BUSSTD <xsl:value-of select="@BUSSTD"/></xsl:message> <xsl:message>TYPE <xsl:value-of select="@TYPE"/></xsl:message> --> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="(@X - $bus_x_ - $BLKD_BUS_ARROW_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="$bus_x_ - $h_bus_ul_x_ + 1"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- Draw Bus connection--> <use x="{@X}" y="{@Y}" xlink:href="#{@BUSSTD}_busconn_{@TYPE}"/> <!-- Draw the arrow --> <xsl:choose> <xsl:when test="((@BIFSIDE='0') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowEast"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowWest"/> </xsl:when> <xsl:when test="((@BIFSIDE='0') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> </xsl:choose> <!-- Draw the horizontal part of the bus --> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> </xsl:for-each> <!-- <xsl:variable name="busTop_" select="math:min(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="busBot_" select="math:max(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="v_bus_y_" select="$busTop_ + ceiling($BLKD_BIFC_H div 2) - ceiling($P2P_BUS_W div 2)"/> <xsl:variable name="busName_" select="exsl:node-set($p2pConn_heights_)/P2PCONN/@BUSNAME"/> --> <!-- Draw the vertical part of the bus --> <!-- <rect x="{$bcInSpace_X_ + $P2P_BUS_W}" y="{$v_bus_y_}" width= "{$P2P_BUS_W}" height="{($busBot_ - $busTop_) + $P2P_BUS_W}" style="stroke:{$COL_WHITE};stroke-width:1;stroke-opacity:0.9;fill-opacity:2.0;fill:{$busColor_}"/> --> <!-- style="stroke:{$busColor_lt_};stroke-width:1;stroke-opacity:0.9;fill-opacity:2.0;fill:{$busColor_}"/> --> <!-- Place the bus label.--> <!-- <text class="p2pbuslabel" x="{$bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6}" y="{$busTop_ + ($BLKD_BUS_ARROW_H * 3)}"> <xsl:value-of select="$busName_"/> </text> --> </xsl:template> <!-- =========================================================== Handle MultiStack Point to Point connections =========================================================== --> <xsl:template name="BCLaneSpace_MultiStack_PointToPoint"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <!-- <xsl:message>Stack To East <xsl:value-of select="$iStackToEast"/></xsl:message> <xsl:message>Stack to West <xsl:value-of select="$iStackToWest"/></xsl:message> <xsl:message>Stack to East Width <xsl:value-of select="$iStackToEast_W"/></xsl:message> <xsl:message>Stack to West Width <xsl:value-of select="$iStackToWest_W"/></xsl:message> <xsl:message>Lane in space X <xsl:value-of select="$iLaneInSpace_X"/></xsl:message> <xsl:message>Shared Bus Y <xsl:value-of select="$iSpaceSharedBus_Y"/></xsl:message> --> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <!-- Store the connections in a variable --> <xsl:variable name="bcInSpace_X_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2) - ceiling($BLKD_BUS_ARROW_W div 2))"/> <xsl:variable name="multiConns_"> <xsl:for-each select="BUSCONN"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:variable name="multiInstance_" select="@INSTANCE"/> <xsl:variable name="mulshp_hori_idx_"> <xsl:choose> <xsl:when test="@IS_PROCCONN"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $multiInstance_)]/@STACK_HORIZ_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $multiInstance_)])]/@STACK_HORIZ_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="mulshp_vert_idx_"> <xsl:choose> <xsl:when test="@IS_PROCCONN"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $multiInstance_)]/@SHAPE_VERTI_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $multiInstance_)])]/@SHAPE_VERTI_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Shape Horiz <xsl:value-of select="$mulshp_hori_idx_"/></xsl:message> <xsl:message>Shape Verti <xsl:value-of select="$mulshp_vert_idx_"/></xsl:message> --> <xsl:variable name="mulshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$mulshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$mulshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="cmplxStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($mulshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($mulshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($mulshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($mulshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@IS_PROCCONN and @BIF_Y"> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="procBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcProc_Y_" select="($mulshp_Y_ + $procBif_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $procStack_H_diff_)"/> <xsl:variable name="bcProc_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> <!-- <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - ceiling($BLKD_MOD_W div 2))"/> --> </xsl:when> <xsl:when test="$procBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <MULTICONN X="{$bcProc_X_}" Y="{$bcProc_Y_}" BUSNAME="{$procBusName_}" BUSSTD="{$iBusStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}" IS_PROC="TRUE"/> </xsl:when> <xsl:otherwise> <xsl:variable name="modType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/@MODCLASS"/> <xsl:variable name="modBif_Y_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_Y"/> <xsl:variable name="modBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="modBusStd_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSSTD"/> <xsl:variable name="memcMOD_W_" select="(($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $multiInstance_)]]/@MODS_W) * $BLKD_MOD_W)"/> <xsl:variable name="modBc_Y_"> <xsl:choose> <xsl:when test="($modType_ = 'MEMORY_CNTLR') and (($modBusStd_ = 'LMB') or ($modBusStd_= 'OCM'))"> <xsl:value-of select="$BLKD_MOD_H + $BLKD_MOD_LANE_H + ((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * $modBif_Y_))"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * $modBif_Y_) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message><xsl:value-of select="$multiInstance_"/>.<xsl:value-of select="$bifName_"/>:Y = <xsl:value-of select="$modBif_Y_"/></xsl:message> <xsl:message><xsl:value-of select="$multiInstance_"/>.<xsl:value-of select="$bifName_"/>:BcY = <xsl:value-of select="$modBc_Y_"/></xsl:message> <xsl:message><xsl:value-of select="$multiInstance_"/>.<xsl:value-of select="$bifName_"/>:TcY = <xsl:value-of select="($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V)"/></xsl:message> --> <xsl:variable name="modBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="modBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $multiInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <!-- <xsl:variable name="bcMod_Y_" select="($mulshp_Y_ + $modBc_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2))"/> --> <xsl:variable name="bcMod_Y_" select="($mulshp_Y_ + $modBc_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $cmplxStack_H_diff_)"/> <xsl:variable name="bcMod_X_"> <xsl:choose> <xsl:when test="$modBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($memcMOD_W_ div 2) + $BLKD_BIFC_W))"/> <!-- --> </xsl:when> <xsl:when test="$modBifSide_ = '1'"> <xsl:value-of select="ceiling($memcMOD_W_ div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <MULTICONN X="{$bcMod_X_}" Y="{$bcMod_Y_}" BUSNAME="{$modBusName_}" BUSSTD="{$iBusStd}" TYPE="{$modBifType_}" BIFSIDE="{$modBifSide_}" IS_MOD="TRUE"/> <!-- <MULTICONN X="{$bcInSpace_X_}" Y="{$bcMod_Y_}" BUSSTD="{$busStd}" TYPE="{$modBifType_}" BIFSIDE="{$modBifSide_}"/> --> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable> <!-- Draw the busconnection and horizontal lines.--> <xsl:for-each select="exsl:node-set($multiConns_)/MULTICONN"> <xsl:variable name="bus_x_" select="($bcInSpace_X_ + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bus_y_" select="@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <!-- <xsl:value-of select="$bus_x_"/> --> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@BIFSIDE='0' and (@IS_PROC)"> <xsl:value-of select="$bus_x_ - $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="@BIFSIDE='0' and (@IS_MOD)"> <xsl:value-of select="$bus_x_ - $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="@BIFSIDE='1' and (@IS_PROC)"> <xsl:value-of select="(@X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='1' and (@IS_MOD)"> <xsl:value-of select="(@X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W)"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_" select="$bus_y_"/> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <!-- <xsl:message>BUSSTD <xsl:value-of select="@BUSSTD"/></xsl:message> <xsl:message>BIFSIDE <xsl:value-of select="@BIFSIDE"/></xsl:message> <xsl:message>TYPE <xsl:value-of select="@TYPE"/></xsl:message> --> <xsl:choose> <xsl:when test="@BIFSIDE='0' and (@IS_PROC)"> <xsl:value-of select="(@X - $bus_x_ - $BLKD_P2P_BUS_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='0' and (@IS_MOD)"> <xsl:value-of select="(@X - $bus_x_ - $BLKD_BUS_ARROW_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='1' and (@IS_PROC)"> <xsl:value-of select="$bus_x_ - $h_bus_ul_x_ - $BLKD_BUS_ARROW_W - $BLKD_P2P_BUS_W"/> </xsl:when> <xsl:when test="@BIFSIDE='1' and (@IS_MOD)"> <xsl:value-of select="$BLKD_P2P_BUS_W + $BLKD_BUS_ARROW_W "/> <!-- <xsl:value-of select="$bus_x_ - $h_bus_ul_x_"/> --> </xsl:when> </xsl:choose> </xsl:variable> <!-- <xsl:message>h_bus_x_ <xsl:value-of select="$h_bus_ul_x_"/></xsl:message> <xsl:message>BIFSIDE <xsl:value-of select="@BIFSIDE"/></xsl:message> <xsl:message>h_bus_width_ <xsl:value-of select="$h_bus_width_"/></xsl:message> --> <!-- Draw the horizontal part of the bus --> <xsl:if test="($h_bus_width_ &gt; 0)"> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> </xsl:if> <!-- Draw the arrow --> <xsl:choose> <xsl:when test="((@BIFSIDE='0') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowEast"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowWest"/> </xsl:when> <xsl:when test="((@BIFSIDE='0') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> </xsl:choose> <use x="{@X}" y="{@Y}" xlink:href="#{@BUSSTD}_busconn_{@TYPE}"/> </xsl:for-each> <xsl:variable name="busTop_" select="math:min(exsl:node-set($multiConns_)/MULTICONN/@Y)"/> <xsl:variable name="busBot_" select="math:max(exsl:node-set($multiConns_)/MULTICONN/@Y)"/> <xsl:variable name="v_bus_y_" select="$busTop_ + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="busName_" select="exsl:node-set($multiConns_)/MULTICONN/@BUSNAME"/> <!-- --> <!-- Draw the vertical part of the bus --> <rect x="{$bcInSpace_X_ - $BLKD_P2P_BUS_W}" y="{$v_bus_y_}" width= "{$BLKD_P2P_BUS_W}" height="{($busBot_ - $busTop_) + $BLKD_P2P_BUS_W}" style="stroke:none; fill:{$busColor_}"/> <!-- <xsl:message>v_bus_x_ <xsl:value-of select="($bcInSpace_X_ + $BLKD_P2P_BUS_W)"/></xsl:message> --> <!-- Place the bus label.--> <xsl:call-template name="F_WriteText"> <xsl:with-param name="iX" select="($bcInSpace_X_ + $BLKD_BUS_ARROW_W + ceiling($BLKD_BUS_ARROW_W div 2) + ceiling($BLKD_BUS_ARROW_W div 4) + 6)"/> <xsl:with-param name="iY" select="($busTop_ + ($BLKD_BUS_ARROW_H * 3))"/> <xsl:with-param name="iText" select="$busName_"/> <xsl:with-param name="iClass" select="'p2pbus_label'"/> </xsl:call-template> </xsl:template> <!-- =========================================================== Handle Processor to processor connections =========================================================== --> <xsl:template name="BCLaneSpace_ProcToProc"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="pr2pr_StackToWest_" select="math:min(BUSCONN/@STACK_HORIZ_INDEX)"/> <xsl:variable name="pr2pr_StackToEast_" select="math:max(BUSCONN/@STACK_HORIZ_INDEX)"/> <xsl:variable name="proc2procConn_heights_"> <xsl:for-each select="BUSCONN"> <xsl:variable name="procInstance_" select="@INSTANCE"/> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:variable name="procshp_hori_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@STACK_HORIZ_INDEX"/> <xsl:variable name="procshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $procInstance_)]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="procshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$procshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$procshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($pr2pr_StackToEast_ = 'NONE') or ($pr2pr_StackToWest_ = 'NONE'))">0</xsl:when> <xsl:when test="not(($pr2pr_StackToEast_ = 'NONE') or ($pr2pr_StackToWest_ = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$pr2pr_StackToWest_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$pr2pr_StackToEast_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($procshp_hori_idx_ = $pr2pr_StackToEast_) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($procshp_hori_idx_ = $pr2pr_StackToWest_) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <!-- Store the conns in a variable --> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $procInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcInSpace_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '1'"><xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/></xsl:when> <xsl:when test="$procBifSide_ = '0'"><xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - ceiling($BLKD_MOD_W div 2) - $BLKD_BIFC_W)"/></xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="bcProc_Y_" select="($procshp_Y_ + $procBif_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $procStack_H_diff_)"/> <!-- <xsl:message>Conn X <xsl:value-of select="$bcInSpace_X_"/></xsl:message> <xsl:message>Conn Y <xsl:value-of select="$bcProc_Y_"/></xsl:message> --> <PR2PRCONN X="{$bcInSpace_X_}" Y="{$bcProc_Y_}" BUSSTD="{$iBusStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}" SHAPE_ID="{$procshp_hori_idx_}"/> </xsl:for-each> </xsl:variable> <xsl:variable name="pr2prLeft_" select="math:min(exsl:node-set($proc2procConn_heights_)/PR2PRCONN/@SHAPE_ID)"/> <xsl:variable name="pr2prRght_" select="math:max(exsl:node-set($proc2procConn_heights_)/PR2PRCONN/@SHAPE_ID)"/> <xsl:variable name="pr2pr_stack_Left_X_"> <xsl:call-template name="F_Calc_Stack_X"> <xsl:with-param name="iStackIdx" select="$pr2prLeft_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="pr2pr_stack_Rght_X_"> <xsl:call-template name="F_Calc_Stack_X"> <xsl:with-param name="iStackIdx" select="$pr2prRght_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Left stack X <xsl:value-of select="$pr2pr_stack_Left_X_"/></xsl:message> <xsl:message>Rght stack X <xsl:value-of select="$pr2pr_stack_Rght_X_"/></xsl:message> --> <xsl:variable name="pr2pr_space_W_" select="($pr2pr_stack_Rght_X_ - $pr2pr_stack_Left_X_)"/> <xsl:variable name="pr2pr_extStackEast_W_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$pr2prRght_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="pr2pr_extStackWest_W_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$pr2prLeft_"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>Space W <xsl:value-of select="$pr2pr_space_W_"/></xsl:message> <xsl:message>Rght stack <xsl:value-of select="$pr2pr_extStackEast_W_"/></xsl:message> <xsl:message>Left stack <xsl:value-of select="$pr2pr_extStackWest_W_"/></xsl:message> --> <xsl:variable name="connLeft_X_" select="ceiling($BLKD_MOD_W div 2)"/> <xsl:variable name="connRght_X_" select="($pr2pr_space_W_ - ceiling($pr2pr_extStackWest_W_ div 2) + ceiling($pr2pr_extStackEast_W_ div 2) - ceiling($BLKD_MOD_W div 2) - $BLKD_BIFC_W)"/> <!-- Draw the busconnections .--> <xsl:for-each select="exsl:node-set($proc2procConn_heights_)/PR2PRCONN"> <xsl:variable name="conn_X_"> <xsl:choose> <xsl:when test="@BIFSIDE = '1'"><xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/></xsl:when> <xsl:when test="@BIFSIDE = '0'"><xsl:value-of select="($pr2pr_space_W_ - ceiling($pr2pr_extStackWest_W_ div 2) + ceiling($pr2pr_extStackEast_W_ div 2) - ceiling($BLKD_MOD_W div 2) - $BLKD_BIFC_W)"/></xsl:when> <!-- <xsl:when test="@BIFSIDE = '0'"><xsl:value-of select="($pr2pr_space_W_ + $pr2pr_extStackWest_W_ + $pr2pr_extStackEast_W_ - ceiling($BLKD_MOD_W div 2) - $BLKD_BIFC_W)"/></xsl:when> --> </xsl:choose> </xsl:variable> <use x="{$conn_X_}" y="{@Y}" xlink:href="#{@BUSSTD}_busconn_{@TYPE}"/> </xsl:for-each> <xsl:variable name="bc_Y_" select="math:min(exsl:node-set($proc2procConn_heights_)/PR2PRCONN/@Y)"/> <xsl:variable name="bcLeft_" select="math:min(exsl:node-set($proc2procConn_heights_)/PR2PRCONN/@X)"/> <xsl:variable name="bcRght_" select="math:max(exsl:node-set($proc2procConn_heights_)/PR2PRCONN/@X)"/> <xsl:variable name="leftType_" select="(exsl:node-set($proc2procConn_heights_)/PR2PRCONN[(@X = $bcLeft_)]/@TYPE)"/> <xsl:variable name="rghtType_" select="(exsl:node-set($proc2procConn_heights_)/PR2PRCONN[(@X = $bcRght_)]/@TYPE)"/> <xsl:call-template name="Draw_Proc2ProcBus"> <xsl:with-param name="iBc_Y" select="$bc_Y_"/> <xsl:with-param name="iBusStd" select="$iBusStd"/> <xsl:with-param name="iBusName" select="$iBusName"/> <xsl:with-param name="iLeftType" select="$leftType_"/> <xsl:with-param name="iRghtType" select="$rghtType_"/> <xsl:with-param name="iBcLeft_X" select="$connLeft_X_ + $BLKD_BIFC_W"/> <xsl:with-param name="iBcRght_X" select="$connRght_X_"/> </xsl:call-template> </xsl:template> <!-- =========================================================== Handle connections to the MPMC =========================================================== --> <xsl:template name="BCLaneSpace_ToStandAloneMPMC"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="busColor_lt_"> <xsl:call-template name="F_BusStd2RGB_LT"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="bcInSpace_X_" select="($iLaneInSpace_X + ceiling($BLKD_BIFC_W div 2) - ceiling($BLKD_BUS_ARROW_W div 2))"/> <xsl:variable name="p2pInstance_" select="BUSCONN[(@BIF_Y)]/@INSTANCE"/> <xsl:variable name="p2pshp_hori_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]/@STACK_HORIZ_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $p2pInstance_)])]/@STACK_HORIZ_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="p2pshp_vert_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $p2pInstance_)]/@SHAPE_VERTI_INDEX"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $p2pInstance_)])]/@SHAPE_VERTI_INDEX"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="p2pshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$p2pshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$p2pshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="cmplxStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="procStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <!-- <xsl:message>stack to west H <xsl:value-of select="$stackToWest_AbvSbs_H_"/></xsl:message> <xsl:message>stack to east H <xsl:value-of select="$stackToEast_AbvSbs_H_"/></xsl:message> --> <xsl:choose> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($p2pshp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <!-- Store the conns in a variable --> <xsl:variable name="p2pConn_heights_"> <xsl:for-each select="BUSCONN"> <xsl:variable name="bifName_" select="@BUSINTERFACE"/> <xsl:choose> <xsl:when test="@IS_PROCCONN and @BIF_Y"> <!-- <xsl:message>Proc <xsl:value-of select="$procInstance_"/></xsl:message> --> <xsl:variable name="procBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * @BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="procBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="procBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="procBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $p2pInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcProc_Y_" select="($p2pshp_Y_ + $procBif_Y_ + ceiling($BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $procStack_H_diff_)"/> <xsl:variable name="bcProc_X_"> <xsl:choose> <xsl:when test="$procBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$procBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <P2PCONN X="{$bcProc_X_}" Y="{$bcProc_Y_}" BUSNAME= "{$procBusName_}" BUSSTD="{$iBusStd}" TYPE="{$procBifType_}" BIFSIDE="{$procBifSide_}"/> </xsl:when> <xsl:otherwise> <xsl:variable name="modInstance_" select="@INSTANCE"/> <xsl:variable name="modshp_vert_idx_" select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[MODULE[(@INSTANCE = $modInstance_)]]/@SHAPE_VERTI_INDEX"/> <xsl:variable name="modBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="modBif_Y_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_Y"/> <xsl:variable name="modBc_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * $modBif_Y_) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <!-- <xsl:message>Memory Instance <xsl:value-of select="$procInstance_"/></xsl:message> --> <xsl:variable name="modshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$p2pshp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$modshp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="modBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="modBusName_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $modInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSNAME"/> <xsl:variable name="bcMod_Y_" select="($modshp_Y_ + $modBc_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $cmplxStack_H_diff_)"/> <xsl:variable name="bcMod_X_"> <xsl:choose> <xsl:when test="$modBifSide_ = '0'"> <xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - (ceiling($BLKD_MOD_W div 2) + $BLKD_BIFC_W))"/> </xsl:when> <xsl:when test="$modBifSide_ = '1'"> <xsl:value-of select="ceiling($BLKD_MOD_W div 2)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <P2PCONN X="{$bcMod_X_}" Y="{$bcMod_Y_}" BUSNAME="{$modBusName_}" BUSSTD="{$iBusStd}" TYPE="{$modBifType_}" BIFSIDE="{$modBifSide_}"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable> <xsl:variable name="busTop_" select="math:min(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="busBot_" select="math:max(exsl:node-set($p2pConn_heights_)/P2PCONN/@Y)"/> <xsl:variable name="v_bus_y_" select="$busTop_ + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="busName_" select="exsl:node-set($p2pConn_heights_)/P2PCONN/@BUSNAME"/> <xsl:variable name="busStd_" select="exsl:node-set($p2pConn_heights_)/P2PCONN/@BUSSTD"/> <!-- Draw the vertical part of the bus --> <!-- Place the bus label.--> <!-- Draw the busconnection and horizontal lines.--> <xsl:for-each select="exsl:node-set($p2pConn_heights_)/P2PCONN"> <xsl:variable name="bus_x_" select="($bcInSpace_X_ + ceiling($BLKD_BIFC_W div 2))"/> <xsl:variable name="bus_y_" select="@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_P2P_BUS_W div 2)"/> <xsl:variable name="h_bus_ul_x_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="$bus_x_"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="(@X + $BLKD_BIFC_W + $BLKD_BUS_ARROW_W) - 1"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="h_bus_ul_y_" select="$bus_y_"/> <xsl:variable name="h_bus_height_" select="$BLKD_P2P_BUS_W"/> <xsl:variable name="h_bus_width_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"> <xsl:value-of select="(@X - $bus_x_ - $BLKD_BUS_ARROW_W)"/> </xsl:when> <xsl:when test="@BIFSIDE='1'"> <xsl:value-of select="$bus_x_ - $h_bus_ul_x_ + 1"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- Draw Bus connection--> <use x="{@X}" y="{@Y}" xlink:href="#{@BUSSTD}_busconn_{@TYPE}"/> <!-- Draw the arrow --> <xsl:choose> <xsl:when test="((@BIFSIDE='0') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowEast"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and not((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowWest"/> </xsl:when> <xsl:when test="((@BIFSIDE='0') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{@X - $BLKD_BUS_ARROW_W}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> <xsl:when test="((@BIFSIDE='1') and ((@BUSSTD = 'FSL') and ((@TYPE = 'INITIATOR') or (@TYPE = 'MASTER'))))"> <use x="{(@X + $BLKD_BIFC_W)}" y="{@Y + ceiling($BLKD_BIFC_H div 2) - ceiling($BLKD_BUS_ARROW_H div 2)}" xlink:href="#{@BUSSTD}_BusArrowHInitiator"/> </xsl:when> </xsl:choose> <!-- Draw the horizontal part of the bus --> <rect x="{$h_bus_ul_x_}" y="{$h_bus_ul_y_}" width= "{$h_bus_width_}" height="{$h_bus_height_}" style="stroke:none; fill:{$busColor_}"/> <!-- Draw the vertical part of the bus. The MPMC BIF and the top arrow will be added later when the main drawing happens. --> <xsl:variable name="v_bus_ul_x_"> <xsl:choose> <xsl:when test="@BIFSIDE='0'"><xsl:value-of select="($h_bus_ul_x_)"/></xsl:when> <xsl:when test="@BIFSIDE='1'"><xsl:value-of select="($h_bus_ul_x_ + $h_bus_width_ - $BLKD_P2P_BUS_W)"/></xsl:when> </xsl:choose> </xsl:variable> <rect x="{$v_bus_ul_x_}" y="0" width= "{$BLKD_P2P_BUS_W}" height="{$h_bus_ul_y_}" style="stroke:none; fill:{$busColor_}"/> </xsl:for-each> </xsl:template> <!-- ====================================================================== Handle Split connections, (connections that go between adjacent stacks) ====================================================================== --> <xsl:template name="BCLaneSpace_SplitConn"> <xsl:param name="iBusStd" select="'NONE'"/> <xsl:param name="iBusName" select="'NONE'"/> <xsl:param name="iBifType" select="'NONE'"/> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <xsl:param name="iStackToEast_W" select="0"/> <xsl:param name="iStackToWest_W" select="0"/> <xsl:param name="iLaneInSpace_X" select="0"/> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="$iBusStd"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($iStackToWest_W div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($iStackToEast_W div 2)"/> <xsl:variable name="bifName_" select="BUSCONN/@BUSINTERFACE"/> <xsl:variable name="shpInstance_" select="BUSCONN/@INSTANCE"/> <!-- <xsl:message>Found a split connection on <xsl:value-of select="$shpInstance_"/></xsl:message> --> <xsl:variable name="shp_hori_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $shpInstance_)]"> <xsl:value-of select="/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $shpInstance_)]/@STACK_HORIZ_INDEX"/> </xsl:when> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]/@STACK_HORIZ_INDEX"/> </xsl:when> <xsl:otherwise>_unknown_</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="shp_vert_idx_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $shpInstance_)]"> <xsl:value-of select="/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $shpInstance_)]/@SHAPE_VERTI_INDEX"/> </xsl:when> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]"> <xsl:value-of select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]/@SHAPE_VERTI_INDEX"/> </xsl:when> <xsl:otherwise>_unknown_</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="splitshp_Width_"> <xsl:choose> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/PROCSHAPES/MODULE[(@INSTANCE = $shpInstance_)]"> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:when> <xsl:when test="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]/@MODS_W"> <!-- <xsl:message>Using mods width on <xsl:value-of select="$shpInstance_"/></xsl:message> --> <xsl:value-of select="($G_ROOT/EDKSYSTEM/BLKDIAGRAM/CMPLXSHAPES/CMPLXSHAPE[(MODULE[(@INSTANCE = $shpInstance_)])]/@MODS_W * $BLKD_MOD_W)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$BLKD_MOD_W"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:message>Found width of <xsl:value-of select="$splitshp_Width_"/></xsl:message> --> <xsl:variable name="splitshp_Y_"> <xsl:call-template name="F_Calc_Stack_Shape_Y"> <xsl:with-param name="iHorizIdx" select="$shp_hori_idx_"/> <xsl:with-param name="iVertiIdx" select="$shp_vert_idx_"/> </xsl:call-template> </xsl:variable> <xsl:variable name="splitStack_H_diff_"> <xsl:choose> <xsl:when test=" (($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="not(($iStackToEast = 'NONE') or ($iStackToWest = 'NONE'))"> <xsl:variable name="stackToWest_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="stackToEast_AbvSbs_H_"> <xsl:call-template name="F_Calc_Stack_AbvSbs_Height"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="(($shp_hori_idx_ = $iStackToEast) and ($stackToWest_AbvSbs_H_ &gt; $stackToEast_AbvSbs_H_))"> <xsl:value-of select="($stackToWest_AbvSbs_H_ - $stackToEast_AbvSbs_H_)"/> </xsl:when> <xsl:when test="(($shp_hori_idx_ = $iStackToWest) and ($stackToEast_AbvSbs_H_ &gt; $stackToWest_AbvSbs_H_))"> <xsl:value-of select="($stackToEast_AbvSbs_H_ - $stackToWest_AbvSbs_H_)"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="splitBif_Y_" select="((($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V) * BUSCONN/@BIF_Y) + ($BLKD_MOD_LANE_H + $BLKD_MOD_LABEL_H + $BLKD_MOD_BIF_GAP_V))"/> <xsl:variable name="splitBusStd_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $shpInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BUSSTD"/> <xsl:variable name="splitBifType_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $shpInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@TYPE"/> <xsl:variable name="splitBifSide_" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $shpInstance_)]/BUSINTERFACE[(@NAME = $bifName_)]/@BIF_X"/> <xsl:variable name="bcInSpace_X_"> <xsl:choose> <xsl:when test="$splitBifSide_ = '1'"><xsl:value-of select="ceiling($splitshp_Width_ div 2)"/></xsl:when> <xsl:when test="$splitBifSide_ = '0'"><xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - ceiling($splitshp_Width_ div 2) - $BLKD_BIFC_W)"/></xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="bcBus_X_"> <xsl:choose> <xsl:when test="$splitBifSide_ = '1'"><xsl:value-of select="$bcInSpace_X_"/></xsl:when> <xsl:when test="$splitBifSide_ = '0'"><xsl:value-of select="($space_W_ + $extSpaceWest_W_ + $extSpaceEast_W_ - ceiling($BLKD_MOD_W div 2) - $BLKD_BIFC_W)"/></xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="bcSplit_Y_"> <xsl:choose> <xsl:when test="(BUSCONN/@IS_MEMCONN) and (($splitBusStd_ = 'LMB') or ($splitBusStd_ = 'OCM'))"> <!-- <xsl:message>Found memory conn split connection on <xsl:value-of select="$shpInstance_"/> </xsl:message> --> <xsl:value-of select="($splitshp_Y_ + $BLKD_MOD_H + $BLKD_MOD_BIF_GAP_V + (BUSCONN/@BIF_Y * ($BLKD_BIF_H + $BLKD_MOD_BIF_GAP_V)) + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $splitStack_H_diff_)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="($splitshp_Y_ + $splitBif_Y_ + ceiling($BLKD_BIF_H div 2) - ceiling($BLKD_BIFC_H div 2) + $splitStack_H_diff_)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <use x="{$bcInSpace_X_}" y="{$bcSplit_Y_}" xlink:href="#{@BUSSTD}_busconn_{$splitBifType_}"/> <xsl:call-template name="Draw_SplitConnBus"> <xsl:with-param name="iBc_Y" select="$bcSplit_Y_"/> <xsl:with-param name="iBc_X" select="$bcInSpace_X_"/> <xsl:with-param name="iBusStd" select="$iBusStd"/> <xsl:with-param name="iBc_Type" select="$splitBifType_"/> <xsl:with-param name="iBc_Side" select="$splitBifSide_"/> <xsl:with-param name="iBusName" select="$iBusName"/> </xsl:call-template> </xsl:template> <xsl:template name="Define_BusLaneSpace"> <xsl:param name="iStackToEast" select="'NONE'"/> <xsl:param name="iStackToWest" select="'NONE'"/> <!-- <xsl:message>Input Stack to West <xsl:value-of select="$iStackToWest"/></xsl:message> <xsl:message>Input Stack to East <xsl:value-of select="$iStackToEast"/></xsl:message> --> <xsl:variable name="stackToEast_"> <xsl:choose> <xsl:when test="not($iStackToEast = 'NONE')"><xsl:value-of select="$iStackToEast"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="stackToWest_"> <xsl:choose> <xsl:when test=" not($iStackToWest = 'NONE')"><xsl:value-of select="$iStackToWest"/></xsl:when> <xsl:when test="(not($iStackToEast = 'NONE') and not($iStackToEast = '0'))"><xsl:value-of select="($iStackToEast - 1)"/></xsl:when> <xsl:otherwise>NONE</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="spaceAbvSbs_H_"> <xsl:call-template name="F_Calc_Space_AbvSbs_Height"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="spaceBlwSbs_H_"> <xsl:call-template name="F_Calc_Space_BlwSbs_Height"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="space_H_" select="($spaceAbvSbs_H_ + $BLKD_PROC2SBS_GAP + $G_Total_SharedBus_H + $spaceBlwSbs_H_)"/> <xsl:variable name="space_W_"> <xsl:call-template name="F_Calc_Space_Width"> <xsl:with-param name="iStackToEast" select="$iStackToEast"/> <xsl:with-param name="iStackToWest" select="$iStackToWest"/> </xsl:call-template> </xsl:variable> <xsl:variable name="spaceSharedBus_Y_" select="$spaceAbvSbs_H_ + $BLKD_PROC2SBS_GAP"/> <xsl:variable name="space_name_"> <xsl:call-template name="F_generate_Space_Name"> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> </xsl:call-template> </xsl:variable> <xsl:variable name = "stackToWest_W_"> <xsl:choose> <xsl:when test="(($iStackToEast = '0') and ($iStackToWest = 'NONE'))">0</xsl:when> <xsl:when test="(($iStackToEast = 'NONE') and not($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$iStackToWest"/> </xsl:call-template> </xsl:when> <xsl:when test="(not($iStackToEast = '0') and not($iStackToEast = 'NONE') and ($iStackToWest = 'NONE'))"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="($iStackToEast - 1)"/> </xsl:call-template> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name = "stackToEast_W_"> <xsl:call-template name="F_Calc_Stack_Width"> <xsl:with-param name="iStackIdx" select="$iStackToEast"/> </xsl:call-template> </xsl:variable> <xsl:variable name ="extSpaceWest_W_" select="ceiling($stackToWest_W_ div 2)"/> <xsl:variable name ="extSpaceEast_W_" select="ceiling($stackToEast_W_ div 2)"/> <g id="{$space_name_}"> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[((@EAST = $iStackToEast) or (($iStackToEast = 'NONE') and (@WEST = $iStackToWest)))]/BUSCONNLANE[@BUSSTD and @BUSNAME]"> <xsl:variable name="busStd_" select="@BUSSTD"/> <xsl:variable name="busName_" select="@BUSNAME"/> <xsl:variable name="busLane_X_" select="@BUSLANE_X"/> <!-- <xsl:variable name="eastBusLane_X_"> <xsl:choose> <xsl:when test="(@BUSLANE_X = 0)"><xsl:value-of select="@BUSLANE_X"/></xsl:when> <xsl:otherwise><xsl:value-of select="(@BUSLANE_X - 1)"/></xsl:otherwise> </xsl:choose> </xsl:variable> --> <xsl:variable name="eastBusLane_X_" select="@BUSLANE_X"/> <xsl:variable name="laneInSpace_X_"> <xsl:choose> <xsl:when test="(@ORIENTED = 'EAST')"> <xsl:value-of select="($extSpaceWest_W_ + ($eastBusLane_X_ * $BLKD_BUS_LANE_W) - $BLKD_BUS_ARROW_W - $BLKD_P2P_BUS_W)"/> </xsl:when> <xsl:otherwise><xsl:value-of select="($extSpaceWest_W_ + (@BUSLANE_X * $BLKD_BUS_LANE_W))"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="busColor_"> <xsl:call-template name="F_BusStd2RGB"> <xsl:with-param name="iBusStd" select="@BUSSTD"/> </xsl:call-template> </xsl:variable> <xsl:choose> <!-- =========================================================== Handle Bucket connections to the shared busses. =========================================================== --> <xsl:when test="@BUSLANE_X and @IS_BKTCONN and BUSCONN[@TYPE] and $G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/@BUS_INDEX"> <xsl:call-template name="BCLaneSpace_BucketToSharedBus"> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBifType" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/BUSINTERFACE/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> <xsl:with-param name="iSpaceSharedBus_Y" select="$spaceSharedBus_Y_"/> </xsl:call-template> </xsl:when> <!-- =========================================================== Handle Processor's Shared bus connections. =========================================================== --> <xsl:when test="@BUSLANE_X and @IS_SBSCONN and not(@IS_MPMCCONN) and BUSCONN[@BIF_Y and @IS_PROCCONN and @INSTANCE and @BUSINTERFACE] and $G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/@BUS_INDEX"> <xsl:call-template name="BCLaneSpace_ProcBifToSharedBus"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/BUSINTERFACE/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> <xsl:with-param name="iSpaceSharedBus_Y" select="$spaceSharedBus_Y_"/> </xsl:call-template> <!-- --> </xsl:when> <!-- =========================================================== Handle non Processor Shared Bus connections. =========================================================== --> <xsl:when test="@BUSLANE_X and @IS_SBSCONN and not(@IS_MPMCCONN) and BUSCONN[@BIF_Y and not(@IS_PROCCONN) and @INSTANCE and @BUSINTERFACE] and /EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/@BUS_INDEX"> <xsl:call-template name="BCLaneSpace_NonProcBifToSharedBus"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="$G_ROOT/EDKSYSTEM/MODULES/MODULE[(@INSTANCE = $busName_)]/BUSINTERFACE/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> <xsl:with-param name="iSpaceSharedBus_Y" select="$spaceSharedBus_Y_"/> </xsl:call-template> <!-- --> </xsl:when> <!-- =========================================================== Handle connections from processors to Memory UNITs =========================================================== --> <xsl:when test="@BUSLANE_X and @IS_MEMCONN and not(@IS_MULTISTK) and BUSCONN[@BIF_Y and @IS_PROCCONN and not(@IS_SPLITCONN) and @INSTANCE and @BUSINTERFACE]"> <xsl:call-template name="BCLaneSpace_ProcBifToMemoryUnit"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> <!-- --> </xsl:when> <!-- =========================================================== Handle generic Point to Point connections =========================================================== --> <xsl:when test="@BUSLANE_X and not(@IS_MULTISTK) and not(@IS_MPMCCONN) and not(@IS_MEMCONN) and not(@IS_SBSCONN) and BUSCONN[@BIF_Y and @INSTANCE and @BUSINTERFACE and not(@IS_SPLITCONN)]"> <xsl:call-template name="BCLaneSpace_PointToPoint"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> <!-- --> </xsl:when> <!-- =========================================================== Handle MultiStack Point to Point connections =========================================================== --> <xsl:when test="@BUSLANE_X and (@IS_MULTISTK) and not(@IS_SBSCONN) and BUSCONN[@BIF_Y and @IS_PROCCONN and @INSTANCE and @BUSINTERFACE]"> <xsl:call-template name="BCLaneSpace_MultiStack_PointToPoint"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> </xsl:when> <!-- =========================================================== Handle Processor to processor connections =========================================================== --> <xsl:when test="(@IS_PROC2PROC and (count(BUSCONN[@BIF_Y and @INSTANCE and @BUSINTERFACE]) = 2))"> <xsl:call-template name="BCLaneSpace_ProcToProc"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> </xsl:when> <!-- =========================================================== Handle connections to the StandAlone MPMC =========================================================== --> <xsl:when test="@BUSLANE_X and (@IS_MPMCCONN) and not(@IS_SBSCONN) and BUSCONN[(@BIF_Y and @INSTANCE and @BUSINTERFACE)]"> <!-- --> <xsl:call-template name="BCLaneSpace_ToStandAloneMPMC"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> </xsl:when> <!-- =========================================================== Handle Split connections, (connections that go between non adjacent stacks) =========================================================== --> <xsl:when test="(BUSCONN[@BIF_Y and @INSTANCE and @BUSINTERFACE and @IS_SPLITCONN])"> <xsl:call-template name="BCLaneSpace_SplitConn"> <xsl:with-param name="iBusStd" select="$busStd_"/> <xsl:with-param name="iBusName" select="$busName_"/> <xsl:with-param name="iBifType" select="BUSCONN/@TYPE"/> <xsl:with-param name="iStackToEast" select="$stackToEast_"/> <xsl:with-param name="iStackToWest" select="$stackToWest_"/> <xsl:with-param name="iStackToEast_W" select="$stackToEast_W_"/> <xsl:with-param name="iStackToWest_W" select="$stackToWest_W_"/> <xsl:with-param name="iLaneInSpace_X" select="$laneInSpace_X_"/> </xsl:call-template> <!-- --> </xsl:when> </xsl:choose> </xsl:for-each> </g> </xsl:template> <xsl:template name="Define_BusLaneSpaces"> <xsl:variable name="lastStack_" select="(/EDKSYSTEM/BLKDIAGRAM/@STACK_HORIZ_WIDTH) - 1"/> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[@EAST]"> <xsl:sort select="@EAST" data-type="number"/> <xsl:call-template name="Define_BusLaneSpace"> <xsl:with-param name="iStackToEast" select="@EAST"/> </xsl:call-template> </xsl:for-each> <!-- <xsl:message>Last Stack <xsl:value-of select="$lastStack_"/></xsl:message> --> <xsl:for-each select="$G_ROOT/EDKSYSTEM/BLKDIAGRAM/BCLANESPACES/BCLANESPACE[(@WEST = $lastStack_)]"> <xsl:call-template name="Define_BusLaneSpace"> <xsl:with-param name="iStackToWest" select="$lastStack_"/> </xsl:call-template> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <DIV STYLE="padding:.3in .1in .3in .3in; font-family:Arial Black; background-color:chocolate; background-image=URL(swallows.jpg)"> <xsl:for-each select="CIM/DECLARATION/DECLGROUP/INSTANCE"> <TABLE> <TR> <TD COLSPAN="2"> <IMG src="MAGNIFY.WMF" width="200" height="200"> </IMG> </TD> <TD STYLE="padding-left:1em"> <xsl:for-each select="PROPERTY[@NAME='DeviceID']"> <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; font-size:18pt; color:yellow"> Device ID <SPAN STYLE="color:white"><xsl:value-of select="VALUE"/></SPAN> </DIV> </xsl:for-each> <xsl:for-each select="PROPERTY[@NAME='Description']"> <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; margin-top:1em; font-style:italic; font-size:18pt; color:white"> <xsl:value-of select="VALUE"/> </DIV> </xsl:for-each> </TD> </TR> <TR> <TD> <xsl:for-each select="PROPERTY[@NAME='FileSystem']"> <DIV STYLE="color:white; font:10pt. Verdana; font-style:italic; font-weight:normal"> <xsl:value-of select="VALUE"/> </DIV> </xsl:for-each> </TD> <TD> <xsl:for-each select="PROPERTY[@NAME='VolumeSerialNumber']"> <DIV STYLE="text-align:right; color:white; font:10pt. Verdana; font-style:italic; font-weight:normal"> <xsl:value-of select="VALUE"/> </DIV> </xsl:for-each> </TD> <TD> </TD> </TR> <TR> <TD COLSPAN="2"> <xsl:for-each select="PROPERTY[@NAME='Size']"> <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white"> Size: <xsl:value-of select="VALUE"/> Bytes </DIV> </xsl:for-each> <xsl:for-each select="PROPERTY[@NAME='FreeSpace']"> <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white"> Free Space: <xsl:value-of select="VALUE"/> Bytes </DIV> </xsl:for-each> </TD> <TD STYLE="text-align:right; font:10pt Verdana; font-style:italic; color:yellow"> <xsl:for-each select="PROPERTY[@NAME='SupportsFileBasedCompression']/VALUE[text()='FALSE']"> <DIV STYLE="margin-top:.5em; font-weight:bold">This device does NOT support file-based compression</DIV> </xsl:for-each> <xsl:for-each select="PROPERTY[@NAME='SupportsFileBasedCompression']/VALUE[text()!='FALSE']"> <DIV STYLE="margin-top:.5em; font-weight:bold">This device supports file-based compression</DIV> </xsl:for-each> </TD> </TR> </TABLE> </xsl:for-each> </DIV> </xsl:template> </xsl:stylesheet>
<filename>install/web_includes/sfw_schema.xsl <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html"> <!-- Getting values from schema and fields --> <xsl:template match="schema" mode="get_form_title"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str"> <xsl:choose> <xsl:when test="@title"><xsl:value-of select="@title" /></xsl:when> <xsl:when test="../@title"><xsl:value-of select="../@title" /></xsl:when> <xsl:otherwise>Dialog</xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:template> <!-- prevent extra text printing for other add_on_click_attribute template. --> <xsl:template match="@*" mode="add_on_click_attribute"></xsl:template> <xsl:template match="@*[starts-with(local-name(),'on_') and contains(local-name(),'_click')]" mode="add_on_click_attribute"> <xsl:variable name="aname" select="concat('data-', local-name())" /> <xsl:attribute name="{$aname}"> <xsl:apply-templates select="." mode="resolve_url" /> </xsl:attribute> </xsl:template> <!-- 1. Get $all from all on_xxx_click attributes in ancestor chain ` 2. Get (from $all) attribute sets a_s, a_r, a_m from schema, result, and root 3. Get exclusive set x_r (for result, not found in schema) 4. Get exclusive set x_m (for mode, not found in schema or result) 5. Write out reconciled on_xxx_click attributes from union of a_s|x_r|x_m --> <xsl:template match="*" mode="add_on_click_attributes"> <xsl:variable name="all" select="ancestor-or-self::*/@*[starts-with(local-name(),'on_') and contains(local-name(),'_click')]" /> <xsl:variable name="a_s" select="$all[parent::schema]" /> <xsl:variable name="a_r" select="$all[parent::*[@rndx] and not(parent::schema)]" /> <xsl:variable name="a_m" select="$all[not(parent::schema) and not(parent::*[@rndx])]" /> <xsl:variable name="x_r" select="$a_r[not(local-name($a_s)=local-name())]" /> <xsl:variable name="x_m" select="$a_m[not(local-name($a_s)=local-name())][not(local-name($a_r)=local-name())]" /> <xsl:apply-templates select="$a_s|$x_r|$x_m" mode="add_on_click_attribute" /> </xsl:template> <xsl:template match="schema" mode="get_form_action"> <xsl:variable name="ta" select="@form-action" /> <xsl:variable name="fa" select="parent::*[not($ta)]/@form-action" /> <xsl:variable name="action" select="$ta|$fa" /> <xsl:if test="$action"> <xsl:apply-templates select="$action" mode="resolve_url" /> </xsl:if> </xsl:template> <xsl:template match="schema" mode="get_field_gids"> <xsl:variable name="t"> <xsl:apply-templates select="fields" mode="make_field_gid" /> </xsl:variable> <xsl:value-of select="substring($t,2)" /> </xsl:template> <!-- It's perhaps ill-advised, but if neither xrow_id or primary_key attributes indicate the id field, this template assumes that the first field is the id field. --> <xsl:template match="schema" mode="get_id_field_name"> <xsl:variable name="xid" select="field[@xrow_id]" /> <xsl:variable name="pid" select="field[not($xid)][@primary-key]" /> <xsl:variable name="lid" select="field[not($xid|$pid)][1]" /> <xsl:value-of select="($xid|$pid|$lid)/@name" /> </xsl:template> <xsl:template match="field" mode="get_id_value"> <xsl:param name="data" /> <xsl:variable name="idname"> <xsl:apply-templates select=".." mode="get_id_field_name" /> </xsl:variable> <xsl:value-of select="$data/@*[local-name()=$idname]" /> </xsl:template> <xsl:template match="schema/field" mode="get_name"> <xsl:choose> <xsl:when test="@html-name"> <xsl:value-of select="@html-name" /> </xsl:when> <xsl:when test="@orgname"> <xsl:value-of select="@orgname" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="@name" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="schema/field" mode="get_label"> <xsl:choose> <xsl:when test="@label"> <xsl:apply-templates select="@label" mode="resolve_refs" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="translate(@name,'_',' ')" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="schema/field" mode="get_size"> <xsl:choose> <xsl:when test="@length &lt; 25"> <xsl:value-of select="@length" /> </xsl:when> <xsl:otherwise>25</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="schema/field[@dtd]" mode="get_list_string"> <xsl:variable name="paren" select="substring-after(@dtd,'(')" /> <xsl:variable name="len" select="string-length($paren)" /> <xsl:value-of select="substring($paren,1,($len)-1)" /> </xsl:template> <!-- Extract data parameter information using schema or field directions. --> <xsl:template match="schema/field[@row_class]" mode="get_row_class"> <xsl:param name="data" /> <xsl:variable name="value"> <xsl:apply-templates select="." mode="get_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:if test="$value=@row_class"> <xsl:value-of select="concat(' ',@name)" /> </xsl:if> </xsl:template> <xsl:template match="schema/field" mode="get_cell_value"> <xsl:param name="data" /> <xsl:variable name="val"> <xsl:apply-templates select="." mode="get_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:variable> <xsl:choose> <xsl:when test="@type='BOOL'"> <xsl:if test="$val=1">x</xsl:if> </xsl:when> <xsl:otherwise> <xsl:value-of select="$val" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="schema/field" mode="fill_table_cell"> <xsl:param name="data" /> <xsl:apply-templates select="." mode="get_cell_value"> <xsl:with-param name="data" select="$data" /> </xsl:apply-templates> </xsl:template> <xsl:template match="schema/field" mode="get_value"> <xsl:param name="data" /> <xsl:variable name="val" select="$data/@*[local-name()=current()/@name]" /> <xsl:variable name="lenval" select="string-length($val)" /> <xsl:variable name="nt" select="@nodetype" /> <xsl:variable name="dataval"> <xsl:choose> <xsl:when test="$lenval&gt;0 and (not(@nt) or @nt='attribute' or @nt='child')"> <xsl:value-of select="$val" /> </xsl:when> <xsl:when test="@ref-value"> <xsl:apply-templates select="$vars" mode="get_value"> <xsl:with-param name="name" select="@ref-value" /> </xsl:apply-templates> </xsl:when> <xsl:when test="@map-value"> <xsl:value-of select="$data/@*[local-name()=current()/@map-value]" /> </xsl:when> <xsl:when test="$data/text()"> <xsl:value-of select="$data" /> </xsl:when> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="string-length($dataval) &gt; 0"> <xsl:value-of select="$dataval" /> </xsl:when> <xsl:when test="@value"> <xsl:call-template name="resolve_refs"> <xsl:with-param name="str" select="@value" /> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="iso-8859-1"?> <!-- simple xslt file: sce_rollback.xsl --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:ssr="http://microsoft.com/sce/ssr" > <xsl:import href="../CommonLib/ExtFunctions.xsl"/> <xsl:output method="text" indent="no"/> <xsl:template match="/SSRSecurityPolicy/Services"> <![CDATA[ <job id="SsrSceRollback"> <reference object="SSR.SsrCore"/> <script language="VBScript"> Option Explicit On Error Resume Next ]]> <!-- first, let's create the rollback inf template --> <xsl:variable name="CfgInf" select="ssr:GetFileLocation('Rollback', 'SCE.inf')"/> <xsl:variable name="Rbklog" select="ssr:GetFileLocation('Rollback', 'SCE-Rollback.log')"/> 'configure template is <xsl:value-of select="$CfgInf"/> DIM SCEAgent Set SCEAgent = CreateObject("Ssr.SCEAgent") If Err.Number &lt;&gt; 0 Then WScript.Echo "Creating SSR.SCEAgent failed." WScript.Quit Err.Number End If SCEAgent.Configure "<xsl:value-of select="$CfgInf"/>", 65535, "<xsl:value-of select="$Rbklog"/>" If Err.Number &lt;&gt; 0 Then WScript.Echo "SCEAgent.Configure failed." WScript.Quit Err.Number End If <![CDATA[ </script> </job> ]]> </xsl:template> </xsl:stylesheet>
<xsl:if test="true() or false()"> True and false are returned by built-in XPath functions. </xsl:if> <xsl:if test="@myAttribute='true'"> Node attributes set to "true" or "false" are just strings. Use string comparison to convert them to booleans. </xsl:if> <xsl:if test="@myAttribute or not($nodeSet)"> Test an attribute for its presence (empty or not), or whether a node set is empty. </xsl:if>
<gh_stars>10-100 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- (c) 2003-2019 section5.ch This file is subject to the MaSoCist open source license. Please respect OpenSource and contribute valuable changes! --> <xsl:stylesheet version="1.0" xmlns:my="http://www.section5.ch/dclib/schema/devdesc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:import href="hexutils.xsl"/> <xsl:import href="map.xsl"/> <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" doctype-system="/usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd" doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"/> <xsl:param name="mmr_base">0xff8000</xsl:param> <xsl:param name="addr_string_len">6</xsl:param> <xsl:key name="unitkey" match="my:group[@name='UNIT_MAP']/my:property/my:choice/my:item" use="@name"/> <xsl:key name="devkey" match="my:group[@name='UNIT_MAP']/my:struct[@name='SelectDevice']/my:property" use="@name"/> <xsl:template name="resolve_regref_lsb"> <xsl:param name="which"/> <xsl:variable name="val" select="key('regkey',$which/@ref)/my:bitfield[@name=$which/@bits]/@lsb"/> <xsl:choose> <xsl:when test="$val"> <xsl:value-of select="number($val)"/> </xsl:when> <xsl:otherwise>-1</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="resolve_address"> <xsl:param name="entity"/> <xsl:param name="index"/> <xsl:variable name="base"> <xsl:call-template name="shiftleft"> <xsl:with-param name="i"> <xsl:call-template name="resolve_regref_lsb"> <xsl:with-param name="which" select="key('unitkey', $entity/@name)/../../my:regref"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="val" select="key('unitkey', $entity/@name)/my:value"/> </xsl:call-template> </xsl:variable> <xsl:variable name="offs"> <xsl:call-template name="shiftleft"> <xsl:with-param name="i"> <xsl:call-template name="resolve_regref_lsb"> <xsl:with-param name="which" select="key('devkey', $entity/@name)/my:regref"/> </xsl:call-template> </xsl:with-param> <xsl:with-param name="val" select="$index"/> </xsl:call-template> </xsl:variable> <xsl:variable name="mmr_base_addr"> <xsl:call-template name="hex2dec"> <xsl:with-param name="num" select="substring($mmr_base, 3)"/> </xsl:call-template> </xsl:variable> <xsl:variable name="hexval"> <xsl:call-template name="dec2hex"> <xsl:with-param name="dec" select="$mmr_base_addr + $base + $offs" /> </xsl:call-template> </xsl:variable> <systemitem> <xsl:text>0x</xsl:text> <xsl:call-template name="str-pad"> <xsl:with-param name="string" select="$hexval"/> <xsl:with-param name="pad-char" select="0"/> <xsl:with-param name="str-length" select="$addr_string_len"/> </xsl:call-template> </systemitem> </xsl:template> <xsl:template name="gen_array"> <xsl:param name="n"/> <xsl:if test="$n > 0"> <xsl:call-template name="gen_array"> <xsl:with-param name="n" select="$n - 1"/> </xsl:call-template> </xsl:if> <xsl:variable name="regmap" select="key('mapkey', @name)"/> <row> <entry><xsl:value-of select="$regmap/@name"/><xsl:value-of select="number($n)"/></entry> <entry> <xsl:call-template name="resolve_address"> <xsl:with-param name="entity" select="."/> <xsl:with-param name="index" select="$n"/> </xsl:call-template> </entry> <entry><xsl:value-of select="my:info"/></entry> <entry> <xref><xsl:attribute name="linkend">sec_<xsl:value-of select="@name"/></xsl:attribute></xref> </entry> </row> </xsl:template> <xsl:template match="my:array" mode="unit_list"> <xsl:variable name="num" select="my:size/my:value"/> <xsl:variable name="regmap" select="key('mapkey', @name)"/> <xsl:choose> <xsl:when test="number($num)=number($num)"> <xsl:call-template name="gen_array"> <xsl:with-param name="n" select="$num - 1"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <row> <entry><xsl:value-of select="$regmap/@name"/> <xsl:text>[0..</xsl:text><xsl:value-of select="$num"/>]</entry> <entry> <xsl:call-template name="resolve_address"> <xsl:with-param name="entity" select="."/> <xsl:with-param name="index" select="0"/> </xsl:call-template> <xsl:text>, </xsl:text> <xsl:call-template name="resolve_address"> <xsl:with-param name="entity" select="."/> <xsl:with-param name="index" select="1"/> </xsl:call-template> <xsl:text>, ..</xsl:text> </entry> <entry><xsl:value-of select="my:info"/></entry> <entry><xref><xsl:attribute name="linkend">sec_<xsl:value-of select="@name"/></xsl:attribute></xref></entry> </row> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="my:property|my:struct" mode="unit_list"> <xsl:variable name="regmap" select="key('mapkey', @name)"/> <row> <entry><xsl:value-of select="$regmap/@name"/></entry> <entry> <xsl:call-template name="resolve_address"> <xsl:with-param name="entity" select="."/> <xsl:with-param name="index" select="0"/> </xsl:call-template> </entry> <entry><xsl:value-of select="my:info"/></entry> <entry><xref><xsl:attribute name="linkend">sec_<xsl:value-of select="@name"/></xsl:attribute></xref></entry> </row> </xsl:template> <xsl:template match="my:device"> <section><title>Device I/O map</title> <table floatstyle="H"> <xsl:choose> <xsl:when test="@id"> <xsl:attribute name="id">tbl_devicemap_<xsl:value-of select="@id"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="id">tbl_devicemap_<xsl:value-of select="generate-id()"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <title>Device map <xsl:value-of select="@name"/> </title> <tgroup cols="4"> <colspec align="left" colnum="1" colwidth="4*"></colspec> <colspec align="left" colnum="2" colwidth="2*"></colspec> <colspec align="justify" colnum="3" colwidth="4*"></colspec> <colspec align="left" colnum="4" colwidth="2*"></colspec> <thead> <row> <entry>Device id</entry> <entry>Address base</entry> <entry>Description</entry> <entry>Details</entry> </row> </thead> <tbody> <xsl:apply-templates select=".//my:group[@name='INSTANCES']/my:property|.//my:group[@name='INSTANCES']/my:struct|.//my:group[@name='INSTANCES']/my:array" mode="unit_list" /> </tbody> </tgroup> </table> </section> </xsl:template> <xsl:template match="/"> <chapter><title>Device hardware properties</title> <xsl:apply-templates select=".//my:device"/> </chapter> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:apply-templates select="edif"/> </xsl:template> <xsl:template match="edif"> <xsl:variable name="cell_ref" select="design/cellref/@name"/> <xsl:variable name="library_ref" select="design/cellref/libraryref/@name"/> <xsl:for-each select="(library|external)[@name=$library_ref]"> <xsl:for-each select="cell[@name=$cell_ref]/view"> <xsl:apply-templates select="contents/page"/> </xsl:for-each> </xsl:for-each> </xsl:template> <xsl:template match="page"> <xsl:value-of select="@name" disable-output-escaping="yes"/> <xsl:text>&#10;</xsl:text> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="common.xsl"/> <xsl:output method="text"/> <xsl:param name="page" select="true()"/> <xsl:param name="refs" select="true()"/> <xsl:key name="vw" match="library/cell/view" use="concat(ancestor::library/@name,'-',ancestor::cell/@name,'-',@name)"/> <xsl:template match="/"> <xsl:apply-templates select="edif"/> </xsl:template> <xsl:template match="edif"> <xsl:variable name="lname" select="design/cellref/libraryref/@name"/> <xsl:variable name="cname" select="design/cellref/@name"/> <xsl:apply-templates select="library[@name=$lname]/cell[@name=$cname]/view/contents"/> </xsl:template> <xsl:template match="contents"> <xsl:variable name="header" select="page[@name=$page]/instance/property[not(@name=preceding::property/@name)]"/> <!-- <xsl:variable name="header"> --> <xsl:for-each select="page[@name=$page]/instance/property[not(@name=preceding::property/@name)]"> <xsl:sort select="@name"/> <xsl:copy-of select="."/> </xsl:for-each> <!-- </xsl:variable> --> <!--header--> <xsl:text>id,name,designator</xsl:text> <xsl:for-each select="$header"> <xsl:sort select="@name"/> <xsl:text>,</xsl:text> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="@name"/> </xsl:call-template> </xsl:for-each> <xsl:text>&#10;</xsl:text> <!--data--> <xsl:for-each select="page[@name=$page]/instance"> <xsl:variable name="line" select="."/> <xsl:variable name="vwn" select="concat(viewref/cellref/libraryref/@name, '-',viewref/cellref/@name,'-',viewref/@name)"/> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="@name"/> </xsl:call-template> <xsl:text>,</xsl:text> <xsl:apply-templates select="rename"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="designator"/> <xsl:text>,</xsl:text> <xsl:value-of select="$vwn"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="key('vw',$vwn)"/> <xsl:text>,</xsl:text> <xsl:for-each select="$header"> <xsl:sort select="@name"/> <xsl:variable name="kw" select="@name"/> <xsl:text>,</xsl:text> <xsl:for-each select="$line"> <xsl:variable name="prop" select="property[@name=$kw]"/> <xsl:text>&quot;</xsl:text> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="normalize-space($prop/number/text())"/> </xsl:call-template> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="normalize-space($prop/integer/text())"/> </xsl:call-template> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="normalize-space($prop/string/text())"/> </xsl:call-template> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="normalize-space($prop/text())"/> </xsl:call-template> <xsl:text>&quot;</xsl:text> </xsl:for-each> </xsl:for-each> <xsl:text>&#10;</xsl:text> </xsl:for-each> </xsl:template> <xsl:template match="view"> <xsl:value-of select="@name"/> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="text()"/> </xsl:call-template> </xsl:template> <!-- <xsl:for-each select=".//viewref[generate-id()=generate-id(key('refs',translate(concat(cellref/libraryref/@name,'-',cellref/@name,'-',@name),$lowercase,$uppercase))[1])]"> --> <!--common--> <xsl:template match="rename"> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="text()"/> </xsl:call-template> </xsl:template> <xsl:template match="designator"> <xsl:if test="string-length(normalize-space(text()))!=0"> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="text()"/> </xsl:call-template> </xsl:if> <xsl:apply-templates select="stringdisplay"/> </xsl:template> <xsl:template match="stringdisplay"> <xsl:call-template name="_pprint"> <xsl:with-param name="s" select="text()"/> </xsl:call-template> </xsl:template> <xsl:template match="property"> <xsl:text>&#32;</xsl:text> <xsl:call-template name="_name"/> <xsl:text>=</xsl:text> <xsl:call-template name="_value"/> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Important: Default access width is 32 bit (unsigned long *) See 'access' parameter. --> <xsl:stylesheet version="1.0" xmlns:my="http://www.section5.ch/dclib/schema/devdesc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:import href="ctype.xsl"/> <xsl:output method="text" encoding="ISO-8859-1"/> <!-- Register definition prefix --> <xsl:param name="regprefix">Reg_</xsl:param> <!-- Index of desired device --> <xsl:param name="selectDevice">1</xsl:param> <!-- If set, convert bit fields --> <xsl:param name="convertBitfields">0</xsl:param> <!-- If 1, use parent register map's name as prefix --> <xsl:param name="useMapPrefix">0</xsl:param> <!-- LSB address shift --> <xsl:param name="lsb_shift">0</xsl:param> <!-- Access mode for all I/O, 0: byte, 1: hword, 2: lword --> <xsl:param name="access">2</xsl:param> <xsl:param name="gprefix">my</xsl:param> <xsl:variable name="index" select="number($selectDevice)"></xsl:variable> <xsl:key name="regkey" match="my:register" use="@id"/> <xsl:key name="multi_inst_key" match="my:group[@name='INSTANCES']/my:array" use="@name"/> <xsl:template match="my:item" mode="unit_map"> <xsl:text>set $UNIT_</xsl:text> <xsl:value-of select="@name"/> = <xsl:value-of select="my:value"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="my:register" mode="reg_dump"> def dump_<xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/> <xsl:variable name="regname">$<xsl:value-of select="$regprefix"/><xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/></xsl:variable> <xsl:choose> <xsl:when test="key('multi_inst_key',../@id)"> set $index = $arg0 </xsl:when> <xsl:otherwise> set $index = 0 </xsl:otherwise> </xsl:choose> <xsl:value-of select="$gprefix"/>_get_indexed_reg <xsl:value-of select="$regname"/> $index $MMR_SELECT_DEVINDEX_<xsl:value-of select="../@name"/>_SHFT printf "<xsl:value-of select="@id"/>:\t" <xsl:choose> <xsl:when test="./my:bitfield"> <xsl:apply-templates select=".//my:bitfield" mode="reg_dump"/> printf "\n" </xsl:when> <xsl:otherwise> _dump_reg($r) </xsl:otherwise> </xsl:choose> end </xsl:template> <xsl:template match="my:register" mode="reg_set"> <xsl:variable name="regid"> <xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/> </xsl:variable> <xsl:variable name="regname">$<xsl:value-of select="$regprefix"/><xsl:value-of select="$regid"/></xsl:variable> <xsl:choose> <xsl:when test="key('multi_inst_key',../@id)"> def set_<xsl:value-of select="$regid"/> set $index = $arg0 <xsl:value-of select="$gprefix"/>_set_indexed_reg <xsl:value-of select="$regname"/> $index $MMR_SELECT_DEVINDEX_<xsl:value-of select="../@name"/>_SHFT $arg1 end </xsl:when> <xsl:otherwise> def set_<xsl:value-of select="$regid"/> <xsl:text> </xsl:text> <xsl:value-of select="$gprefix"/>_set_reg <xsl:value-of select="$regname"/> $arg0 end </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Register definition/declaration and reference --> <xsl:template match="my:registermap" mode="init_shiftvals"> <xsl:text>set $MMR_SELECT_DEVINDEX_</xsl:text> <xsl:value-of select="@name"/><xsl:text>_SHFT = 0 </xsl:text> </xsl:template> <xsl:template match="my:registermap" mode="reg_decl"> ########################################################## # Address segment '<xsl:value-of select="@name"/>'<xsl:if test="./my:info"> # # <xsl:value-of select="./my:info"/></xsl:if> <xsl:text>########################################################## </xsl:text> <xsl:choose> <xsl:when test="@offset"> <xsl:text>set $</xsl:text><xsl:value-of select="@name"/> <xsl:text>_Offset = $MMR_OFFSET_ADDRESS + (</xsl:text><xsl:value-of select="@offset"/> &lt;&lt; <xsl:value-of select="$lsb_shift"/>) </xsl:when> <xsl:otherwise> <xsl:text>set $</xsl:text><xsl:value-of select="@name"/> <xsl:text>_Offset = $MMR_OFFSET_ADDRESS</xsl:text> <xsl:if test="@id"> <xsl:text> + ($UNIT_</xsl:text> <xsl:value-of select="@id"/> &lt;&lt; $MMR_UNIT_SHIFT) </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:apply-templates select=".//my:register" mode="reg_decl"/> </xsl:template> <xsl:template match="my:register" mode="reg_decl"> set $<xsl:value-of select="$regprefix"/><xsl:if test="$useMapPrefix &gt; 0"><xsl:value-of select="../@name"/>_</xsl:if><xsl:value-of select="@id"/><xsl:text> = </xsl:text><xsl:apply-templates select="." mode="ctype"/> ($<xsl:value-of select="../@name"/>_Offset + (<xsl:value-of select="@addr"/> &lt;&lt; <xsl:value-of select="$lsb_shift"/>))<xsl:if test="$convertBitfields = 1"> <xsl:apply-templates select=".//my:bitfield" mode="reg_decl"/></xsl:if></xsl:template> <xsl:template match="my:bitfield" mode="reg_dump"> <xsl:choose> <xsl:when test="@lsb = @msb"> if $r &amp; $<xsl:value-of select="@name"/> printf "[<xsl:value-of select="@name"/>] " end</xsl:when> <xsl:otherwise> printf "[<xsl:value-of select="@name"/> : %d] ", ($r &amp; $<xsl:value-of select="@name"/>) &gt;&gt; $<xsl:value-of select="@name"/>_SHFT</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="my:bitfield" mode="reg_decl"> <xsl:variable name="lsb" select="number(@lsb)"/> <xsl:variable name="msb" select="number(@msb)"/> set $<xsl:value-of select="@name"/> <xsl:text> = </xsl:text> <xsl:choose> <xsl:when test="@lsb = @msb"> <xsl:text>(1 &lt;&lt; (</xsl:text> <xsl:if test="string($lsb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/>))</xsl:when> <xsl:otherwise> <xsl:text>( (-1 &lt;&lt; (</xsl:text> <xsl:if test="string($msb) = 'NaN'">$</xsl:if> <xsl:value-of select="@msb"/> <xsl:text> + 1)) ^ (-1 &lt;&lt;</xsl:text> <xsl:if test="string($lsb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/>)) </xsl:otherwise> </xsl:choose> set $<xsl:value-of select="@name"/> <xsl:text>_SHFT = </xsl:text> <xsl:if test="string($msb) = 'NaN'">$</xsl:if> <xsl:value-of select="@lsb"/> <!--xsl:if test="./my:info"><xsl:text> </xsl:text>/* <xsl:value-of select="my:info"/> */</xsl:if--></xsl:template> <!-- Emit header content if language not defined, or if set to "C" --> <xsl:template match="my:header"> <xsl:choose> <xsl:when test="@language = 'GDBSCRIPT'"> <xsl:value-of select="."/> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="resolve_regref_lsb"> <xsl:param name="which"/> <xsl:value-of select="key('regkey',$which/@ref)/my:bitfield[@name=$which/@bits]/@lsb"/> </xsl:template> <xsl:template match="my:registermap" mode="plain_offset"> set $<xsl:value-of select="@name"/>_OFFSET_ADDRESS = <xsl:value-of select="@offset"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="/">################################################################# # <xsl:value-of select="my:devdesc/my:device[$index]/my:info"/> # # This file was generated by dclib/netpp. Modifications to # this file will be lost. # Stylesheet: gdbscript.xsl v0.3 (c) 2010-2015 section5.ch # # Device description version: # v<xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:major"/>.<xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:minor"/><xsl:value-of select="my:devdesc/my:device[$index]/my:revision/my:extension"/> ################################################################# <xsl:apply-templates select=".//my:header"/> <xsl:apply-templates select=".//my:registermap[@name='MMR']" mode="plain_offset"/> <xsl:choose> <xsl:when test="my:devdesc/my:device[$index]/@protocol = 'COMMAND'"> # Must define own register access methods: # def <xsl:value-of select="$gprefix"/>_get_indexed_reg # FILL IN CODE HERE # end # def <xsl:value-of select="$gprefix"/>_set_reg # FILL IN CODE HERE # end # def <xsl:value-of select="$gprefix"/>_set_indexed_reg # FILL IN CODE HERE # end </xsl:when> <xsl:otherwise> def <xsl:value-of select="$gprefix"/>_get_indexed_reg set $a = &amp;$arg0[($arg1 &lt;&lt; ($arg2 + <xsl:value-of select="$lsb_shift"/>)) / sizeof(*$arg0)] set $r = *$a printf "Address: %08x ", $a end def <xsl:value-of select="$gprefix"/>_set_reg set *$arg0 = $arg1 end def <xsl:value-of select="$gprefix"/>_set_indexed_reg set $a = &amp;$arg0[($arg1 &lt;&lt; ($arg2 + <xsl:value-of select="$lsb_shift"/>)) / sizeof(*$arg0)] printf "Write 0x%x to %08x\n", $arg3, $a set *$a = $arg3 end </xsl:otherwise> </xsl:choose> def _dump_reg if sizeof($arg0) == 4 printf "%08x", $arg0 end if sizeof($arg0) == 2 printf " %04x", $arg0 end if sizeof($arg0) == 1 printf " %02x", $arg0 end printf "\n" end <xsl:choose> <xsl:when test="my:devdesc/my:device[$index]/my:group[@name = 'UNIT_MAP']"> # Unit address calculation: <xsl:text>set $MMR_UNIT_SHIFT = (</xsl:text> <xsl:call-template name="resolve_regref_lsb"> <xsl:with-param name="which" select=".//my:device[$index]/my:group[@name='UNIT_MAP']/my:property/my:regref"/> </xsl:call-template> <xsl:text> + </xsl:text><xsl:value-of select="$lsb_shift"/><xsl:text>)</xsl:text> </xsl:when> <xsl:otherwise> # External Address offset specification required: # set $MMR_UNIT_SHIFT = FILL_IN </xsl:otherwise> </xsl:choose> # Unit defines: <xsl:apply-templates select=".//my:device[$index]/my:group[@name='UNIT_MAP']/my:property/my:choice/my:item" mode="unit_map" /> # Initialize defaults: <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@nodecode='true')]" mode="init_shiftvals"/> <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@hidden='true')]" mode="reg_decl"/> ################################################################# <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@nodecode='true') or @hidden='false']/my:register" mode="reg_dump"/> <xsl:apply-templates select=".//my:device[$index]/my:registermap[not(@nodecode='true') or @hidden='false']/my:register[not(@access='RO')]" mode="reg_set"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="processing-instruction('config')"> # ifdef CONFIG_<xsl:value-of select="."/> # </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- bottles.xsl defines $entire-bottles-song --> <xsl:import href="bottles.xsl"/> <xsl:output method="xml" encoding="utf-8"/> <xsl:variable name="hello-world"> <xsl:text>Hello, world!&#10;</xsl:text> </xsl:variable> <!-- Main template --> <xsl:template match="/"> <results> <xsl:apply-templates select="//code"/> </results> </xsl:template> <!-- <code/> template --> <xsl:template match="code"> <xsl:call-template name="run"> <xsl:with-param name="code" select="string(.)"/> </xsl:call-template> </xsl:template> <!-- Runs HQ9+ code from string --> <xsl:template name="run"> <xsl:param name="code"/> <xsl:call-template name="_run-remaining-code"> <!-- Initial value is the entire input program plus a newline --> <xsl:with-param name="quine" select="concat($code,'&#10;')"/> <!-- Initial value is the entire input program with [hq] changed to upper-case --> <xsl:with-param name="code" select="translate($code, 'hq', 'HQ')"/> <!-- Initial value is empty --> <xsl:with-param name="output"/> <!-- Initial value is 0 --> <xsl:with-param name="accumulator" select="0"/> </xsl:call-template> </xsl:template> <!-- Runs the remainder of some already-started HQ9+ code --> <!-- Tail recursion allows this function to effectively update its own state --> <xsl:template name="_run-remaining-code"> <!-- The text to be output on 'Q' --> <xsl:param name="quine"/> <!-- The remaining instructions for the program, already upper-case --> <xsl:param name="code"/> <!-- Output that has already been collected --> <xsl:param name="output"/> <!-- Current accumulator value --> <xsl:param name="accumulator"/> <!-- If there are instructions remaining, runs the next instruction and then recurses. If there are no instructions left, produces the final output and accumulator before exiting. --> <xsl:choose> <xsl:when test="$code = ''"> <!-- Reached the end of the program; output results --> <result> <xsl:if test="$accumulator != 0"> <xsl:attribute name="accumulator"><xsl:value-of select="$accumulator"/></xsl:attribute> </xsl:if> <xsl:copy-of select="$output"/> </result> </xsl:when> <xsl:otherwise> <!-- At least one more instruction; run and recurse --> <xsl:variable name="inst" select="substring($code, 1, 1)"/> <xsl:variable name="remaining" select="substring($code, 2)"/> <!-- Decide what to add to accumulator --> <xsl:variable name="accumulator-inc"> <xsl:choose> <xsl:when test="$inst = '+'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Decide what to append to output --> <xsl:variable name="output-inc"> <xsl:choose> <xsl:when test="$inst = 'H'"><xsl:value-of select="$hello-world"/></xsl:when> <xsl:when test="$inst = 'Q'"><xsl:value-of select="$quine"/></xsl:when> <xsl:when test="$inst = '9'"><xsl:value-of select="$entire-bottles-song"/></xsl:when> </xsl:choose> </xsl:variable> <!-- Recurse to continue processing program --> <xsl:call-template name="_run-remaining-code"> <!-- $quine is the $quine originally passed without changes --> <xsl:with-param name="quine" select="$quine"/> <!-- $code is the $code from this invocation with the first character removed --> <xsl:with-param name="code" select="$remaining"/> <!-- $output is the $output from this invocation with $output-inc appended --> <xsl:with-param name="output"> <xsl:copy-of select="$output"/> <xsl:copy-of select="$output-inc"/> </xsl:with-param> <!-- $accumulator is the $accumulator from this invocation with $accumulator-inc added --> <xsl:with-param name="accumulator" select="$accumulator + $accumulator-inc"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
<reponame>LaudateCorpus1/RosettaCodeData <xsl:package xsl:version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:tour="http://www.seanbdurkin.id.au/tour" name="tour:tours"> <xsl:stylesheet> <xsl:function name="tour:manufacture-square" as="element(square)" visibility="public"> <xsl:param name="rank" as="xs:integer" /> <xsl:param name="file" as="xs:integer" /> <square file="$file" rank="$rank" /> </xsl:function> <xsl:function name="tour:on-board" as="xs:boolean" visibility="public"> <xsl:param name="rank" as="xs:integer" /> <xsl:param name="file" as="xs:integer" /> <xsl:copy-of select="($rank ge 1) and ($rank le 8) and ($file ge 1) and ($file le 8)" /> </xsl:function> <xsl:function name="tour:solve-tour" as="item()*" visibility="public"> <!-- Solves the tour for any specified piece. --> <!-- Outputs either a full solution of 64 squares, of if fail, a copy of the $state input. --> <xsl:param name="state" as="item()+" /> <xsl:variable name="compute-possible-moves" select="$state[. instance of function(*)]" as="function(element(square)) as element(square)*"> <xsl:variable name="way-points" select="$state/self::square" /> <xsl:choose> <xsl:when test="count($way-points) eq 64"> <xsl:sequence ="$state" /> </xsl:when> <xsl:otherwise> <xsl:sequence select=" let $try-move := function( $state as item()*, $move as item()) as item()*) { if $state/self::square[@file=$move/@file] [@rank=$move/@rank] then $state else tour:solve-tour( ( $state, $move) ) }, $possible-moves := $compute-possible-moves( $way-points[last()]) return if empty( $possible-moves) then $state else fn:fold-left( $try-move, $state, $possible-moves)" /> </xsl:otherwise> </xsl:choose> </xsl:variable></xsl:function> </xsl:stylesheet> <xsl:expose component="function" names="tour:manufacture-square tour:on-board tour:solve-tour" visibility="public" /> </xsl:package>