xsl-list
[Top] [All Lists]

multiple paths in the "use" in key....I'm getting desperate - please help

2005-07-07 14:52:01




Im getting desperate: I've been fighting this problem for 10 hours now....

And I'm sure the solution is quite simple.

I want to take the address codes in AddressSpecific: (municipalitycode, 
streetcode,
streetbuildingIdentifier)
and look them up in the XIaddressSpecific element AND RETURN THE CORRECT
XIaddressSpecificLabelStructure

How do I do that?

I have been trying using keys, with multiple paths in the "use":

      <xsl:key name="ForwardingAddressPostCodeIdentifier" 
match="PostCodeIdentifier" use="
../../AddressSpecific/cpr:MunicipalityCode and 
../../AddressSpecific/cpr:StreetCode and
../../AddressSpecific/StreetBuildingIdentifier" />
      <xsl:key name="ForwardingAddressDistrictName" match="DistrictName" use="
../../AddressSpecific/cpr:MunicipalityCode and 
../../AddressSpecific/cpr:StreetCode and
../../AddressSpecific/dkcc2:StreetBuildingIdentifier" />
      <xsl:key name="ForwardingAddressFloorIdentifier" match="FloorIdentifier" 
use="
../../AddressSpecific/cpr:MunicipalityCode and 
../../AddressSpecific/cpr:StreetCode and
../../AddressSpecific/StreetBuildingIdentifier"/>
      <xsl:key name="ForwardingAddressSuiteIdentifier" match="SuiteIdentifier" 
use="
../../AddressSpecific/cpr:MunicipalityCode and 
../../AddressSpecific/cpr:StreetCode and
../../AddressSpecific/StreetBuildingIdentifier"/>


but the "and" between the paths in the "use" doesn't seem to work. PLEASE HELP 
ME! I'm going soon
nuts

on beforehand thanx

          <ForwardingAddressStructure>
             <AddressSpecific>
                        <MunicipalityCode>0840</MunicipalityCode>
                        <StreetCode>3270</StreetCode>
                        <StreetBuildingIdentifier>135</StreetBuildingIdentifier>
            </AddressSpecific>
         </ForwardingAddressStructure>

  <XIaddressCollection>
   <XIaddressStructure>
     <xkom:AddressSpecific>
             <MunicipalityCode>0750</MunicipalityCode>
             <StreetCode>3270</StreetCode>
             <StreetBuildingIdentifier>256</StreetBuildingIdentifier>
             <FloorIdentifier>3</FloorIdentifier>
             <SuiteIdentifier>MF</SuiteIdentifier>
     </AddressSpecific>
     <XIaddressSpecificLabelStructure>
             <StreetName>paradisæblevej 5</StreetName>
                  <PostCodeIdentifier>9999</PostCodeIdentifier>
                  <DistrictName>skagen</DistrictName>
     </XIaddressSpecificLabelStructure>
   </XIaddressStructure>
   <XIaddressStructure>
     <AddressSpecific>
            <MunicipalityCode>0840</MunicipalityCode>
            <StreetCode>3270</StreetCode>
            <StreetBuildingIdentifier>135</StreetBuildingIdentifier>
            <FloorIdentifier>2</FloorIdentifier>
            <SuiteIdentifier>TV</SuiteIdentifier>
     </xkom:AddressSpecific>
     <XIaddressSpecificLabelStructure>
                  <StreetName>Danmarksgade 20</StreetName>
                  <PostCodeIdentifier>9000</PostCodeIdentifier>
                  <DistrictName>aalborg</DistrictName>
     </XIaddressSpecificLabelStructure>
   </XIaddressStructure>
 </XIaddressCollection>



/Best regards,
Christian






--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--