Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 6b3585ea67ce3e79c9049b5b33294cdd > files > 670

docbook-style-dsssl-doc-1.79-16.mga7.noarch.rpm

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

<RefMeta>
  <RefEntryTitle>normalize</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>normalize</RefName>
  <RefPurpose>Normalize the str according to the SGML declaration in effect</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(normalize str)
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Performs SGML general name normalization on the string;
used to compare attribute names and generic identifiers correctly
according to the SGML declaration in effect; this is necessary
since XML is case-sensitive but the reference concrete syntax and
many SGML DTDs are not.</para>


</RefSect1>

<RefSect1><Title>Author</Title>

<para>
Chris Maden</para>
</RefSect1>
<RefSect1><Title>Source Code</Title>

<ProgramListing>
(define (normalize str)
  ;; Normalize the str according to the SGML declaration in effect
  (if (string? str)
      (general-name-normalize str
			      (current-node))
      str))
</ProgramListing>
</RefSect1>

</RefEntry>