Rather than having a “style” attribute in selected tags, I would like to see a “Style” tag, independent of them, with some additional features.
The reason I’m asking for this is that I’ve run into a problem with the “Image” tag when generating a Word document: the image and the paragraph break I put after it use the “Normal” style, but for my document I have a custom style I would like to apply to image-based paragraphs. Also, when mixing “Text” and “Property” tags, it can be tedious to repeat the style when composing a template. What I’d like to see is something like this:
<Style name="My Custom Style" alignment="center" bold="true">
<Text>The diagram name is: </Text>
<Property property="name"/>
<ParagraphBreak/>
<Image/>
<ParagraphBreak/>
</Style>
Sounds like a way to improve the reusability of Styles’ definition. I have shared your suggestion with our development team. If we decide to support it, I will let you know.
Alright… good start, but not enough, and not working properly anyway.
The Text and Property elements support the following attributes:
style
isBold
isItalic
isUnderline
fontFamily
fontSize
foreColor
alignment
numberingLevel
margin
margin-top
margin-right
margin-bottom
margin-left
keepWithNext
It should be possible to use all of these in the ParagraphStyle element. I just tried name+isBold, but isBold isn’t supported. I should be able to use ParagraphStyle without a name if I’m using the others to set the output style.
As for the “not working” part, here’s my custom image template:
Nope. Totally broken. Some of my image/description combinations come out with the right GS1_Body style, some come out with the Normal style. I’ve tried the following with totally inconsistent results:
Im facing similar problems here. At the moment all my header formating is gone and neither “relative” identification of an header element via @header+ nor the absolute naming of an header does work in my word doc template