Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Help Needed with XML Attribute Access (Bold/Italics)

Avatar

Level 2

Hi,

I have a form that displays data in livecycle designer. When someone imports an xml file into the form in Adobe Acrobat it should be able to display some data as bolded and some italicized based on the xml file.

Here is the sample xml file

<Table1>

     <Row1>

          <Cell1 style="none">1</Cell1>

          <Cell2 style="bold">2</Cell2>

          <Cell3 style="italics">3</Cell3>

     </Row1>

</Table1>

And the output should be:

1 2 3

Can someone please help! If the xml file should be designed differently please let me know.

Thank you!

1 Accepted Solution

Avatar

Correct answer by
Level 10

The Rich Text implementation uses xHTML to set the font stylings. I suggest that you create a RichText Field on your form set the text the way you want then export the data to see how the stylings are represented.

Paul

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

The Rich Text implementation uses xHTML to set the font stylings. I suggest that you create a RichText Field on your form set the text the way you want then export the data to see how the stylings are represented.

Paul

Avatar

Level 2

Paul,

Thanks for the help! I tried it out and it worked. One last question please. According to your explanation I added to the xml file the tags

<body xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">

<p style="font-weight:bold;">2</p>
</body>
do I need to place this body tag around each number or can I place it in one location in the xml file?
Thanks again.

Avatar

Level 10

Unfortunately each field that references xHTML needs that structure.

Paul