Help with select-elements function

Subject: Help with select-elements function
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Thu, 02 Apr 1998 12:07:55 -0600
I'm trying to use select-elements to implement the html() location term.
However, my selection pattern doesn't match any elements when I include an
attribute spec.

If I use:

(select-elements
  (descendants locsrc)                 
  '( "a" ))

I get a node list of A elements, as I'd expect. However, if I use:

(select-elements                    
  (descendants locsrc)                 
  '( "a" ("NAME" namevalue)))

or 

(select-elements                    
  (descendants locsrc)                 
  '( "a" ("name" namevalue)))

Then I get no node list. The result of parsing the target document with
NSGMLS is:

(TESTTARGET
AID TOKEN OTTERS
(P
-All about otters in test target document
)P
AID TOKEN A-RESOURCE
(P
-This is another resource paragraph
)P
AID IMPLIED
(P
ANAME CDATA named-a-element
AHREF IMPLIED
(A
)A
-This is a paragraph with an A element
)P
)TESTTARGET

So the function should work.

Am I missing something about the use of attribute patterns?

Thanks,

Eliot
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>


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


Current Thread
  • Help with select-elements function
    • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA29774Thu, 2 Apr 1998 13:14:23 -0500 (EST) <=
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA00331Thu, 2 Apr 1998 13:40:34 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA00872Thu, 2 Apr 1998 13:56:29 -0500 (EST)
        • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA01119Thu, 2 Apr 1998 14:03:50 -0500 (EST)
      • G. Ken Holman - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA01590Thu, 2 Apr 1998 14:13:27 -0500 (EST)