Re: Help with select-elements function

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
  • 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) <=
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA01180Thu, 2 Apr 1998 14:05:30 -0500 (EST)
        • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA01815Thu, 2 Apr 1998 14:18:33 -0500 (EST)
        • Russell Senior - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA02375Thu, 2 Apr 1998 14:48:51 -0500 (EST)
          • Russell Senior - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id PAA02802Thu, 2 Apr 1998 15:07:25 -0500 (EST)