Subject: [xsl] obtaining details from a namespace From: William Crawley <william.crawley@xxxxxxxxxxxxxx> Date: Wed, 21 Feb 2001 11:00:43 +0000 (GMT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XQuery (was Designs for X, DPawson | Thread | RE: [xsl] obtaining details from a , Michael Kay |
Re: [xsl] RE: Designs for XSLT func, Jeni Tennison | Date | Re: Designs for XSLT functions (Was, David . Rosenborg |
Month |