From b9d21be592b59117d843b62b694a6d2ee87fb648 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 19 Jan 2006 09:46:44 +0000 Subject: New interface XMLizable (copied from Apache Excalibur) to mark classes that can serialize themselves to XML (SAX stream). New interface ContentHandlerFactory (plus associated Factory with Service discovery) for sub-document parsing plug-ins. Used by the area tree but could be used independently. ExtensionAttachments are now part of the area tree and are written by XMLRenderer and parsed by AreaTreeParser. The PS Extensions are extended to support serialization to and deserialization from XML. Added a test case that tests the PS Extension WRT the handling in the area tree XML. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370452 13f79535-47bb-0310-9956-ffa450edef68 --- .../standard-testcases/ps-extension_1.xml | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 test/layoutengine/standard-testcases/ps-extension_1.xml (limited to 'test') diff --git a/test/layoutengine/standard-testcases/ps-extension_1.xml b/test/layoutengine/standard-testcases/ps-extension_1.xml new file mode 100644 index 000000000..beadbef00 --- /dev/null +++ b/test/layoutengine/standard-testcases/ps-extension_1.xml @@ -0,0 +1,67 @@ + + + + + +

+ This test checks the PostScript extension for custom setup code. The extension attachments need to show + up in the area tree XML so the AreaTreeParser can fully restore the area tree. +

+
+ + + + + + %FOPTestPSPageSetupCode: MediaDict! + %FOPTestPSPageSetupCode: Blah blah! + + + + %FOPTestPSSetupCode: General setup code here! + +%FOPTestPSSetupCode: Line 1 +%FOPTestPSSetupCode: Line 2 + + + + + Text on page . + Text on page . + + + + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3