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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
|
/**************************************************************************
debugXSL.h - describes the core xsldbg shell functions
-------------------
begin : Sun Sep 16 2001
copyright : (C) 2001 by Keith Isdale
email : [email protected]
**************************************************************************/
/**************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
**************************************************************************/
/*
* Orinal file : debugXML.h : This is a set of routines used for
* debugging the tree produced by the XML parser.
*
* New file : debugXSL.h : Debug support version
*
* See Copyright for the status of this software.
*
* Daniel Veillard <[email protected]>
*
* Permission abtained to modify the LGPL'd code and extend to include
* break points, inspections of stylesheet source, xml data, stylesheet
* variables Keith Isdale <[email protected]>
*/
#ifndef __DEBUG_XSL__
#define __DEBUG_XSL__
#ifdef USE_XSLDBG_AS_THREAD
#include "xsldbgmsg.h"
#include "xsldbgthread.h"
#endif
/* We want skip most of these includes when building documentation*/
#ifndef BUILD_DOCS
#include "utils.h"
#include "breakpoint.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define DEBUG_BUFFER_SIZE 500 /*used by xslDbgShell */
/* how may items have been printed */
extern int printCount;
/* used to indicated that xsldbg should stop tracing/walking
value : 1 stop tracing at start of next cycle
value : 0 normal operation
*/
extern int xsldbgStop;
extern int xsldbgValidateBreakpoints;
/* Some versions of libxml/libxslt need a different type of
line numbers handling */
extern int xsldbgHasLineNumberFix;
extern bool xsldbgReachedFirstTemplate;
/****************************************************************
* *
* The XSL shell related structures and functions *
* *
****************************************************************/
/*
Note that functions that have a prefix of xslDbgShell are NOT implemented
in debugXSL.c unless stated
All functions with the prefix of debygXSL are implemented in debugXSL.c
*/
#ifdef USE_GNOME_DOCS
/**
* debugXSLBreak:
* @templ: The source node being executed
* @node: The data node being processed
* @root: The template being applied to "node"
* @ctxt: The transform context for stylesheet being processed
*
* A break point has been found so pass control to user
*/
#else
#ifdef USE_KDE_DOCS
/**
* A break point has been found so pass control to user
*
* @param templ The source node being executed
* @param node The data node being processed
* @param root The template being applied to "node"
* @param ctxt transform context for stylesheet being processed
*/
#endif
#endif
void debugXSLBreak(xmlNodePtr templ, xmlNodePtr node,
xsltTemplatePtr root, xsltTransformContextPtr ctxt);
#ifdef USE_GNOME_DOCS
/**
* debugXSLGetTemplate:
*
* Get the last template node found, if any
*
* Returns The last template node found, if any
*/
#else
#ifdef USE_KDE_DOCS
/**
* Get the last template node found, if any
*
* @returns the last template node found, if any
*/
#endif
#endif
xsltTemplatePtr debugXSLGetTemplate(void);
/* -----------------------------------------
Break Point related commands
They are implemented in breakpoint_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellFrameBreak:
* @arg: Is valid number of frames to change location by
* @stepup: If != 1 then we step up, otherwise step down
*
* Set a "frame" break point either up or down from here
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Set a "frame" break point either up or down from here
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg Is valid and in UTF-8
* @param stepup If != 1 then we step up, otherwise step down
*/
#endif
#endif
int xslDbgShellFrameBreak(xmlChar * arg, int stepup);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellBreak:
* @arg: Is valid and in UTF-8
* @style: Is valid
* @ctxt: Is valid
*
* Add break point specified by arg
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Add break point specified by arg
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg Is valid and in UTF-8
* @param style Is valid
* @param ctxt Is valid
*/
#endif
#endif
int xslDbgShellBreak(xmlChar * arg, xsltStylesheetPtr style,
xsltTransformContextPtr ctxt);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellDelete:
* @arg: Is valid and in UTF-8
*
* Delete break point specified by arg
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Delete break point specified by arg
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg Is valid and in UTF-8
*/
#endif
#endif
int xslDbgShellDelete(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellEnableBreakPoint:
* @payload: A valid xslBreakPointPtr
* @data: Enable type, a pointer to an integer
* for a value of
* 1 enable break point
* 0 disable break point
* -1 toggle enabling of break point
* @name: Not used
*
* Enable/disable break points via use of scan of break points
*/
#else
#ifdef USE_KDE_DOCS
/**
* Enable/disable break points via use of scan of break points
*
* @param payload Is valid xslBreakPointPtr
* @param data Enable type, a pointer to an integer
* for a value of
* @li 1 enable break point
* @li 0 disable break point
* @li -1 toggle enabling of break point
* @param name Not used
*/
#endif
#endif
void xslDbgShellEnableBreakPoint(void *payload, void *data,
xmlChar * name);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellEnable:
* @arg : is valid enable "commmand text" and in UTF-8
* @enableType : enable break point if 1, disable if 0, toggle if -1
*
* Enable/disable break point specified by arg using enable
* type of @enableType
* Returns 1 if successful,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Enable/disable break point specified by arg using enable
*
* @param arg: is valid enable "commmand text" and in UTF-8
* @param enableType : enable break point if 1, disable if 0, toggle if -1
*
* @returns 1 if successful,
* 0 otherwise
*/
#endif
#endif
int xslDbgShellEnable(xmlChar * arg, int enableType);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellPrintBreakPoint:
* @payload: A valid xslBreakPointPtr
* @data: Not used
* @name: Not used
*
* Print data given by scan of break points
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print data given by scan of break points
*
* @param payload Is valid xslBreakPointPtr
* @param data Not used
* @param name Not used
*/
#endif
#endif
void xslDbgShellPrintBreakPoint(void *payload, void *data,
xmlChar * name);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellValidateBreakPoint:
* @payload: A valid xslBreakPointPtr
* @data: Not used
* @name: Not used
*
* Print an warning if a breakpoint is invalid
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print an warning if a breakpoint is invalid
*
* @param payload Is valid xslBreakPointPtr
* @param data Not used
* @param name Not used
*/
#endif
#endif
void xslDbgShellValidateBreakPoint(void *payload, void *data,
xmlChar * name);
/* -----------------------------------------
Template related commands
They are implemented in template_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellPrintStyleSheets:
* @arg: The stylesheets of interests and in UTF-8, is NULL for all stylesheets
*
* Print stylesheets that can be found in loaded stylsheet
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print stylesheets that can be found in loaded stylsheet
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg The stylesheets of interests and in UTF-8, is NULL for all stylesheets
*
*/
#endif
#endif
int xslDbgShellPrintStyleSheets(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellPrintTemplateNames:
* @styleCtxt: Is valid
* @ctxt: Not used
* @arg: Not used
* @verbose: If 1 then print extra messages about templates found,
* otherwise print normal messages only
* @allFiles: If 1 then look for all templates in stylsheets found in
* @styleCtxt
* otherwise look in the stylesheet found by
* debugXSLBreak function
*
* Print out the list of template names found that match critieria
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print out the list of template names found that match critieria
*
* @param styleCtxt Is valid
* @param ctxt Not used
* @param arg Not used
* @param verbose If 1 then print extra messages about templates found,
* otherwise print normal messages only
* @param allFiles If 1 then look for all templates in stylsheets found in
* @p styleCtxt
* otherwise look in the stylesheet found by
* debugXSLBreak function
* @returns 1 on success,
* 0 otherwise
*/
#endif
#endif
int xslDbgShellPrintTemplateNames(xsltTransformContextPtr styleCtxt,
xmlShellCtxtPtr ctxt,
xmlChar * arg, int verbose,
int allFiles);
/* -----------------------------------------
Node viewing related commands
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellPrintList:
* @ctxt: The current shell context
* @arg: What xpath to display and in UTF-8
* @dir: If 1 print in dir mode?,
* otherwise ls mode
*
* Print list of nodes in either ls or dir format
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print list of nodes in either ls or dir format
*
* @returns 1 on success,
* 0 otherwise
*
* @param ctxt The current shell context
* @param arg What xpath to display and in UTF-8
* @param dir If 1 print in dir mode,
* otherwise ls mode
*/
#endif
#endif
int xslDbgShellPrintList(xmlShellCtxtPtr ctxt, xmlChar * arg, int dir);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellCat:
* @styleCtxt: the current stylesheet context
* @ctxt: The current shell context
* @arg: The xpath to print and in UTF-8
*
* Print the result of an xpath expression. This can include variables
* if styleCtxt is not NULL
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print the result of an xpath expression. This can include variables
* if styleCtxt is not NULL
*
* @returns 1 on success,
* 0 otherwise
*
* @param styleCtxt Current stylesheet context
* @param ctxt Current shell context
* @param arg The xpath to print and in UTF-8
*/
#endif
#endif
int xslDbgShellCat(xsltTransformContextPtr styleCtxt,
xmlShellCtxtPtr ctxt, xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellPrintVariable:
* @styleCtxt: The current stylesheet context
* @arg: The name of variable to look for '$' prefix is optional and in UTF-8
* @type: A valid VariableTypeEnum
*
* Print the value variable specified by args.
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print the value variable specified by args.
*
* @returns 1 on success,
* 0 otherwise
*
* @param styleCtxt The current stylesheet context
* @param arg The name of variable to look for '$' prefix is optional and in UTF-8
* @param type Is valid VariableTypeEnum
*/
#endif
#endif
int xslDbgShellPrintVariable(xsltTransformContextPtr styleCtxt,
xmlChar * arg, VariableTypeEnum type);
/* -----------------------------------------
File related command
Implemented in file_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellOutput:
* @arg : Is valid, either a local file name which will be expanded
* if needed, or a "file://" protocol URI
*
* Set the output file name to use
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* xslDbgShellOutput:
* @arg : Is valid, either a local file name which will be expanded
* if needed, or a "file://" protocol URI
*
* Set the output file name to use
*
* Returns 1 on success,
* 0 otherwise
*/
#endif
#endif
int xslDbgShellOutput(const xmlChar *arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgEntities:
*
* Print list of entites found
*
* Returns 1 on sucess,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
#endif
#endif
int xslDbgEntities(void);
#ifdef USE_GNOME_DOCS
/**
* xslDbgSystem:
* @arg : Is valid in UTF-8
*
* Print what a system file @arg maps to via the current xml catalog
*
* Returns 1 on sucess,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print what a system file @p arg maps to via the current xml catalog
*
* @param arg Is valid in UTF-8
*
* @returns 1 on sucess,
* 0 otherwise
*/
#endif
#endif
int xslDbgSystem(const xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgPublic:
* @arg : Is valid PublicID in UTF-8
*
* Print what a public ID @arg maps to via the current xml catalog
*
* Returns 1 on sucess,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print what a public ID @p arg maps to via the current xml catalog
*
* @param arg Is valid PublicID in UTF-8
*
* @returns 1 on sucess,
* 0 otherwise
*/
#endif
#endif
int xslDbgPublic(const xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgEncoding:
* @arg: Is valid encoding supported by libxml2
*
* Set current encoding to use for output to standard output
*
* Returns 1 on sucess,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Set current encoding to use for output to standard output
*
* @param arg Is valid encoding supported by libxml2
*
*
* Returns 1 on sucess,
*/
#endif
#endif
int xslDbgEncoding(xmlChar * arg);
/* -----------------------------------------
Operating system related commands
Implemented in os_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellChangeWd:
* @path: The path to change to and in UTF-8
*
* Change the current working directory of the operating system
*
* Returns 1 if able to change xsldbg's working directory to @path
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* @returns 1 if able to change xsldbg working direcorty to @p path
* 0 otherwise
*
* @param path Operating system path(directory) to change to and in UTF-8
*/
#endif
#endif
int xslDbgShellChangeWd(xmlChar * path);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellExecute:
* @name: The name of command string to be executed by operating system shell
* @verbose: If 1 then print extra debugging messages,
* normal messages otherwise
*
* Execute an operating system command
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* @returns 1 if able to execute command @p name,
* 0 otherwise
*
* @param name The name of command string to be executed
* by operating system shell
* @param verbose If 1 then print extra debugging messages,
* normal messages otherwise
*/
#endif
#endif
int xslDbgShellExecute(xmlChar * name, int verbose);
/* -----------------------------------------
libxslt parameter related commands
Implemented in param_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellAddParam:
* @arg: A string comprised of two words separated by
* one or more spaces which are in UTF-8.
*
* Add a libxslt parameter to be sent to libxslt later on
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/*
* Add a parameter to be sent to libxslt later on
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg A string comprised of two words separated by
* one or more spaces which are in UTF-8
*/
#endif
#endif
int xslDbgShellAddParam(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellDelParam:
* @arg: A single white space trimmed parameter number to look for
*
* Delete a libxslt parameter that was to be sent to libxslt later on
*
* Returns 1 if able to delete parameter @name,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Delete a libxslt parameter that was to be sent to libxslt later on
*
* @returns 1 if able to delete parameter @p name,
* 0 otherwise
*
* @param arg A single white space trimmed libxslt parameter number to look for
*/
#endif
#endif
int xslDbgShellDelParam(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellShowParam:
* @arg: Not used
*
* Print list of current paramters
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Print list of current paramters
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg Not used
*/
#endif
#endif
int xslDbgShellShowParam(xmlChar * arg);
/* -----------------------------------------
*
* Option related commands
*
* Implemented in option_cmds.c
*
* ------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellSetOption:
* @arg: Is valid, and in the format <NAME> <VALUE>
*
* Set the value of an option
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Set the value of an option
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg is valid, and in format <NAME> <VALUE>
*
*/
#endif
#endif
int xslDbgShellSetOption(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellOptions:
*
* Prints out values for user options
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Prints out values for user options
*
* @returns 1 on success,
* 0 otherwise
*/
#endif
#endif
int xslDbgShellOptions(void);
/**
* xslDbgShellShowWatches:
* @styleCtxt: the current stylesheet context
* @ctxt: The current shell context
* @showWarnings : If 1 then showWarning messages,
* otherwise do not show warning messages
*
* Print the current watches and their values
*
* Returns 1 on success,
* 0 otherwise
*/
int xslDbgShellShowWatches(xsltTransformContextPtr styleCtxt,
xmlShellCtxtPtr ctx,int showWarnings);
/**
* xslDbgShellAddWatch:
* @arg : A valid xPath of expression to watch the value of
*
* Add expression to list of expressions to watch value of
*
* Returns 1 on success,
* 0 otherwise
*/
int xslDbgShellAddWatch(xmlChar* arg);
/**
* xslDbgShellDeleteWatch:
* @arg : A watch ID to remove
*
* Delete a given watch ID from our list of expressions to watch
*
* Returns 1 on success,
* 0 otherwise
*/
int xslDbgShellDeleteWatch(xmlChar* arg);
/* -----------------------------------------
*
* Tracing, walking related commands
*
* Implemented in shell.c
*
* ------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellTrace:
* @arg: Not used
*
* Start the tracing of the stylesheet. First need to restart it.
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Start the tracing of the stylesheet. First need to restart it.
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg Not used
*/
#endif
#endif
int xslDbgShellTrace(xmlChar * arg);
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellWalk:
* @arg: An interger between 0 and 9 indicate the speed of walk
*
* Start walking through the stylesheet.
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Start walking through the stylesheet.
*
* @returns 1 on success,
* 0 otherwise
*
* @param arg An interger between 0 and 9 indicate the speed of walk
*/
#endif
#endif
int xslDbgShellWalk(xmlChar * arg);
/* -----------------------------------------
*
* Seach related commands
*
* Implemented in search_cmds.c
* ------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellSearch:
* @styleCtxt: Is valid
* @style: Is valid
* @arg: The xpath query to use for searching dataBase
*
* Displays the result of performing a query on the search dataBase
*
* Returns 1 if able to run query with @arg,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* @returns 1 if able to run query with @p arg,
* 0 otherwise
*
* @param styleCtxt Is valid
* @param style Is valid
* @param arg The xpath query to use for searching dataBase
*/
#endif
#endif
int xslDbgShellSearch(xsltTransformContextPtr styleCtxt,
xsltStylesheetPtr style, xmlChar * arg);
/* -----------------------------------------
Seach related commands
Implemented in variable_cmds.c
------------------------------------------- */
#ifdef USE_GNOME_DOCS
/**
* xslDbgShellSetVariable:
* @styleCtxt : Is valid
* @arg : Is valid must be in the format of
* <VARIABLE_NAME> <XPATH>
*
* Change the value of a global or local variable
*
* Returns 1 on success,
* 0 otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Change the value of a global or local variable
*
* @param styleCtxt Is valid
* @param arg Is valid must be in the format of
* <VARIABLE_NAME> <XPATH>
*
* @returns 1 on success,
* 0 otherwise
*/
#endif
#endif
int xslDbgShellSetVariable(xsltTransformContextPtr styleCtxt,
xmlChar * arg);
#ifdef __cplusplus
}
#endif
#endif
/* __DEBUG_XSL__ */
|