[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

returning the xsl:value-of of child node of type

Subject: 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)
saml attribute
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.