Skip to content

Conversation

@matthias8283
Copy link
Contributor

TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

String fo = "<fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\" xmlns:svg=\"http://www.w3.org/2000/svg\">"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normally we use FO2StructureTreeConverterTestCase

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, moved the test to that class.

@matthias8283 matthias8283 merged commit fb908e1 into main Oct 28, 2025
10 checks passed
+ " </fo:flow>\n"
+ " </fo:page-sequence>\n"
+ "</fo:root>";
Source src = new StreamSource(new ByteArrayInputStream(fo.getBytes()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use the compare method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because the structure XML fragment doesn't contain any tag/role information, therefore I can't validate if a fo:block will be tagged as "P" or "Artifact".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants