Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Straight List to Nested ul/lis

From: <johndoe@------.--->
To: NULL
Date: 11/1/2004 4:30:00 PM
Below is sample Data I have.
Columns are
    CategoryID,
    CategoryName
    TreeView
    OrderView

3 List C0ntrol           1      01.00
 7 Item Manipulation  11    01.01.00
 4 TreeList                 1      02.00
 8 Item Manipulation  11    02.01.00
 9 Tips and Tricks      11    02.02.00
 5 Message Board     1      03.00
 6 Outlook Control    1      04.00

I am wondering if there is a quick and dirty way to create nested LI's based 
off of the following data
sample output would be
<ul>
    <li>list contorl
        <ul>
            <li>Item Manipulation</li>
        </ul>
    </li>
    <li>TreeList
        <ul>
            <li>Item Manipulation</li>
            <li>Tips and Tricks</li>
        </ul>
    </li>
    <li>Message Board</li>
    <li>Outlook Control</li>
</ul>

I am hoping there is a straight forward method to iterating through the 
items.
I have also wondered if maybe there is a way I can select all items that 
have a string-length of 1
iterate through that list
    and for each item in the list grab the Substring of OrderView Length Of 
TreeView * 3
    and then select all Items that are begin with it
or match a set pattern
    02.??
so that it would match 02.00 , 02.01, 02.02 but not match 02.01.01

I somehow get the feeling that the last methid would be nigh to impossible 
with XPath. Look forward to any comments and/or suggestions and/or pointers





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent