<RefEntry id="match-substitute-sosofo">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename match-substitute-sosofo.html>

<RefMeta>
  <RefEntryTitle>match-substitute-sosofo</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>match-substitute-sosofo</RefName>
  <RefPurpose>Return matching sosofo from associative list</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(match-substitute-sosofo string assoc-list)
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Given a string and an associative list of strings and sosofos,
return the sosofo of the matching string, or return the literal
string as a sosofo.
</para>
<para>
(This function is used for a particular task in the DocBook stylesheets.
It may not be particularly general, but it<literal>s in </literal>dblib.dsl' because
there is nothing DTD-specific about it.)</para>


</RefSect1>

<RefSect1><Title>Author</Title>

<para>
Norman Walsh, &lt;ndw@nwalsh.com&gt;
</para>
</RefSect1>
<RefSect1><Title>Source Code</Title>

<ProgramListing>
(define (match-substitute-sosofo string assoc-list)
  ;; Return matching sosofo from associative list
  (if (assoc string assoc-list)
      (car (cdr (assoc string assoc-list)))
      (literal string)))
</ProgramListing>
</RefSect1>

</RefEntry>
