Revision 1000 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZDefaultPagerStep.groovy

XTZDefaultPagerStep.groovy (revision 1000)
8 8
import javax.xml.stream.*;
9 9

  
10 10
import org.txm.scripts.importer.StaxStackWriter;
11
import org.txm.importer.xtz.*
11 12

  
12 13
public class XTZDefaultPagerStep {
13 14

  
......
352 353
							pagedWriter.write("\n");
353 354
							String url = getAttributeValue(parser, null, "url")
354 355
							if (url != null) {
355
								pagedWriter.writeStartElement("center", ["class":rend])
356
								// TEI <graphic rend="left-image" url="image.png"/> -> <center class="left-image"><img href="image.png"/></center> + <moncorpus>.css avec rule ".left-image"
357
								pagedWriter.writeStartElement("center", ["class":rend]) // css -> .<rend> { ... } styles OR
356 358
								pagedWriter.writeEmptyElement("img", ["src":url, "align":"middle"])
357 359
								pagedWriter.writeEndElement() // div
358 360
							}

Also available in: Unified diff