• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 24. XML > Guidelines for tagging a picture box or caption box

Guidelines for tagging a picture box or caption box

The following comments apply to the elements we declared in the DTD code that we used as an example (see page 435).

  • When tagging a caption text box to the XML Tree, you can drag the box over the nested caption element or over the parent element “illustration” .

    In this illustration, picture and caption items are being tagged using our DTD structure. The caption content will be contained in the “Caption” child element. The picture file name and path will be contained as an attribute (“src”) for the “HTML:img” child element.

    Do you know where your pictures are?

    Remember to keep the actual picture file in the same folder as the XML file, otherwise the picture won't display in the browser!

    Note: As of this writing, neither Internet Explorer nor Netscape Navigator can interpret XML code used to reference external picture files, which means that no pictures will display on the XML page in those browsers.


  • You can't drag the picture box onto the HTML:img element (or the “illustration” element, for that matter), because the HTML:img element was declared as an empty element.

  • Picture boxes must be dragged to the nested “src” attribute because the DTD designated that the picture file name be embedded as an attribute value. You can add an attribute to an empty element if you want the attribute to store the location of that element's content.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint