xsl-list
[Top] [All Lists]

Re: Need Help... can't get desired output

2005-10-11 04:13:53
In my process i need to look up each 1st td in the
table if it is equal, contained in, or not in the
before or after 'to' string. if it is contained in the
before or after 'to' string i need to have all the td
whose value is contained in the before or after
string.

--- UlyLee <ulyleeka(_at_)yahoo(_dot_)com> wrote:

I have this kind of XML source:

<A1>
  <A2>
    <AddLine>Name1 to Name2</AddLine>
  </A2>
  <A2>
    <AddLine>Name3 to Name4 Name5</AddLine>
  </A2>
  <A2>
    <AddLine>Name6 Name7 to Name8</AddLine>
  </A2>
  <A2>
    <AddLine>Name9 Name10 to Name11 Name
12</AddLine>
  </A2>
</A1>

I have another XML that looks like this:

<table>
<tr>
<td>Name1</td>
<td>NormalName1</td>
</tr>
<tr>
<td>Name2</td>
<td>NormalName2</td>
</tr>
<tr>
<td>Name3</td>
<td>NormalName3</td>
</tr>
<tr>
<td>Name4</td>
<td>NormalName4</td>
</tr>
<tr>
<td>Name6</td>
<td>NormalName6</td>
</tr>
<tr>
<td>Name8</td>
<td>NormalName8</td>
</tr>
</table>

My supposed output shoud be:
<A1>
  <A2>
    <AddLine>Name1 to Name2</AddLine>
   

<A3><from>NormalName1</from><to>NormalName2</to></A3>
  </A2>
  <A2>
    <AddLine>Name3 to Name4 Name5</AddLine>
   

<A3><from>NormalName3</from><to></to><excpt><from-to>Name4
</from-to> Name5</excpt></A3>
  </A2>
  <A2>
    <AddLine>Name6 Name7 to Name8</AddLine>
   

<A3><from></from><to>NormalName8</to><excpt><from-to>Name6</from-to>
Name7</excpt></A3>

  </A2>
</A1>

so far i can output the case wherein there is a
single
Name in the before 'to' or after 'to', but the rest
i'm stuck. can someboy help me with this?


              
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


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





        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.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>
--~--



<Prev in Thread] Current Thread [Next in Thread>