Rob Kinyon > PDF-Template-0.22 > PDF::Template::Container::Scope

Download:
PDF-Template-0.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  5
View/Report Bugs
Source   Latest Release: PDF-Template-0.29_02

NAME ^

PDF::Template::Container::Scope

PURPOSE ^

To provide scoping for children.

NODE NAME ^

SCOPE

INHERITANCE ^

PDF::Template::Container

ATTRIBUTES ^

None

CHILDREN ^

None

AFFECTS ^

Nothing

DEPENDENCIES ^

None

USAGE ^

  <scope w="100%">
    <row h="18">
      <textbox text="Hello, world"/>
    </row>
    <row h="8">
      <textbox text="Goodbye, world"/>
    </row>
  </scope>

If you have a number of nodes that share common attribute values, but don't have a common parent, provide them with a no-op parent that allows consolidation of attribute specification.

In the above example, the two textbox nodes will inherit the W attribute from the scope tag.

AUTHOR ^

Rob Kinyon (rob.kinyon@gmail.com)

SEE ALSO ^

syntax highlighting: