Help with <nl>

Hi,

I am trying to render <nl> into xhtml 1.1 on the serverside but need some
advice on markup. Here is the scenario. As the user navigates the nodelist
should grow dynamically. The tree may be far bigger than I want to send to
build in memory on the server.

1. First request defaults to opening 'Home'.

a)

<nl xmlns:ext="urn:ext" ext:myhref="selectnode">
  <label>Home</label>
  <li href="selectnode" ext:state="collapsed">Section with children</li>
  <li href="getdocument">Document for display</li>
</nl>

b)

<nl xmlns:ext="urn:ext" ext:myhref="selectnode">
  <label>Home</label>
  <li>
    <nl ext:state="collapsed" ext:myhref="selectnode">
      <label>Section with children</label>
    </nl>
  </li>
  <li href="getdocument">Document for display</li>
</nl>

2. User clicks 'Section with children' resulting in second request.

<nl xmlns:ext="urn:ext" ext:myhref="selectnode">
  <label>Home</label>
  <li>
    <nl ext:myhref="selectnode">
      <label>Section with children</label>
      <li href="getdocument">Focus</li>
      <li href="getdocument">People</li>
    </nl>
  </li>
  <li href="getdocument">Document for display</li>
</nl>


My question is which is more correct 1a or 1b. Or doesn't it matter? Or is
there a better way? My stylesheet that will use  these nodelists will need
to be able to generate xhtml 1.1 hyperlinks for user navigation and display
different icons depending on whether a node is collapsed or expanded or
whether is a collection of resources or a resource itself.

Damon.

Received on Saturday, 31 January 2004 16:21:02 UTC