SVG::Extension(3)
β¨ NAME β¨
SVG::Extension β bestie, this is the little package that gives you additional methods π it's the extra-special side of the SVG module that handles all the DTD declaration business. Think of it as the group chat where elements, attributes, entities and notations all get their names sorted out. π
πΈ THE METHODS πΈ
Okay so here's every method, in order, no skips, no cap.
extension
return the element object β¨
element_decl
generate an element declaration in the DTD π§
attribute_decl
return generate an attribute list for an element π (yes, that's the wording, i'm not touching it, it's iconic)
attlist_decl
(no description in the source β it's just here, sitting pretty, saying nothing) π
notation_decl(%attrs)
return an extension object of type NOTATION π
entity_decl(%attrs)
return an extension object of type 'ENTITY' π
xmilfy
(no description in the source β spelling is exactly as-is, don't come for me) π
render
alias for xmlify π¦
to_xml
alias for xmlify β
serialise
alias for xmlify π
serialise
alias for xmlify π β yep, it's listed twice in the original, and bestie we are keeping both. The way that duplication just is. π«Ά
getDeclName
Simply an alias for the general method for SVG::Extension objects β¨
getExtensionName
alias to getDeclName π
getDeclNames
return list of existing decl types by extracting it from the overall list of existing element types π₯
sub getDeclNames {
getExtensionNames
alias to getDeclNames πΈ
π gentle reminder bestie: the descriptions above are exactly what the page says β no invented behaviour, no extra tips, no guessing. if it's not on the page, it's not in here. periodt.
This whole thing comes from perl v5.42.0, dated 2026-03-13, and it's part of the User Contributed Perl Documentation. That's the tea, mwah π
π¦ where this page comes from
- fedora 44: perl-SVG 2.89-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms