W3C home > Mailing lists > Public > www-html@w3.org > January 2004

Help with <nl>

From: Damon Rand <damon@cybermagic.co.nz>
Date: Sat, 31 Jan 2004 21:00:27 -0000
Message-ID: <000201c3e83d$4c999ad0$6403a8c0@a5gard.net>
To: <www-html@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:59 GMT