Adds the namespace structure of a node to the specified table. @param table table @param start first PRE value @param end last PRE value @param ns namespace reference
(final Table table, final int start, final int end, final Namespaces ns)
| 301 | * @param ns namespace reference |
| 302 | */ |
| 303 | void table(final Table table, final int start, final int end, final Namespaces ns) { |
| 304 | final int vl = values.length; |
| 305 | for(int i = 0; i < vl; i += 2) { |
| 306 | if(pre < start || pre > end) continue; |
| 307 | final TokenList tl = new TokenList(); |
| 308 | tl.add(values[i + 1]); |
| 309 | tl.add(pre); |
| 310 | tl.add(pre - parent.pre); |
| 311 | tl.add(ns.prefix(values[i])); |
| 312 | tl.add(ns.uri(values[i + 1])); |
| 313 | table.contents.add(tl); |
| 314 | } |
| 315 | for(int i = 0; i < size; i++) nodes[i].table(table, start, end, ns); |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * Adds namespace information for the specified node to a map. |