File: string-X3Enodes.sgm

package info (click to toggle)
docbook-dsssl-doc 1.79-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,736 kB
  • sloc: makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<RefEntry id="string-X3Enodes">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename string-X3Enodes.html>

<RefMeta>
  <RefEntryTitle>string->nodes</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>string->nodes</RefName>
  <RefPurpose>no documented purpose</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(string->nodes s)
</Synopsis>
</RefSynopsisDiv>
<RefSect1><Title>Source Code</Title>

<ProgramListing>
(define (string->nodes s)
  ;; Escape XML characters...
  (let* ((achars (string-replace s "&#38;" "&#38;#38;#38;"))
	 (bchars (string-replace achars "&#60;" "&#38;#38;#60;"))
	 (cchars (string-replace bchars "&#62;" "&#38;#38;#62;")))
    (let ((doc (string-append "&#60;literal>&#60;!DOCTYPE doc [ &#60;!ELEMENT "
			      "doc - - (#PCDATA)> ]>&#60;doc>" cchars ";&#60;/doc>")))
      (children (node-property 'docelem (sgml-parse doc))))))
</ProgramListing>
</RefSect1>

</RefEntry>