| 332 | * Parses a page directive with the following syntax: PageDirective ::= ( S Attribute)* |
| 333 | */ |
| 334 | private void parsePageDirective(Node parent) throws JasperException { |
| 335 | Attributes attrs = parseAttributes(true); |
| 336 | Node.PageDirective n = new Node.PageDirective(attrs, start, parent); |
| 337 | |
| 338 | /* |
| 339 | * A page directive may contain multiple 'import' attributes, each of which consists of a comma-separated list |
| 340 | * of package names. Store each list with the node, where it is parsed. |
| 341 | */ |
| 342 | for (int i = 0; i < attrs.getLength(); i++) { |
| 343 | if ("import".equals(attrs.getQName(i))) { |
| 344 | n.addImport(attrs.getValue(i)); |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | /* |
| 350 | * Parses an include directive with the following syntax: IncludeDirective ::= ( S Attribute)* |