I can create content, headers, footers (with embedded automatic page numbers in thanks to his hint about using XmlUtils.unmarshalString), page background images using an image embedded in the header (Again, thanks for viewtopic.php?f=6&t=242)
I now have a question that is more about the structure of the WML language and what elements to use.
I have the 5500 page ISO 29500-1-2008 standard open which I do refer to. But it's a huge document, and I sometimes go round in circles looking for features in it.
Basically, I am transforming a simple XML page description into a document. So, I may have an address part which is precisely positioned within a box (provided by the background image)
- Code: Select all
<container left="10mm" top="30mm">
<block>HOP LUN LTD HK</block>
<block>32/F 9 WING HONG</block>
<block>CHEUNG SHA WAN</block>
<block>KOWLOON</block>
</container>
Which transforms to XSL-FO easily. <xsl:block> elements can be positioned absolutely, and can also contain other <xsl:block> elements. So the <container> becomes an <xsl:block>, and so do its children.
But in WML, Paragraphs cannot contain other Paragraphs.
So the <container> tag becomes a Paragraph with a <w:framePr w:x="nnn" w:y="nnn" w:vAnchor="page" w:hAnchor="page" w:wrap="none"/> element in it. Measurements converted to TWIPs, and that's fine.
But I then cannot create the sequence of <blocks> running down inside it because WML doesn't allow it.
What alternatives do I have? Is there another block-level element (I mean in the HTML sense, block elements being each on their own line) which I can use inside of Paragraphs, or is there a higher level element which I can use as an absolutely positioned <container>?
Thanks for any suggestions.