Skip to main content
Participant
June 1, 2011
Question

Validation of TLF-Markup with DTD?

  • June 1, 2011
  • 1 reply
  • 417 views

Hi everyone,

we're using TLF to display structured text on the client side with Flex. The text comes from a database where it is stored in our own XML-Markup, transformed on the server side (java server) to TLF-Markup and then sent to the client.

Is there any possibility to make sure that the transformation on the server into TLF-XML results in a valid syntax so that the RichText component can display it? Something like a DTD for the TLF-Markup?

Thanks in advance!

This topic has been closed for replies.

1 reply

Adobe Employee
June 1, 2011

No official DTD. But there is a *normalization* process when converting xml to textflow, which can skip and correct some mistakes in the markup.

Adobe Employee
June 1, 2011

Object Hierarchy

Parent ->

Child

TextFlow

div

p

a

tcy

span

img

br

tab

list

li

g

TextFlow

no

no

no

no

no

no

no

no

no

no

no

no

div

yes

yes

no

no

no

no

no

no

no

yes

yes

no

p

yes

yes

no

no

no

no

no

no

no

yes

yes

no

a

no

no

yes

no

yes

no

no

no

no

no

no

yes

tcy

no

no

yes

yes

no

no

no

no

no

no

no

yes

span

no

no

yes

yes

yes

no

no

no

no

no

no

yes

img

no

no

yes

yes

yes

no

no

no

no

no

no

yes

br

no

no

yes

yes

yes

no

no

no

no

no

no

yes

tab

no

no

yes

yes

yes

no

no

no

no

no

no

yes

list

yes

yes

no

no

no

no

no

no

no

yes

yes

no

li

no

no

no

no

no

no

no

no

no

yes

no

no

g

no

no

yes

yes

yes

no

no

no

no

no

no

yes

For formats, it's more comlicated.  You can ask some specific formats.