xsl-list
[Top] [All Lists]

Fw: [xsl] Replacing values in the input file with values from a second file

2009-04-07 14:08:03

Martin,

has id values 'AB1a', 'AB2a', and 'AB3b'. So for the conref value 'AB2b'
there is no matching id.
sorry, I missed that.

After adjusting it works -- thank you for this nice XSLT 1.0 solution.


Mit besten Grüßen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----- Forwarded by Hermann Stamm-Wilbrandt/Germany/IBM on 04/07/2009 08:04
PM -----
                                                                       
             Martin Honnen                                             
             <Martin(_dot_)Honnen(_at_)gm                                       
  
             x.de>                                                      To
                                       
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
             04/07/2009 07:00                                           cc
             PM                                                        
                                                                   Subject
                                       Re: Fw: [xsl] Replacing values in
             Please respond to         the input file with values from a
             xsl-list(_at_)lists(_dot_)mu         second file                   
  
              lberrytech.com                                           
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




Hermann Stamm-Wilbrandt wrote:

but the Bananas are missing ...

Yes, but if you look at the posted XML below then you see

<topic id="A">
   <title>Menus</title>
   <topic id="AB">
      <title>Menu AB Details</title>
      <body>
         <p id="AB1">
            <uicontrol conref="AB1a"/>
         </p>
         <p id="AB2">
            <uicontrol conref="AB2a"/>
               <uicontrol conref="AB2b"/>

that here we have conref values 'AB1a', 'AB2a', and 'AB2b' while the
second file


<topic id ="navigation-labels">
   <title>Navigation Labels</title>
   <body>
      <p><uicontrol id="AB1a">Oranges</uicontrol></p>
      <p><uicontrol id="AB2a">Apples</uicontrol></p>
      <p><uicontrol id="AB3b">Bananas</uicontrol></p>

has id values 'AB1a', 'AB2a', and 'AB3b'. So for the conref value 'AB2b'
there is no matching id.

--

             Martin Honnen
             http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--