🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #72

user variables set by conditional statements

#72
From: S_Kempf
Date: Tue, 03 Mar 2009 04:27
8 lines
1361 bytes
Hello all,

I am new to FM, using FM9p196. I would like to be able to set a user variable based on the value of an attribute.

For example, say I have a highest-level-element named "DOCUMENT" with an attribute color. Color is an optional choice string attribute with choices "black" or "white." I would like to be able to set text within the document to say "The document color number is BW-XXX" or "The document color number is WH-XXX". I thought I might be able to do this with a user variable, but cannot figure out how to put a conditional statement into the definition of the variable (e.g. if color = white, variable = WH-XXX). Is it possible to do this within framemaker, either as some conditional text statement or via a translation table in the reference pages, or some other way?

Thanks for you help.
SK
Technical Details
Message-ID: <59b818ce.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,7845c79b6f6bc364,start
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: S_Kempf@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.framemaker.sgml
Subject: user variables set by conditional statements
Message-ID: <59b818ce.-1@webcrossing.la2eafNXanI>
Date: Mon, 2 Mar 2009 20:27:02 -0800
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit