Subject: [xsl] returning the xsl:value-of of child node of type From: Ryan Daly <dalyrd@xxxxxxxxx> Date: Tue, 17 Dec 2002 18:45:59 -0800 (PST) |
Hello, I wish to return the Value of Statuscode in the following SAML response example. The stylesheet I am attempting to use is below the xml code. I beleive my difficulty stems from the inability to correctly handle a namespace in the apply-templates tag. xml code ----------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8" ?> <samlp:Response MajorVersion="x" MinorVersion="y" xmlns="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"> <Status> <!--This is the value I wish to return--> <StatusCode Value="Success" /> </Status> <saml:Assertion AssertionID="xxxx" IssueInstant="xxxxxx" Issuer="xxxx" MajorVersion="1" MinorVersion="0" xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"> <saml:AttributeStatement> <Subject> <NameIdentifier Format="xxxx" NameQualifier="xxx">CN=xxxxx,CN=xxxxx,OU=xxxx,OU=xxx,O=xx xxx,C=xxx</NameIdentifier> </Subject> <Attribute AttributeName="xxxxx"> <AttributeValue>xxxx</AttributeValue> </Attribute> </saml:AttributeStatement> </saml:Assertion> </samlp:Response> ---------------------------- excerpt from xsl <xsl:template match="/"> .... <xsl:apply-templates select="samlp:response/Status"/> </xsl:template> <xsl:template match="samlp:response/Status"> <xsl:value-of select="StatusCode/@Value"/> </xsl:template> ----------------- thanks in advance for your input __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] referencing a stylesheet , Joerg Heinicke | Thread | Re: [xsl] returning the xsl:value-o, Joerg Heinicke |
Re: [xsl] referencing a stylesheet , Joerg Heinicke | Date | Re: [xsl] returning the xsl:value-o, Joerg Heinicke |
Month |