View | Details | Raw Unified | Return to bug 243345 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-man-xsltproc (+703 lines)
Line 0 Link Here
1
--- doc/xsltproc.1.orig	2020-01-14 06:28:43 UTC
2
+++ doc/xsltproc.1
3
@@ -30,69 +30,18 @@
4
 
5
 
6
 
7
-
8
-
9
 .SH "NAME"
10
 xsltproc \- command line XSLT processor
11
 
12
 .SH "SYNOPSIS"
13
 
14
-	.HP \w'\fBxsltproc\fR\ 'u
15
+.HP \w'\fBxsltproc\fR\ 'u
16
+\fBxsltproc\fR [[\fB\-V\fR | \fB\-\-version\fR] [\fB\-v\fR | \fB\-\-verbose\fR] [{\fB\-o\fR | \fB\-\-output\fR} {\fIFILE\fR | \fIDIRECTORY\fR}] | \fB\-\-timing\fR | \fB\-\-repeat\fR | \fB\-\-debug\fR | \fB\-\-novalid\fR | \fB\-\-noout\fR | \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR | \fB\-\-html\fR | \fB\-\-encoding\ \fR\fB\fIENCODING\fR\fR\fB\ \fR | \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR | \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR | \fB\-\-nonet\fR | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR | \fB\-\-load\-trace\fR | \fB\-\-catalogs\fR | \fB\-\-xinclude\fR | [\fB\-\-profile\fR\ |\ \fB\-\-norman\fR] | \fB\-\-dumpextensions\fR | \fB\-\-nowrite\fR | \fB\-\-nomkdir\fR | \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR | \fB\-\-nodtdattr\fR] [\fISTYLESHEET\fR] {\fIXML\-FILE\fR | \-}
17
 
18
-		\fBxsltproc\fR
19
-		 [
20
-			 [
21
-				 | \fB\-V\fR
22
-				 | \fB\-\-version\fR
23
-			]
24
-			 [
25
-				 | \fB\-v\fR
26
-				 | \fB\-\-verbose\fR
27
-			]
28
-			 [
29
-				 {
30
-					 | \fB\-o\fR
31
-					 | \fB\-\-output\fR
32
-				}
33
-				 {
34
-					 | \fIFILE\fR
35
-					 | \fIDIRECTORY\fR
36
-				}
37
-			]
38
-			 | \fB\-\-timing\fR
39
-			 | \fB\-\-repeat\fR
40
-			 | \fB\-\-debug\fR
41
-			 | \fB\-\-novalid\fR
42
-			 | \fB\-\-noout\fR
43
-			 | \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR
44
-			 | \fB\-\-html\fR
45
-			 | \fB\-\-encoding\ \fR\fB\fIENCODING\fR\fR\fB\ \fR
46
-			 | \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR
47
-			 | \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR
48
-			 | \fB\-\-nonet\fR
49
-			 | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
50
-			 | \fB\-\-load\-trace\fR
51
-			 | \fB\-\-catalogs\fR
52
-			 | \fB\-\-xinclude\fR
53
-			 | [\ |\ \fB\-\-profile\fR\ |\ \fB\-\-norman\fR\ ]
54
-			 | \fB\-\-dumpextensions\fR
55
-			 | \fB\-\-nowrite\fR
56
-			 | \fB\-\-nomkdir\fR
57
-			 | \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR
58
-			 | \fB\-\-nodtdattr\fR
59
-		]
60
-		 [\fISTYLESHEET\fR]
61
-		 {
62
-			 | \fIXML\-FILE\fR...
63
-			 | \-
64
-		}
65
-	
66
 
67
-
68
 .SH "DESCRIPTION"
69
+.PP
70
 
71
-	
72
-	.PP
73
 \fBxsltproc\fR
74
 is a command line tool for applying
75
 XSLT
76
@@ -100,21 +49,21 @@ stylesheets to
77
 XML
78
 documents\&. It is part of
79
 \fBlibxslt\fR(3), the XSLT C library for GNOME\&. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop\&.
80
+.PP
81
 
82
-	.PP
83
 \fBxsltproc\fR
84
 is invoked from the command line with the name of the stylesheet to be used followed by the name of the file or files to which the stylesheet is to be applied\&. It will use the standard input if a filename provided is
85
 \fB\-\fR
86
 \&.
87
+.PP
88
 
89
-	.PP
90
 If a stylesheet is included in an
91
 XML
92
 document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line\&.
93
 \fBxsltproc\fR
94
 will automatically detect the included stylesheet and use it\&.
95
+.PP
96
 
97
-	.PP
98
 By default, output is to
99
 stdout\&. You can specify a file for output using the
100
 \fB\-o\fR
101
@@ -124,16 +73,12 @@ option\&.
102
 
103
 
104
 .SH "OPTIONS"
