EDD context-formatting based on XML attributes
Hi all,
I'm having some difficulty getting my EDD to properly format based on XML attributes. Basically what I'd like is this:
I have some XML:
<root>
<elem>Sample text sample text sample text sample text.</elem>
<elem multi="true">Sample text sample text sample text sample text.</elem>
</root>
For elements with the multi="true" attribute, I'd like them to be prefixed by a bullet and with a left indent of 0.14" so that the text aligns with the bullet.
• Sample text sample text
sample text sample text.
Those without the attribute are simply formatted according to the specified paragraph format (no prefix, left indent 0.0")
Sample text sample text
sample text sample text.
My EDD looks like this:
Element (Container): elem
General rule: <ANY>
Attribute list
Name: multi String Optional
Prefix rules
If context is: [multi = “true”]
Prefix: •
Text format rules
Element paragraph format: Element
If context is: [multi = “true”]
Basic properties
Indents
Left indent: 0.14”
After importing my XML, the prefix part works perfectly. No problems there.
However, the context-based left indent doesn't work at all -- all elements just inherit the paragraph indent (0.0"). So it ends up looking like this:
• Sample text sample text
sample text sample text.
I can't seem to figure this out. Does formatting in the EDD not override the specified paragraph formats or something?
Any help would be greatly appreciated.
Thanks,
Carl