enriquelion
New Member
I'm using saxon 9he, eclipse, tomcat 7. I'm going to paraphrase the code. When I run the transformation I get all the values I want in the for each except InsurerId. If I change (in debug) the xml to InsurerId2 and xsl to get the value of InsurerId2 it works. I have two fields that are give me this trouble, I was at one time able to get this between that time I have added changed to xsl 2.0,changed from saxon 6, added current-date function . This is very confusing please help. xml \[code\]<PersDriver id="001"> <ItemIdInfo> <InsurerId>001</InsurerId> </ItemIdInfo> <GeneralPartyInfo> <NameInfo> <PersonName> <Surname>DALESANDRO</Surname> <GivenName>MAKIEH</GivenName> <OtherGivenName> </OtherGivenName> <TitlePrefix> </TitlePrefix> <NameSuffix> </NameSuffix> </PersonName> <TaxIdentity> <TaxIdTypeCd>SSN</TaxIdTypeCd> <TaxId>666-18-6774</TaxId> </TaxIdentity> </NameInfo> </GeneralPartyInfo> <DriverInfo> <PersonInfo> <GenderCd>M</GenderCd> <BirthDt>1979-08-23</BirthDt> <MaritalStatusCd> </MaritalStatusCd> </PersonInfo> <DriversLicense> <LicensedDt>2007-08-23</LicensedDt> <DriversLicenseNumber>882827206</DriversLicenseNumber> <StateProvCd>TN</StateProvCd> </DriversLicense> </DriverInfo> <PersDriverInfo> <DefensiveDriverDt /> <DriverRelationshipToApplicantCd> </DriverRelationshipToApplicantCd> <DriverTrainingInd /> <GoodDriverInd /> <GoodStudentCd /> </PersDriverInfo> </PersDriver>\[/code\]xsl\[code\]<xsl:for-each select="$RsXml/InsuranceSvcRs/com.csc_PolicyOrderCurrentCarrierInqRs/PersDriver"> <driver type_code="DP" id="0"> <prefix> <xsl:value-of select="GeneralPartyInfo/NameInfo/PersonName/TitlePrefix"/> </prefix> <firstname> <xsl:value-of select="GeneralPartyInfo/NameInfo/PersonName/GivenName"/> </firstname> <midname/> <lastname> <xsl:value-of select="GeneralPartyInfo/NameInfo/PersonName/Surname"/> </lastname> <suffix> <xsl:value-of select="GeneralPartyInfo/NameInfo/PersonName/NameSuffix"/> </suffix> <sex> <xsl:value-of select="DriverInfo/PersonInfo/GenderCd"/> </sex> <dateofbirth> <xsl:value-of select="DriverInfo/PersonInfo/BirthDt"/> </dateofbirth> <ssn> <xsl:value-of select="GeneralPartyInfo/NameInfo/TaxIdentity/TaxId"/> </ssn> <maritalstatus> <xsl:value-of select="DriverInfo/PersonInfo/MaritalStatusCd"/> </maritalstatus> <occupation/> <homephone/> <workphone/> <cellphone/> <homeemail/> <workemail/> <licensestate> <xsl:value-of select="DriverInfo/DriversLicense/StateProvCd"/> </licensestate> <licensenumber> <xsl:value-of select="DriverInfo/DriversLicense/DriversLicenseNumber"/> </licensenumber> <xsl:message> <TEST> <xsl:value-of select="ItemIdInfo/InsurerId"/> </TEST> </xsl:message> <xsl:choose> <xsl:when test="@id=001"> <namedinsured>true</namedinsured> </xsl:when> <xsltherwise> <namedinsured>false</namedinsured> </xsltherwise> </xsl:choose> <namedinsured2></namedinsured2> <driver></driver> <livewithparents/> <vehicledriven/> <driveworkschool/> <keptatcollege/> <beensuspended/> <business></business> <beenarrested/> <client_id></client_id> <violations/> <accidents/> </driver> </xsl:for-each> </xsl:copy></xsl:template>\[/code\]