XMLmind XML Editor - Support of XPath 1.0

Hussein Shafie

XMLmind Software

35 rue Louis Leblanc,
78120 Rambouillet,
France,
Phone: +33 (0)9 52 80 80 37,
Web: www.xmlmind.com/xmleditor
Email:  (public mailing list)

December 12, 2017

Abstract

XPath 1.0 is used everywhere in XMLmind XML Editor (XXE for short): to configure the editor, to script commands and even in CSS stylesheets. This document contains the reference for all the XPath 1.0 extension functions supported by XXE.

This document also contains the reference for XED, a very small, very simple scripting language based on XPath 1.0. Because XED allows to modify in place the document being edited, it can be used to script advanced macro-commands.


Table of Contents

I. Native XPath 1.0 support
1. XPath functions
1. Extension functions
2. Java™ methods as extension functions
II. The XED scripting language
2. Language syntax
1. Syntax
2. Text file encoding
3. Comments
4. Including a script file with include
5. Namespace declarations
6. Commands
7. Conditional processing with if
8. Repetition with for-each
9. Macro commands
10. XML templates
3. Predefined commands
1. break
2. continue
3. delete
4. delete-text
5. delete-key
6. error
7. group
8. insert-after
9. insert-before
10. insert-into
11. invoke
12. message
13. replace
14. remove-attribute
15. remove-property
16. save-document
17. script
18. set-attribute
19. set-doctype
20. set-element-name
21. set-property
22. set-variable
23. translate-chars
24. update-key
25. unwrap-element
26. variable
27. warning
28. wrap-element
Index

List of Examples

3.1. Basic use of command group()
3.2. Creating nested groups
3.3. Group members having different element types