Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/doc/pager.groovy

pager.groovy (revision 479)
274 274
			switch (event) {
275 275
				case XMLStreamConstants.START_ELEMENT:
276 276
					localname = parser.getLocalName();
277
					
278
					if (localname == editionPage) {
279
						createNextOutput();
280
						wordcount=0;
281
						if (parser.getAttributeValue(null,"n") != null) {
282
							pagedWriter.writeStartElement("p", ["style":"color:red", "align":"center"])
283
							pagedWriter.writeCharacters("- "+parser.getAttributeValue(null,"n")+" -")
284
							pagedWriter.writeEndElement() // p
285
						}
286
					}
287
					
277 288
					switch (localname) {
278 289
						case "textunit":
279 290
							if (parser.getAttributeValue(null,"id") != null) {
......
323 334
							pagedWriter.writeStartElement("p", ["class":rend])
324 335
							break;
325 336
						//case "pb":
326
						case editionPage:
327
							createNextOutput();
328
							wordcount=0;
329
							if (parser.getAttributeValue(null,"n") != null) {
330
								pagedWriter.writeStartElement("p", ["style":"color:red", "align":"center"])
331
								pagedWriter.writeCharacters("- "+parser.getAttributeValue(null,"n")+" -")
332
								pagedWriter.writeEndElement() // p
333
							}
334
							break;
335 337
						case "table":
336 338
							pagedWriter.writeStartElement("table", ["class":parser.getAttributeValue(null, "rend")])
337 339
							break;

Also available in: Unified diff