🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #1740

Re: Generating text from an attribute

#1740
From: Russ Ward
Date: Thu, 24 Jun 2004 11:37
15 lines
1559 bytes
Hi Darryl,

You can. For the "productname" element, you would need a prefix rule something like this:

Prefix: <$attribute[label:book]>

...which indicates to print the text from the "label" attribute of the closest ancestor (or self) "book" element. Provided that you have no other "book" elements except for the highest-level element, it should work. And, if you have a default value specified for the "label" attribute in your EDD, it will come through if nothing else is specified.

Since you have the possibility of two different HLEs (highest-level elements), I imagine the following prefix would be adequate for all situations, provided that only one "book" or "set" element would ever appear in any given document:

Prefix: <$attribute[label:book]><$attribute[label:set]>

For more information on this syntax, check out the Structure Developer's Guide on page 162 (FM 7.0 doc)

Russ
Technical Details
Message-ID: <3bb4bded.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb4bded.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcc08,976a74bc363bc246
X-Google-Attributes: gidfcc08,public
From: "Russ Ward" <russ@weststreetconsulting.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.framemaker.sgml
Subject: Re: Generating text from an attribute
Message-ID: <3bb4bded.0@webx.la2eafNXanI>
Date: Thu, 24 Jun 2004 04:37:03 -0700
References: <3bb4bded.-1@webx.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit