<?xml version="1.0"?>

<!-- ===============================================================================
                Copyright (c) 2011-2012 TCS Ltd
                Unpublished - All Rights Reserved
     ===============================================================================
File name: PCDM_ITEM_IACUC.xsl

Description:
Process all the IACUC Numbers in the xml file

02-Jan-2012		


  --> 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
           xmlns:plm="http://www.plmxml.org/Schemas/PLMXMLSchema">
<xsl:output method="html" indent="yes"/>


<xsl:template match="/">

<html>
<head>
<title>
ITEMID AND IACUC NUMBER
</title>
</head>

<body>
<script src="C:\tsort.js" type="text/javascript"></script>
function init()
{
	var Table1Sorter = new TSorter;
	Table1Sorter.init('sort');
}
	
window.onload = init;
 <div id="logo">
		<a href="/home"><img src="C:\Documents and Settings\348860\Desktop\New_Home_Logo.gif" alt="Ethicon" align="middle" title="Ethicon"/></a>        </div>
		<marquee behavior="slide" direction="left" scrollamount="3"><font face="cursive" size="3" color="red">Only for Pre-Clinical Users</font></marquee>
<h1>
<font face="cursive" size="5">ItemId &amp; IACUC Number</font>
</h1>

<table id="sort" border="1">

<tr>

<tr align="center" bgcolor="#B8CFEP">
<th><font face="cursive" size="3">ItemId</font></th>
<th><font face="cursive" size="3">IACUC Number</font></th>
<th><font face="cursive" size="3">Name</font></th>
</tr>
</tr>



<xsl:for-each select="/plm:PLMXML/plm:GeneralRelation">
<xsl:variable name="roid" select="substring-after(@relatedRefs,'#id2 #')"/>

<xsl:for-each select="/plm:PLMXML/plm:ProductRevision[@id = $roid]">
<xsl:variable name="namer" select="@name"/>
<xsl:variable name="ItemId" select="plm:UserData/plm:UserValue[position()=last()]/@value"/>

<xsl:for-each select="plm:UserData/plm:UserValue[position() &lt; last()]/plm:UserList/plm:Item">

<tr>

<td>
<xsl:value-of select="$ItemId"/>
</td>

<td>
<xsl:value-of select="@value"/>
</td>
<td>
<xsl:value-of select="$namer"/>
</td>
</tr>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2009. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="PCS0000008_A-StandardProtocol_test.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength=""
		          urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal"
		          customvalidator="">
			<advancedProp name="sInitialMode" value=""/>
			<advancedProp name="bXsltOneIsOkay" value="true"/>
			<advancedProp name="bSchemaAware" value="true"/>
			<advancedProp name="bXml11" value="false"/>
			<advancedProp name="iValidation" value="0"/>
			<advancedProp name="bExtensions" value="true"/>
			<advancedProp name="iWhitespace" value="0"/>
			<advancedProp name="sInitialTemplate" value=""/>
			<advancedProp name="bTinyTree" value="true"/>
			<advancedProp name="xsltVersion" value="2.0"/>
			<advancedProp name="bWarnings" value="true"/>
			<advancedProp name="bUseDTD" value="false"/>
			<advancedProp name="iErrorHandling" value="fatal"/>
		</scenario>
	</scenarios>
	<MapperMetaTag>
		<MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
		<MapperBlockPosition></MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->