This is an automated email from the ASF dual-hosted git repository.
mukulgandhi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xalan-site.git
The following commit(s) were added to refs/heads/master by this push:
new 73d3c784 committing few modifications to xalan-j documentation
73d3c784 is described below
commit 73d3c78473ce04b68b908f066471bf838d76982e
Author: Mukul Gandhi <[email protected]>
AuthorDate: Wed May 20 21:21:42 2026 +0530
committing few modifications to xalan-j documentation
---
xalan-j/design/xpath_op_map_component_design.html | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/xalan-j/design/xpath_op_map_component_design.html
b/xalan-j/design/xpath_op_map_component_design.html
index 81dfe87d..023eaa45 100644
--- a/xalan-j/design/xpath_op_map_component_design.html
+++ b/xalan-j/design/xpath_op_map_component_design.html
@@ -6,14 +6,22 @@
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>XPath parser OpMap component design</title>
<link rel="stylesheet" type="text/css" href="resources/apache-xalan.css" />
+<style type="text/css">
+.auto-style1 {
+ font-size: small;
+}
+</style>
</head>
<body>
<br/>
-<p style="text-align: center;"><strong>Design for Xalan Java class
org.apache.xpath.compiler.OpMap<br /><br />
-</strong>(Answer, reproduced from Google Gemini AI Overview)</p>
-<p><br />
-The org.apache.xpath.compiler.OpMap class in Apache Xalan-Java serves as the
+<p style="text-align: center;"><strong>Design for Xalan-J class
org.apache.xpath.compiler.OpMap<br />
+</strong></p>
+<p style="text-align: center;" class="auto-style1">Last modified:
2026-05-20</p>
+<p style="text-align: center;"><span class="auto-style1">(Apache Xalan-J
team)</span><strong><br />
+</strong></p>
+<p>
+The org.apache.xpath.compiler.OpMap class in Apache Xalan-J serves as the
structural foundation for XPath expression representation. It is designed to
act
as an optimized, flat data structure (an array of integers) to represent an
XPath abstract syntax tree (AST), prioritizing fast execution speeds and low
@@ -22,7 +30,7 @@ memory overhead.<br />
<strong>1. The Core Design Concept: The "OpMap"</strong><br />
<br />
Instead of building a traditional tree of objects (which introduces heavy
memory
-and allocation overhead), Xalan parses an XPath string into a flat integer
array
+and allocation overhead), Xalan-J parses an XPath string into a flat integer
array
called the Operations Map (OpMap). <br />
<br />
1.1) Flat Array Representation: Each node and its parameters (like operations,
@@ -62,8 +70,8 @@ algorithms for traversing the opcode array.<br />
integer map and build a proper executable expression tree (e.g., Expression
objects) that evaluates the XPath dynamically against context nodes.<br />
<br />
-This design, for Xalan Java XPath parser creating a flat array (OpMap) and a
-compiler traversing it was chosen to balance Xalan's need for both
+This design, for Xalan-J XPath parser creating a flat array (OpMap) and a
+compiler traversing it was chosen to balance Xalan-J's need for both
interpretative tooling and fast, compiled runtime performance.<br /><br />
</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]