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

obtaining details from a namespace

Subject: obtaining details from a namespace
From: William Crawley <william.crawley@xxxxxxxxxxxxxx>
Date: Wed, 21 Feb 2001 11:00:43 +0000 (GMT)
 obtaining details from a namespace
Hi All,

I have an XML source that has
.....
    <Keys>
        <NUIS3:DWELLING_TAB_V_KEYS 
NUIS3:POLICY_ID="AAJ9BDK86EHSPREM" 
NUIS3:INSURANCE_LINE_CD="HP" 
NUIS3:EFFECTIVE_DT="19-09-2000" 
NUIS3:DWELLING_NBR="1" NUIS3:HISTORY_VLD_NBR="0" 
NUIS3:QUOTE_SEQUENCE_NBR="0" NUIS3:CHECKSUM="" 
xmlns:NUIS3="urn:schemas-norwich-union:NUIS3"/>
        <DWELLING_CLIENT_V_KEYS 
xmlns:NUIS3="urn:schemas-norwich-union:NUIS3" 
NUIS3:POLICY_ID="" NUIS3:INSURANCE_LINE_CD="" 
NUIS3:EFFECTIVE_DT="" NUIS3:CLIENT_ID="" 
NUIS3:DCL_RLT_TYP_CD="" NUIS3:DWELLING_NBR="" 
NUIS3:HISTORY_VLD_NBR="" 
NUIS3:QUOTE_SEQUENCE_NBR="" NUIS3:CHECKSUM=""/>
        <CLIENT_ADDRESS_COMPOSITE_KEYS/>
    </Keys>
</Home></NU>

in it. I'm trying to obtain the POLICY_ID for 
output, but my match doesn't seem to work.

I have
<xsl:template match="Home/Keys">
		<xsl:attribute name="POLICY_ID">
			<xsl:value-of 
select="//NUIS3:DWELLING_TAB_V_KEYS/@POLICY_ID"/>
		</xsl:attribute>
</xsl:template>

This creates a blank POLICY_ID attribute but no 
value. If I chan ge the template to

<xsl:template 
match="Home/Keys/NUIS3:DWELLING_TAB_V_KEYS">...
and the call, then it doesn't even get into the 
template. Could someone tell me what my 
fundemental problem us here.

THanks
Bill Crawley

-------------------------------------------------
This mail sent through UK Online webmail

 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.