105
+.PP
106
 
107
-	
108
-	.PP
109
 \fBxsltproc\fR
110
 accepts the following options (in alphabetical order):
111
+.PP
112
 
113
-	
114
-
115
-
116
-		.PP
117
 \fB\-\-catalogs\fR
118
 .RS 4
119
 
120
@@ -148,11 +93,9 @@ to resolve the location of external entities\&. By def
121
 looks for the catalog specified in
122
 \fBXML_CATALOG_FILES\fR\&. If that is not specified, it uses
123
 /etc/xml/catalog\&.
124
+.RE
125
+.PP
126
 
127
-	
128
-		.RE
129
-
130
-		.PP
131
 \fB\-\-debug\fR
132
 .RS 4
133
 
134
@@ -161,11 +104,9 @@ looks for the catalog specified in
135
 		Output an
136
 XML
137
 tree of the transformed document for debugging purposes\&.
138
+.RE
139
+.PP
140
 
141
-	
142
-		.RE
143
-
144
-		.PP
145
 \fB\-\-dumpextensions\fR
146
 .RS 4
147
 
148
@@ -173,11 +114,9 @@ tree of the transformed document for debugging purpose
149
 	
150
 		Dumps the list of all registered extensions on
151
 stdout\&.
152
+.RE
153
+.PP
154
 
155
-	
156
-		.RE
157
-
158
-		.PP
159
 \fB\-\-html\fR
160
 .RS 4
161
 
162
@@ -186,11 +125,9 @@ stdout\&.
163
 		The input document is an
164
 HTML
165
 file\&.
166
+.RE
167
+.PP
168
 
169
-	
170
-		.RE
171
-
172
-		.PP
173
 \fB\-\-load\-trace\fR
174
 .RS 4
175
 
176
@@ -198,11 +135,9 @@ file\&.
177
 	
178
 		Display all the documents loaded during the processing to
179
 stderr\&.
180
+.RE
181
+.PP
182
 
183
-	
184
-		.RE
185
-
186
-		.PP
187
 \fB\-\-maxdepth \fR\fB\fIVALUE\fR\fR
188
 .RS 4
189
 
190
@@ -211,11 +146,9 @@ stderr\&.
191
 		Adjust the maximum depth of the template stack before
192
 \fBlibxslt\fR(3)
193
 concludes it is in an infinite loop\&. The default is 3000\&.
194
+.RE
195
+.PP
196
 
197
-	
198
-		.RE
199
-
200
-		.PP
201
 \fB\-\-nodtdattr\fR
202
 .RS 4
203
 
204
@@ -223,22 +156,18 @@ concludes it is in an infinite loop\&. The default is 
205
 	
