[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|