/[webpac]/trunk/doc/formating_xml.txt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/doc/formating_xml.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24 - (hide annotations)
Sun Feb 23 06:55:00 2003 UTC (21 years, 1 month ago) by dpavlin
File MIME type: text/plain
File size: 1250 byte(s)
more docs

1 dpavlin 20
2    
3     <isis type="swish|display|index"
4     append="1"
5     format="one of formatting functions below"
6     filter="name"
7     >_pre_000x_sep_000x_sep_000x_post_</isis>
8    
9     format:
10     upper [from_char[,to_char]]
11    
12     makes field UPPERCASE
13     default: whole field
14    
15    
16     upper_w [word_nr[,...]
17    
18     make words in field UPPERCASE
19     default: first word
20    
21     substr from[,len]
22    
23     returns substring from some character in some length
24     default: len - rest of the string
25    
26     skip2nr
27 dpavlin 24 skip all alphanumeric characters and return just
28 dpavlin 20 numbers after it. To output "1992." from "cop. 1992."
29    
30     initial [word_nr[,...]]
31    
32     make word(s) into initials (upper case first char and
33     append dot after it)
34     default: first word
35    
36    
37     filter:
38     name of filter which is stored in filters/[name].pm
39 dpavlin 24
40    
41     Fields
42    
43     Fields which are read from isis are in format 999x where 999 is three
44     digit ISIS field and x is isis subfield. There are three special ISIS
45     fields supported: 10 and 11 (used for ISBN and ISSN, those are only
46     fields which have just two digits) and MFN which returns ISIS MFN.
47    
48    
49     Formatting fields
50    
51     It's done using simple algorithm: it first selects prefix and then
52     inserts fields (and their separators) or just skips them (so it groups
53     fields and separator right from it). At end it just appends suffix.
54    

Properties

Name Value
cvs2svn:cvs-rev 1.2

  ViewVC Help
Powered by ViewVC 1.1.26