24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Important:The first argument is the name of the attribute pointing to the image file. The second argument of the attrfunction specifies the type of the content. If the type has the url value, then <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong>identifies the content as being an image. If the type is missing, then the content will be the text representing theattribute value.Important:<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> <strong>Author</strong> handles both absolute and relative specified URLs. If the image has anabsolute URL location (e.g: "http://www.oasis-open.org/images/standards/oasis_standard.jpg") then it is loadeddirectly from this location. If the image URL is relative specified to the <strong>XML</strong> document (e.g:"images/my_screenshot.jpg") then the location is obtained by adding this value to the location of the edited<strong>XML</strong> document.An image can also be referenced by the name of a DTD entity which specifies the location of the image file. For exampleif the document declares an entity graphic which points to a JPEG image file:and the image is referenced in the <strong>XML</strong> document by specifying the name of the entity as the value of an attribute:The CSS should use the functions url, attr and unparsed-entity-uri for displaying the image in the <strong>Author</strong>mode:imagedata[entityref]{content: url(unparsed-entity-uri(attr(entityref)));}To take into account the value of the width attribute of the imagedata and use it for resizing the image, the CSScan define the following rule:imagedata[width]{width:attr(width, length);}<strong>Author</strong> Developer Guide | 194

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!