[Home] [By Thread] [By Date] [Recent Entries]
Am 1/19/2023 um 2:05 PM schrieb ohaya ohaya@xxxxxxxxx:
I tried the XSLT on the gateway, which does have XSLT 2.0. It looks like it worked, but it's generating some "EXTRANEOUS" output... specifically, it looks like is outputting the VALUE of some the other elements, I am not sure why :(...
Usually <xsl:template match="text()"/> helps against that.
B <xsl:template match="/record/adrRecord/personnel/ADM_ORG_CD"> <saml:Attribute Name="MY_ORG_CD" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string"> <xsl:value-of select="." /> </saml:AttributeValue> </saml:Attribute> </xsl:template> and not <xsl:template match="/record/adrRecord/personnel/ADM_ORG_CD"> <saml:Attribute Name="MY_ORG_CD" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> <saml:AttributeValue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string"> <xsl:value-of select="/record/adrRecord/personnel/ADM_ORG_CD" /> </saml:AttributeValue> </saml:Attribute> </xsl:template>
|

Cart



