(dsssl) siblings

Subject: (dsssl) siblings
From: Dave Pawson <DaveP@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Feb 2002 06:25:28 +0000
Does the meaning of siblings in a grove equate with the definition
in an xml document model?

<doc>
<sect1 id="sect1id">
    <head>This is a heading</head>
    <p>This is text</p>
    <p>This is <em>bold</em></p>
    <p>This is <strong>strong</strong></p>
    <sect2 id="sect2id" att2="sect2attrib">
      <head>Section 2 heading</head>
      <p>Another paragraph  <anchor id="anchid">content</anchor></p>
     <sect3><head>Section 3 heading</head>
	<special id="spec">Content in section 3</special>
      </sect3>
    </sect2>
  </sect1>
</doc>

For element special:
 (literal "Siblings: " ( number->string (node-list-length (siblings))))

shows a count of 13, which simply doesn't make sense to me.
From the spec
4.29 siblings (of a node)
The other nodes in the grove that occur in the value of the origin-to-subnode relationship property of the origin of the node.


I interpret this as being the 'depth in the tree' relationship,
according to which the sibling count should be 0.

curious, regards DaveP


DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • (dsssl) siblings
    • Dave Pawson - Tue, 26 Feb 2002 01:22:11 -0500 (EST) <=
      • <Possible follow-ups>
      • DPawson - Wed, 27 Feb 2002 03:19:38 -0500 (EST)