<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:spif="http://www.xmlspif.org/spif">
	<xsl:output method="html"/>
    <xsl:param name="oidwebsite">http://www.oid-info.com/get/</xsl:param>	
	
	<xsl:template match="/spif:SPIF">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">

<head profile="http://gmpg.org/xfn/11"><title><xsl:value-of select="spif:securityPolicyId/@name"/> Security Policy Information File </title>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	
	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://xmlspif.org/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://xmlspif.org/wp-includes/wlwmanifest.xml" /> 
<script type='text/javascript' src='http://www.xmlspif.org/wp-includes/js/jquery/jquery.js?ver=1.2.6'></script>
<script type='text/javascript' src='http://www.xmlspif.org/wp-includes/js/jquery/jquery.form.js?ver=2.02'></script>
<meta name="generator" content="WordPress 2.7.1" />

<link rel="stylesheet" href="http://xmlspif.org/wp-content/plugins/contact-form-7/stylesheet.css" type="text/css" /><script type='text/javascript' src='http://www.xmlspif.org/wp-content/plugins/contact-form-7/contact-form-7.js'></script>

<meta name="wp_theme" content="Tarski 2.4" />
<meta name="description" content="The Home of the Open XML SPIF" />
<meta name="robots" content="all" />

<link rel="stylesheet" href="http://www.xmlspif.org/wp-content/themes/tarski/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://www.xmlspif.org/wp-content/themes/tarski/library/css/screen.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="http://www.xmlspif.org/wp-content/themes/tarski/library/css/print.css" type="text/css" media="print" />

<script type="text/javascript" src="http://www.xmlspif.org/wp-content/themes/tarski/app/js/tarski.js"></script>
<script type="text/javascript" src="http://www.xmlspif.org/wp-includes/js/comment-reply.js"></script>

<link rel="alternate" type="application/rss+xml" title="XMLSPIF.org feed" href="http://www.xmlspif.org/?feed=rss2" />
</head>

<body id="page-example-spifs" class="centre"><div id="wrapper">

<div id="header">

	<div id="header-image"><img alt="Header image" src="http://www.xmlspif.org/wp-content/themes/tarski/headers/xmlspif.jpg" /></div>

<div id="title">
	<p id="blog-title"><a title="Return to main page" href="http://www.xmlspif.org" rel="home">XMLSPIF.org</a></p>
	<p id="tagline">The Home of the Open XML SPIF</p></div>
<div id="navigation" class="clearfix">
<ul class="primary xoxo">

<li><a href="#information">Information</a></li>
<li><a href="#classifications">Classifications</a></li>
<xsl:if test="spif:privacyMarks">
	<li><a href="#privacyMarks">Privacy Marks</a></li>
</xsl:if>
<xsl:if test="spif:securityCategoryTagSets">
	<li><a href="#securityCategoryTagSets">Tag Sets</a></li>
</xsl:if>
</ul>

<div class="secondary">
</div></div>

</div>

<div id="content" class="clearfix">
<div class="primary">

		
				
							
				<div class="entry hentry">
					
					<div class="meta">
						<h1 class="title entry-title"><xsl:value-of select="spif:securityPolicyId/@name"/> Security Policy Information File</h1>
													<p class="metadata"><span class="edit">(<a class="post-edit-link" href="http://www.xmlspif.org/wp-admin/page.php?action=edit&amp;post=4" title="Edit post">edit page</a>)</span></p>											</div>

					
					<div class="content">
