File: xconst.go

package info (click to toggle)
golang-github-christrenkamp-goxpath 1.0~alpha3%2Bgit20170922.c385f95-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 308 kB
  • sloc: sh: 16; makefile: 3; xml: 3
file content (66 lines) | stat: -rw-r--r-- 1,970 bytes parent folder | download | duplicates (2)
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
package xconst

const (
	//AxisAncestor represents the "ancestor" axis
	AxisAncestor = "ancestor"
	//AxisAncestorOrSelf represents the "ancestor-or-self" axis
	AxisAncestorOrSelf = "ancestor-or-self"
	//AxisAttribute represents the "attribute" axis
	AxisAttribute = "attribute"
	//AxisChild represents the "child" axis
	AxisChild = "child"
	//AxisDescendent represents the "descendant" axis
	AxisDescendent = "descendant"
	//AxisDescendentOrSelf represents the "descendant-or-self" axis
	AxisDescendentOrSelf = "descendant-or-self"
	//AxisFollowing represents the "following" axis
	AxisFollowing = "following"
	//AxisFollowingSibling represents the "following-sibling" axis
	AxisFollowingSibling = "following-sibling"
	//AxisNamespace represents the "namespace" axis
	AxisNamespace = "namespace"
	//AxisParent represents the "parent" axis
	AxisParent = "parent"
	//AxisPreceding represents the "preceding" axis
	AxisPreceding = "preceding"
	//AxisPrecedingSibling represents the "preceding-sibling" axis
	AxisPrecedingSibling = "preceding-sibling"
	//AxisSelf represents the "self" axis
	AxisSelf = "self"
)

//AxisNames is all the possible Axis identifiers wrapped in an array for convenience
var AxisNames = []string{
	AxisAncestor,
	AxisAncestorOrSelf,
	AxisAttribute,
	AxisChild,
	AxisDescendent,
	AxisDescendentOrSelf,
	AxisFollowing,
	AxisFollowingSibling,
	AxisNamespace,
	AxisParent,
	AxisPreceding,
	AxisPrecedingSibling,
	AxisSelf,
}

const (
	//NodeTypeComment represents the "comment" node test
	NodeTypeComment = "comment"
	//NodeTypeText represents the "text" node test
	NodeTypeText = "text"
	//NodeTypeProcInst represents the "processing-instruction" node test
	NodeTypeProcInst = "processing-instruction"
	//NodeTypeNode represents the "node" node test
	NodeTypeNode = "node"
)

//NodeTypes is all the possible node tests wrapped in an array for convenience
var NodeTypes = []string{
	NodeTypeComment,
	NodeTypeText,
	NodeTypeProcInst,
	NodeTypeNode,
}