Sablon.DOM.FileHandler (sablon v0.4.4)

Copy Markdown View Source

Helpers shared by the handlers that manipulate individual package parts.

Summary

Functions

The largest integer found in attr_name across all nodes matching selector, or 0 when there are none.

Functions

max_attribute_value(xml_node, selector, attr_name, opts \\ [])

@spec max_attribute_value(Sablon.XML.Node.t(), binary(), binary(), keyword()) ::
  integer()

The largest integer found in attr_name across all nodes matching selector, or 0 when there are none.

Ids in Open XML are usually numeric but sometimes carry a prefix (rId7), so only the numeric part is considered.