<p id="information"><strong>Information</strong></p>
<table border="1">
<tbody>
<tr>
<td><p><strong>Policy Name:</strong></p></td>
<td>
<p><xsl:value-of select="spif:securityPolicyId/@name"/></p>
</td>
<td width="20%"><p><strong>Policy ID:</strong></p></td>
<td width="30%">
<a href="{$oidwebsite}{spif:securityPolicyId/@id}">
<xsl:value-of select="spif:securityPolicyId/@id"/>
</a>
</td>
</tr>
<tr>
<th>Version:</th>
<td>
<xsl:value-of select="@version"/>
</td>
<th>Creation Date:</th>
<td>
<xsl:value-of select="@creationDate"/>
</td>
</tr>
<tr>
<th>Originator DN:</th>
<td>
<xsl:value-of select="@originatorDN"/>
</td>
<th>Key Identifier:</th>
<td>
<xsl:value-of select="@keyIdentifier"/>
</td>
</tr>
<tr>
<th>Privilege ID:</th>
<td>
<xsl:value-of select="@privilegeId"/>
</td>
<th>RBAC ID:</th>
<td>
<xsl:value-of select="@rbacId"/>
</td>
</tr>
<xsl:if test="defaultSecurityPolicyId">
<tr>
<th>Default Policy Name:</th>
<td>
<xsl:value-of select="spif:defaultSecurityPolicyId/@name"/>
</td>
<th>Default Policy ID:</th>
<td>
<xsl:value-of select="spif:defaultSecurityPolicyId/@id"/>
</td>
</tr>
</xsl:if>
<tr>
<th>Note:</th>
<td colspan="3">
<i>
There may be additional information contained within the XML Security Policy which is not displayed on this page.
</i>
</td>
</tr>
</tbody>
</table>
<p/>
<p id="classifications"><strong>Classifications</strong></p>

<p class="index">
(
<xsl:apply-templates select="spif:securityClassifications/spif:securityClassification" mode="index"/>
)
</p>

<table align="center" class="classifications">
<tbody>
<tr>
<th>Name</th>
<th>LACV</th>
<th>Hierarchy</th>
<th>Colour</th>
</tr>
<xsl:apply-templates select="spif:securityClassifications/spif:securityClassification"/>
</tbody>
</table>
<p/>

<xsl:if test="spif:privacyMarks">
<p id="privacyMarks"><strong>Privacy Marks</strong></p>

<table align="center" class="privacyMarks">

<tbody>
<xsl:apply-templates select="spif:privacyMarks/spif:privacyMark"/>
</tbody>
</table>
<hr/>
</xsl:if>

<xsl:if test="spif:securityCategoryTagSets">
<p id="securityCategoryTagSets"><strong>Tag Sets</strong></p>

<p class="index">
(
<xsl:apply-templates select="spif:securityCategoryTagSets/spif:securityCategoryTagSet" mode="index"/>
)
</p>

<table width="100%" border="1" class="securityCategoryTagSets">

<tbody>
<xsl:apply-templates select="spif:securityCategoryTagSets/spif:securityCategoryTagSet"/>
</tbody>
</table>
<hr/>
</xsl:if>
											</div>

										
				</div> <!-- /entry -->
				
				
			
	

	
</div>
	
<div id="sidebar" class="secondary">

	<div id="linkcat-3" class="widget widget_links"><h3>Links</h3>

	<ul class='xoxo blogroll'>
<li><a href="http://www.xmlspif.org" target="_blank">XMLSPIF</a></li>

	</ul>
</div>
		
</div>
</div> <!-- /main content -->


<div id="footer" class="clearfix">
	
	<div class="secondary">
		
		<div id="search" class="widget widget_search"><div class="searchbox">
	<form method="get" id="searchform" action="http://www.xmlspif.org"><fieldset>
		<label for="s" id="searchlabel">Search this site</label>
		<input type="text" value="" name="s" id="s" />
		<input type="submit" id="searchsubmit" value="Search" />
	</fieldset></form>

</div></div>		
	</div> <!-- /secondary -->
	
	<div class="primary">
		
				
	</div> <!-- /primary -->
	
	<div id="theme-info" class="clearfix">
		
		<div class="secondary">
	<p><a class="feed" href="http://www.xmlspif.org/?feed=rss2">Subscribe to feed</a></p>
</div><div class="primary content">
	<p>Powered by <a href="http://wordpress.org/">WordPress</a> and <a href="http://tarskitheme.com/">Tarski</a></p>

</div>		
	</div> <!-- /theme-info -->
	
</div> <!-- /footer -->

