<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
	<xsl:output omit-xml-declaration="yes" method="xml" indent="no" />	
	<xsl:template match="saml:Attribute">
		<xsl:choose>
			<xsl:when test="current()/@AttributeName='USER_FIRSTNAME'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileFirstName</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_LASTNAME'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileLastName</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<!-- <xsl:element name="saml:AttributeValue"><xsl:value-of select="current()"/></xsl:element>	-->
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_ADDRESS1'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileAddress1</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_ADDRESS2'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileAddress2</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_CITY'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileCity</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>		
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_STATE'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileState</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>		
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_ZIPCODE'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfilePostalCode</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>			
				</xsl:element>
			</xsl:when>
			<xsl:when test="current()/@AttributeName='USER_EMAIL'">
				<xsl:element name="saml:Attribute">
					<xsl:attribute name="AttributeName">UserProfileEmailAddress</xsl:attribute>
					<xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
					<xsl:copy-of select="current()/saml:AttributeValue"></xsl:copy-of>	
				</xsl:element>
			</xsl:when>
			<xsl:otherwise>
				<xsl:copy>
					<xsl:apply-templates select="node()|@*"/>
				</xsl:copy>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>	
	<xsl:template match="saml:AttributeStatement">
		<xsl:element name="saml:AttributeStatement">
			<xsl:apply-templates select="node()|@*"/>
			<!-- 
			<xsl:element name="saml:Attribute"><xsl:attribute name="AttributeName">Template</xsl:attribute><xsl:attribute name="AttributeNamespace">ssd_xsl</xsl:attribute>
				<xsl:element name="saml:AttributeValue">SSD Print on Demand</xsl:element>					
			</xsl:element>
			-->
		</xsl:element>
	</xsl:template>
	<xsl:template match="node()|@*">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>
		</xsl:copy>
	</xsl:template>
</xsl:transform>