Hello,
I am working on a catalogue which shows the product's picture.
Using the Placeholder palette, I import my XML structure (DTD), later the XML content. Actually, I am using the same products XML as my DTD and content, this seems to work but I don't know if it is the cause of my problem, which I continue relating.
My XML is as follow...
<?xml version="1.0" encoding="UTF-8"?>
<BusinessPicturesIncluded>
<product>
<title>Title 1</title>
<price>Price 1</price>
<picture>c:/pic001.jpg</picture>
</product>
<product>
<title>Title 2</title>
<price>Price 2</price>
<picture>c:/pic002.jpg</picture>
</product>
</BusinessPicturesIncluded>
When I drag-and-drop the placeholders from the Placeholders palette to a text box, I see the placeholders on its yellowish colour, when I press the "Toggle Placeholders/Content" button, I see the content for the two groups that my XML contains. For the picture, it show the location of the picture as plaint text, which is normal as I haven't include a image box yet.
Now I have to include an image box within my placeholders, so in a blank are, I create an image box, I cut the image box, position the cursor within my placeholders on the text box and paste, then I receive the message...
"Anchors cannot be placed inside of placeholders. [10068]"
Then I look for a different way to include an image box within my placeholders and so I paste the image box on the same text box where the placeholders are, but outside the placeholders. As the image box is part of the text box, now I successfully cut it and paste within the placeholders.
Then, from the Placeholders palette, I drag-and-drop the picture element over the image box. So far so good.
Now, on the Placeholders palette, I press the "Toggle Placeholders/Content" button and the text box shows nothing, no even any previous text I may have added. Pressing the Toggle button again doesn't revert to the placeholders, I simple lost the layout for that text box.
All right, admitting that this isn't the way to import images through XML, what is the right way to do it?
Thank you in advance for any response or pointing me out to some link that could help.
Regards,
Miguel Gonzalez.