Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
- >
- <xsl:output method="xml" indent="yes"/>
- <xsl:param name="DashboardEnvironment"></xsl:param>
- <xsl:template match="//Project">
- <style type="text/css">
- body, td, p {
- font-family: Arial, sans-serif;
- font-size:13px;
- }
- .title {
- font-weight:bold;
- }
- .description {
- font-style:italic;
- }
- .infoTable {
- background-color:#f5f5f5;
- border-collapse: collapse;
- }
- .infoTable td {
- border: 1px solid white;
- padding:5px;
- vertical-align:top;
- }
- .heading {
- color:#a19999;
- font-size:11px;
- text-transform:uppercase;
- }
- </style>
- <table style="width:100%" border="0" cellpadding="5" cellspacing="1" class="infoTable">
- <tbody>
- <tr>
- <td>
- <table style="border:none; width:100%;">
- <tbody>
- <tr>
- <td>
- <span class="heading">
- <xsl:text>Email</xsl:text>
- </span>
- <br />
- <xsl:value-of select="Requester/Email" disable-output-escaping="yes"/>
- </td>
- </tr>
- <tr>
- <td>
- <span class="heading">
- <xsl:text>Project Date</xsl:text>
- </span><br />
- <xsl:call-template name="formatdate">
- <xsl:with-param name="DateTimeStr" select="ProjectDate"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <td>
- <span class="heading">
- <xsl:text>Project ID</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectId" disable-output-escaping="yes"/>
- </td>
- </tr>
- <tr>
- <td>
- <span class="heading">
- <xsl:text>Use in Decision Support tool and or Health Information Technology:</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ContentUseQuestion" disable-output-escaping="yes"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td>
- <span class="heading">
- <xsl:text>Requester</xsl:text>
- </span>
- <br />
- <xsl:value-of select="Requester/FirstName" disable-output-escaping="yes"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="Requester/LastName" disable-output-escaping="yes"/>
- <xsl:text> </xsl:text>
- <xsl:for-each select="Requester/ListOfRequesterDegrees/RequesterDegree/Degree">
- <xsl:value-of select="Name" disable-output-escaping="yes"/>
- <xsl:if test="position() != last()">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:for-each>
- <br />
- <xsl:value-of select="Requester/Company" disable-output-escaping="yes"/>
- <br />
- <xsl:value-of select="Requester/Phone/PhoneNumber" disable-output-escaping="yes"/>
- <br />
- <xsl:value-of select="Requester/RequesterType/Name" disable-output-escaping="yes"/>
- <xsl:if test="Requester/RequesterOther != ''">
- <xsl:text> - </xsl:text>
- <xsl:value-of select="Requester/RequesterOther"/>
- </xsl:if>
- </td>
- <td>
- <span class="heading">
- <xsl:text>Address</xsl:text>
- </span>
- <br />
- <xsl:value-of select="Requester/Address/Country/Name" disable-output-escaping="yes"/>
- <br />
- <xsl:value-of select="Requester/Address/StreetLine1" disable-output-escaping="yes"/>
- <br />
- <xsl:if test="Requester/Address/StreetLine2 != ''">
- <xsl:value-of select="Requester/Address/StreetLine2"/>
- <br />
- </xsl:if>
- <xsl:value-of select="Requester/Address/City" disable-output-escaping="yes"/>
- <br />
- <xsl:value-of select="Requester/Address/State/Name" disable-output-escaping="yes"/>
- <br />
- <xsl:value-of select="Requester/Address/Zip" disable-output-escaping="yes"/>
- </td>
- </tr>
- </tbody>
- </table>
- <hr />
- <p>
- <strong>Request Information:</strong>
- </p>
- <table style="width:80%" border="0" cellpadding="5" cellspacing="0">
- <tbody>
- <xsl:for-each select="ProjectMaterials/ProjectMaterialUse">
- <tr>
- <xsl:choose>
- <xsl:when test="Source/Value != 9 and Source/Value != 91">
- <td colspan="5">
- <span class="title">
- <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
- </span>
- <br />
- <span class="description">
- <xsl:text>Name: </xsl:text>
- </span>
- <xsl:value-of select="GuidelineName" disable-output-escaping="yes" />
- <br />
- <span class="description">
- <xsl:text>Version: </xsl:text>
- </span>
- <xsl:choose>
- <xsl:when test="Major != ''">
- <xsl:value-of select="Major"/>
- <xsl:text>.</xsl:text>
- <xsl:value-of select="Year"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>N/A</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <br />
- <xsl:choose>
- <xsl:when test="Source/Value = 63">
- <span class="description">
- <xsl:text>Request Type: </xsl:text>
- </span>
- <xsl:choose>
- <xsl:when test="RequestType != ''">
- <xsl:value-of select="RequestType" disable-output-escaping="yes" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>N/A</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <br />
- </xsl:when>
- </xsl:choose>
- <span class="description">
- <xsl:text>Specific Information: </xsl:text>
- </span>
- <xsl:choose>
- <xsl:when test="SpecificInformation != ''">
- <xsl:value-of select="SpecificInformation" disable-output-escaping="yes" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>N/A</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:when>
- <xsl:when test="Source/Value = 91">
- <td colspan="5">
- <span class="title">
- <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
- </span>
- <br />
- <span class="description">
- <xsl:text>Other: </xsl:text>
- </span>
- <xsl:value-of select="Other" disable-output-escaping="yes" />
- <br />
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td colspan="5">
- <span class="title">
- <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
- </span>
- <br />
- <span class="description">
- <xsl:text>Volume: </xsl:text>
- </span>
- <xsl:value-of select="Volume"/>
- <br />
- <span class="description">
- <xsl:text>Issue: </xsl:text>
- </span>
- <xsl:value-of select="Issue"/>
- <br />
- <span class="description">
- <xsl:text>Year: </xsl:text>
- </span>
- <xsl:value-of select="Year"/>
- <br />
- <span class="description">
- <xsl:text>Page Number(s): </xsl:text>
- </span>
- <xsl:value-of select="SpecificInformation" disable-output-escaping="yes" />
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </tr>
- </xsl:for-each>
- <tr>
- <td colspan="5">
- <br />
- <br />
- <span class="title">
- <xsl:text>Intended Use</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/IntendedUse/Name" disable-output-escaping="yes" />
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="ProjectMaterials/ProjectMaterialUse/IntendedUse/Value = 46">
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Format(s)</xsl:text>
- </span>
- <br />
- <xsl:for-each select="ProjectMaterials/ProjectMaterialUse[1]/ListOfFormats/ProjectFormat">
- <xsl:value-of select="ProjectUse/Name" disable-output-escaping="yes"/>
- <xsl:if test="ProjectUse/Value = 16 or ProjectUse/Value = 13">
- <xsl:text> - </xsl:text>
- <xsl:value-of select="OtherFormat" disable-output-escaping="yes"/>
- </xsl:if>
- <xsl:if test="position() != last()">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Journal/Book Name</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/BookName" disable-output-escaping="yes" />
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Article/Chapter Name</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/ArticleName" disable-output-escaping="yes" />
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Authors/Editor(s)</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Author" disable-output-escaping="yes" />
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Publisher</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Publisher" disable-output-escaping="yes" />
- </td>
- </tr>
- </xsl:when>
- <xsl:when test="ProjectMaterials/ProjectMaterialUse/IntendedUse/Value = 47">
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Target Audience</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Audience" disable-output-escaping="yes" />
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Territory</xsl:text>
- </span>
- <br />
- <xsl:value-of select="Project/TerritoryList/CountryItemDictionary/Name" disable-output-escaping="yes" />
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Specific Use</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/SpecificUse" disable-output-escaping="yes" />
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Copies</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Copies"/>
- </td>
- </tr>
- <tr>
- <td>
- <span class="title">
- <xsl:text>Sponsor</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Sponsor"/>
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Project Language(s)</xsl:text>
- </span>
- <br />
- <xsl:for-each select="ProjectLanguages/ProjectLanguage">
- <xsl:value-of select="Name" disable-output-escaping="yes"/>
- <xsl:if test="position() != last()">, </xsl:if>
- </xsl:for-each>
- </td>
- </tr>
- <tr>
- <td colspan="5">
- <span class="title">
- <xsl:text>Comments</xsl:text>
- </span>
- <br />
- <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Comments" disable-output-escaping="yes"/>
- </td>
- </tr>
- </tbody>
- </table>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement