|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: First Stab at Implementing XPoi, W. Eliot Kimber | Thread | Re: Help with select-elements funct, Tony Graham |
| Re: Why Doesn't Substing Work, W. Eliot Kimber | Date | Re: Help with select-elements funct, Tony Graham |
| Month |