<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet 
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:Monster="http://schemas.monster.com/MonsterHeader"
	xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:m="http://schemas.monster.com/Monster"
	>
<xsl:output 
	method="xml"
	omit-xml-declaration="yes"
	indent="yes"
	/>

<xsl:template match="/"><xsl:apply-templates /></xsl:template>

<xsl:template match="m:SchoolOrInstitution">
	<xsl:element name="SchoolOrInstitution">
		<xsl:attribute name="monsterId"><xsl:value-of select="@monsterId" /></xsl:attribute>
		<xsl:copy-of select="*" />
		<xsl:element name="GPA"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='133']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="GPAMax"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='134']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="TotalCredits"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='135']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="CreditSystem"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='136']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="OtherCreditSystem"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='137']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="Major"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='138']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="Minor"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='139']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
		<xsl:element name="Honors"><xsl:value-of select="//m:CustomQuestion[@customQuestionId='140']/m:CQAnswer[@monsterReferenceId=current()/@monsterId]/m:AnswerText" /></xsl:element>
	</xsl:element>

</xsl:template>

<xsl:template match="text()" />

</xsl:stylesheet>