</div></body></html>	</xsl:template>

	<xsl:template match="spif:securityClassification">
		<tr bgcolor="{@color}" id="{@name}">
			<td align="left">
			   <xsl:choose>
					<xsl:when test="@obsolete = 'true'"><strike><xsl:value-of select="@name"/></strike></xsl:when>
					<xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
				</xsl:choose>
			</td>
			<td align="center">
				<xsl:value-of select="@lacv"/>
			</td>
			<td align="center">
				<xsl:value-of select="@hierarchy"/>
			</td>
			<td>
				<xsl:value-of select="@color"/>
			</td>
		</tr>
	</xsl:template>
	
	<xsl:template match="spif:securityCategoryTagSet">
		<tr id="{@name}">
		  <td width="10%" valign="top">
				<table width="100%">
					<tr>
						<th class="horizontal" width="50%">Category Tag Set:</th>
						<td align="left"><xsl:value-of select="@name"/></td>
					</tr>
					<tr>
						<th class="horizontal">ID:</th>
						<td align="left"><xsl:value-of select="@id"/></td>
					</tr>
					<tr>
						<td class="index" colspan="2">(<xsl:apply-templates select="spif:securityCategoryTag" mode="index"/>)</td>
					</tr>	
				</table>
		   </td>
			<td>
				<table class="securityCategoryTags" width="100%">
					<tbody>
						<xsl:apply-templates select="spif:securityCategoryTag"/>
					</tbody>
				</table>
			</td>
		</tr>
		<tr/>
	</xsl:template>
	
	<xsl:template match="spif:securityCategoryTag">
	        <tr id="{@name}">
	        <td width="30%" valign="top">
				<table width="100%">
					<tr>
						<th class="horizontal" width="50%">Category Tag:</th>
						<td align="left"><xsl:value-of select="@name"/></td>
					</tr>
					<tr>
						<th class="horizontal">Type:</th>
						<td align="left"><xsl:value-of select="@tagType"/></td>
					</tr>				
					<xsl:if test="@enumType">
						<tr>
							<th class="horizontal">Enum Type:</th>
							<td align="left"><xsl:value-of select="@enumType"/></td>
						</tr>				
					</xsl:if>
					<xsl:if test="@tag7Encoding">	    
					   <tr>
							<th class="horizontal">Tag7 Encoding:</th>
							<td align="left"><xsl:value-of select="@tag7Encoding"/></td>
						</tr>
					</xsl:if>
					<xsl:if test="@singleSelection">					    
						<tr>
							<th class="horizontal">Single selection:</th>
							<td align="left"><xsl:value-of select="@singleSelection"/></td>
						</tr>
					</xsl:if>
				</table>  
			  </td>
			  <td valign="top">
			     <table class="tagCategories" width="100%">
					<tbody>
						<tr>
								<th width="50%">Category</th><th>LACV</th>
						</tr>
						<xsl:apply-templates select="spif:tagCategory" />
					</tbody>
				</table>
			  </td>
			</tr>
	</xsl:template>
	
	<xsl:template match="spif:tagCategory">
		<tr id="{@name}">
			<td align="left">
				<xsl:choose>
					<xsl:when test="@obsolete = 'true'"><strike><xsl:value-of select="@name"/></strike></xsl:when>
					<xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
				</xsl:choose>
			</td>
			<td align="left">
				<xsl:value-of select="@lacv"/><xsl:if test="@requiredClass">(requires <a href="#{@requiredClass}"><xsl:value-of select="@requiredClass"/>)</a></xsl:if>
			</td>
		</tr>
	</xsl:template>

	<xsl:template match="spif:privacyMark">
		<tr id="{@name}">
			<td align="left">
				<xsl:choose>
					<xsl:when test="@obsolete = 'true'"><strike><xsl:value-of select="@name"/></strike></xsl:when>
					<xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
	</xsl:template>
	
<xsl:template match="spif:securityClassification|spif:securityCategoryTagSet|spif:securityCategoryTag"	mode="index">
    <xsl:if test="position()!= 1">, </xsl:if><a href="#{@name}"><xsl:value-of select="@name" /></a> 
</xsl:template>
	
</xsl:stylesheet>

