|
Subject: Re: Help with select-elements function From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx> Date: Thu, 02 Apr 1998 21:06:11 +0200 |
At 12:07 98/04/02 -0600, W. Eliot Kimber wrote:
>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.
I just tried the following test, and the test works fine ... perhaps we
will need to see more of your problem.
............... Ken
T:\FTEMP>type test.sgm
<!DOCTYPE doc [
<!ELEMENT doc - O ( thing+ )>
<!ELEMENT thing - O ( #PCDATA )>
<!ATTLIST thing att CDATA #REQUIRED>
]><doc>
<thing att="t1">Thing1
<thing att="t2">Thing2
<thing att="t3">Thing3
<thing att="t4">Thing4
T:\FTEMP>type test.dsl
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
(element doc
(process-node-list
(select-elements
(children (current-node))
'("THING" ("ATT" "t3")))))
; end of file
T:\FTEMP>jade -c p:\jade\jadecurr\catalog test.sgm
T:\FTEMP>type test.fot
<?xml version="1.0"?>
<fot>
<a name="0"/>
<a name="3"/>
<text>Thing3</text>
</fot>
T:\FTEMP>
--
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd. http://www.CraneSoftwrights.com
Box 266, V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995
PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp
Training: http://www.CraneSoftwrights.com/schedule.htm
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Help with select-elements funct, Chris Maden | Thread | Re: Help with select-elements funct, W. Eliot Kimber |
| Re: Help with select-elements funct, W. Eliot Kimber | Date | Re: Help with select-elements funct, Chris Maden |
| Month |