206
 		Do not apply default attributes from the document\*(Aqs
207
 DTD\&.
208
+.RE
209
+.PP
210
 
211
-	
212
-		.RE
213
-
214
-		.PP
215
 \fB\-\-nomkdir\fR
216
 .RS 4
217
 
218
 	
219
 	
220
 		Refuses to create directories\&.
221
+.RE
222
+.PP
223
 
224
-	
225
-		.RE
226
-
227
-		.PP
228
 \fB\-\-nonet\fR
229
 .RS 4
230
 
231
@@ -246,22 +175,18 @@ DTD\&.
232
 	
233
 		Do not use the Internet to fetch
234
 DTDs, entities or documents\&.
235
+.RE
236
+.PP
237
 
238
-	
239
-		.RE
240
-
241
-		.PP
242
 \fB\-\-noout\fR
243
 .RS 4
244
 
245
 	
246
 	
247
 		Do not output the result\&.
248
+.RE
249
+.PP
250
 
251
-	
252
-		.RE
253
-
254
-		.PP
255
 \fB\-\-novalid\fR
256
 .RS 4
257
 
258
@@ -269,22 +194,18 @@ DTDs, entities or documents\&.
259
 	
260
 		Skip loading the document\*(Aqs
261
 DTD\&.
262
+.RE
263
+.PP
264
 
265
-	
266
-		.RE
267
-
268
-		.PP
269
 \fB\-\-nowrite\fR
270
 .RS 4
271
 
272
 	
273
 	
274
 		Refuses to write to any file or resource\&.
275
+.RE
276
+.PP
277
 
278
-	
279
-		.RE
280
-
281
-		.PP
282
 \fB\-o\fR or \fB\-\-output\fR \fIFILE\fR | \fIDIRECTORY\fR
283
 .RS 4
284
 
285
@@ -295,7 +216,7 @@ DTD\&.
286
 \fIDIRECTORY\fR
287
 directs the output files to the specified directory\&. This can be useful for multiple outputs (also known as "chunking") or manpage processing\&.
288
 
289
-		.if n \{\
290
+.if n \{\
291
 .sp
292
 .\}
293
 .RS 4
294
@@ -311,10 +232,9 @@ directs the output files to the specified directory\&.
295
 			The given directory
296
 \fBmust\fR
297
 already exist\&.
298
-
299
-		.sp .5v
300
+.sp .5v
301
 .RE
302
-		.if n \{\
303
+.if n \{\
304
 .sp
305
 .\}
306
 .RS 4
307
@@ -339,22 +259,20 @@ will maybe not work, but
308
 \fB\-o directory/\fR
309
 will\&.
310
 
311
-		.sp .5v
312
+.sp .5v
313
 .RE
314
-	
315
-		.RE
316
+.RE
317
+.PP
318
 
319
-		.PP
320
 \fB\-\-encoding \fR\fB\fIENCODING\fR\fR
321
 .RS 4
322
 
323
 	
324
 	
325
 		Allow to specify the encoding for the input\&.
326
+.RE
327
+.PP
328
 
329
-	
330
-		.RE
331
-		.PP
332
 \fB\-\-param \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
333
 .RS 4
334
 
335
@@ -367,11 +285,9 @@ and value
336
 to the stylesheet\&. You may pass multiple name/value pairs up to a maximum of 32\&. If the value being passed is a string, you can use
337
 \fB\-\-stringparam\fR
338
 instead, to avoid additional quote characters that appear in string expressions\&. Note: the XPath expression must be UTF\-8 encoded\&.
339
+.RE
340
+.PP
341
 
342
-	
343
-		.RE
344
-
345
-		.PP
346
 \fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
347
 .RS 4
348
 
349
@@ -381,33 +297,27 @@ instead, to avoid additional quote characters that app
350
 \fIPATHS\fR
351
 to load
352
 DTDs, entities or documents\&. Enclose space\-separated lists by quotation marks\&.
353
+.RE
354
+.PP
355
 
356
-	
357
-		.RE
358
-
359
-		.PP
360
 \fB\-\-profile\fR or \fB\-\-norman\fR
361
 .RS 4
362
 
363
 	
364
 	
365
 		Output profiling information detailing the amount of time spent in each part of the stylesheet\&. This is useful in optimizing stylesheet performance\&.
366
+.RE
367
+.PP
368
 
369
-	
370
-		.RE
371
-
372
-		.PP
373
 \fB\-\-repeat\fR
374
 .RS 4
375
 
376
 	
377
 	
378
 		Run the transformation 20 times\&. Used for timing tests\&.
379
+.RE
380
+.PP
381
 
382
-	
383
-		.RE
384
-
385
-		.PP
386
 \fB\-\-stringparam \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
387
 .RS 4
388
 
389
@@ -422,22 +332,18 @@ where
390
 is a string rather than a node identifier\&.
391
 \fBNote:\fR
392
 The string must be UTF\-8 encoded\&.
393
+.RE
394
+.PP
395
 
396
-	
397
-		.RE
398
-
399
-		.PP
400
 \fB\-\-timing\fR
401
 .RS 4
402
 
403
 	
404
 	
405
 		Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result\&. Displayed in milliseconds\&.
406
+.RE
407
+.PP
408
 
409
-	
410
-		.RE
411
-
412
-		.PP
413
 \fB\-v\fR or \fB\-\-verbose\fR
414
 .RS 4
415
 
416
@@ -446,11 +352,9 @@ The string must be UTF\-8 encoded\&.
417
 		Output each step taken by
418
 \fBxsltproc\fR
419
 in processing the stylesheet and the document\&.
420
+.RE
421
+.PP
422
 
423
-	
424
-		.RE
425
-
426
-		.PP
427
 \fB\-V\fR or \fB\-\-version\fR
428
 .RS 4
429
 
430
@@ -461,11 +365,9 @@ in processing the stylesheet and the document\&.
431
 and
432
 \fBlibxslt\fR(3)
433
 used\&.
434
+.RE
435
+.PP
436
 
437
-	
438
-		.RE
439
-
440
-		.PP
441
 \fB\-\-writesubtree \fR\fB\fIPATH\fR\fR
442
 .RS 4
443
 
444
@@ -474,11 +376,9 @@ used\&.
445
 		Allow file write only within the
446
 \fIPATH\fR
447
 subtree\&.
448
+.RE
449
+.PP
450
 
451
-	
452
-		.RE
453
-
454
-		.PP
455
 \fB\-\-xinclude\fR
456
 .RS 4
457
 
458
@@ -486,19 +386,14 @@ subtree\&.
459
 	
460
 		Process the input document using the XInclude specification\&. More details on this can be found in the XInclude specification:
461
 \m[blue]\fB\%http://www.w3.org/TR/xinclude/\fR\m[]
462
+.RE
463
 
464
 	
465
-		.RE
466
 
467
-	
468
-
469
 .SH "ENVIRONMENT"
470
+.PP
471
 
472
-	
473
-	
474
 
475
-
476
-		.PP
477
 \fBSGML_CATALOG_FILES\fR
478
 .RS 4
479
 
480
@@ -510,11 +405,9 @@ catalog behavior can be changed by redirecting queries
481
 environment variable to a list of catalogs\&. An empty one should deactivate loading the default
482
 /etc/sgml/catalog
483
 catalog\&.
484
+.RE
485
+.PP
486
 
487
-	
488
-		.RE
489
-
490
-		.PP
491
 \fBXML_CATALOG_FILES\fR
492
 .RS 4
493
 
494
@@ -526,160 +419,132 @@ catalog behavior can be changed by redirecting queries
495
 environment variable to a list of catalogs\&. An empty one should deactivate loading the default
496
 /etc/xml/catalog
497
 catalog\&.
498
+.RE
499
 
500
 	
501
-		.RE
502
 
503
-	
504
-
505
 .SH "DIAGNOSTICS"
506
+.PP
507
 
508
-	
509
-	.PP
510
+
511
 \fBxsltproc\fR
512
 return codes provide information that can be used when calling it from scripts\&.
513
+.PP
514
 
515
-	
516
 
517
-
518
-		.PP
519
 \fB0\fR
520
 .RS 4
521
 
522
 	
523
 	
524
 		No error (normal operation)
525
+.RE
526
+.PP
527
 
528
-	
529
-		.RE
530
-
531
-		.PP
532
 \fB1\fR
533
 .RS 4
534
 
535
 	
536
 	
537
 		No argument
538
+.RE
539
+.PP
540
 
541
-	
542
-		.RE
543
 
544
-		.PP
545
 \fB2\fR
546
 .RS 4
547
 
548
 	
549
 	
550
 		Too many parameters
551
+.RE
552
+.PP
553
 
554
-	
555
-		.RE
556
-
557
-		.PP
558
 \fB3\fR
559
 .RS 4
560
 
561
 	
562
 	
563
 		Unknown option
564
+.RE
565
+.PP
566
 
567
-	
568
-		.RE
569
-
570
-		.PP
571
 \fB4\fR
572
 .RS 4
573
 
574
 	
575
 	
576
 		Failed to parse the stylesheet
577
+.RE
578
+.PP
579
 
580
-	
581
-		.RE
582
-
583
-		.PP
584
 \fB5\fR
585
 .RS 4
586
 
587
 	
588
 	
589
 		Error in the stylesheet
590
+.RE
591
+.PP
592
 
593
-	
594
-		.RE
595
-
596
-		.PP
597
 \fB6\fR
598
 .RS 4
599
 
600
 	
601
 	
602
 		Error in one of the documents
603
+.RE
604
+.PP
605
 
606
-	
607
-		.RE
608
-
609
-		.PP
610
 \fB7\fR
611
 .RS 4
612
 
613
 	
614
 	
615
 		Unsupported xsl:output method
616
+.RE
617
+.PP
618
 
619
-	
620
-		.RE
621
-
622
-		.PP
623
 \fB8\fR
624
 .RS 4
625
 
626
 	
627
 	
628
 		String parameter contains both quote and double\-quotes
629
+.RE
630
+.PP
631
 
632
-	
633
-		.RE
634
-
635
-		.PP
636
 \fB9\fR
637
 .RS 4
638
 
639
 	
640
 	
641
 		Internal processing error
642
+.RE
643
+.PP
644
 
645
-	
646
-		.RE
647
-
648
-		.PP
649
 \fB10\fR
650
 .RS 4
651
 
652
 	
653
 	
654
 		Processing was stopped by a terminating message
655
+.RE
656
+.PP
657
 
658
-	
659
-		.RE
660
-
661
-		.PP
662
 \fB11\fR
663
 .RS 4
664
 
665
 	
666
 	
667
 		Could not write the result to the output file
668
+.RE
669
 
670
-	
671
-		.RE
672
 
673
-	
674
-
675
 .SH "SEE ALSO"
676
+.PP
677
 
678
-	
679
-	.PP
680
+
681
 \fBlibxml\fR(3),
682
 \fBlibxslt\fR(3)
683
 
684
@@ -698,8 +563,8 @@ More information can be found at
685
 				\fBlibxml\fR(3)
686
 web page
687
 \m[blue]\fB\%http://www.xmlsoft.org/\fR\m[]
688
+.RE
689
 
690
-			.RE
691
 .sp
692
 .RS 4
693
 .ie n \{\
694
@@ -714,8 +579,8 @@ web page
695
 XSLT
696
 page
697
 \m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[]
698
+.RE
699
 
700
-			.RE
701
 .sp
702
 
703
 

Return to bug 243345