XML::G...tional(3pm)

πŸ“¦
version 0.004 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

🌸 XML::GRDDL::Transformation::RDF_EASE::Functional 🌸

okay bestie, so this is a page from the User Contributed Perl Documentation β€” it's the manual for XML::GRDDL::Transformation::RDF_EASE::Functional, and no, that name is not a typo, that's genuinely the whole thing, we love a long name in this house πŸ’…


✨ NAME ✨

XML::GRDDL::Transformation::RDF_EASE::Functional β€” it's a stand-alone RDF-EASE module. no cap, it just does its one lil job all by itself 🫢


πŸ’– DESCRIPTION πŸ’–

so this module exports one function. one. singular. main character energy, honestly πŸ‘‘

πŸŽ€ rdfease_to_rdfa( $css, $xhtml, $as_dom )

here's the vibe: you hand it an RDF-EASE (CSS) transformation and an XHTML document β€” and heads up, that XHTML has to be a well-formed string β€” and it hands you back the resulting XHTML+RDFa document. ✨

and then, like, the slay part: that result can be fed straight into RDF::RDFa::Parser. it's giving pipeline. it's giving teamwork. obsessed πŸ¦‹

now for the tea on the return value, because it changes depending on what you pass in:

  • if $as_dom is true, you get back an XML::LibXML::Document πŸ“„
  • otherwise (so, not true, bestie), you get back a string 🧡

that's it. that's the function. one function, two possible return types, zero drama πŸ’œ


🌈 SEE ALSO 🌈

go check out its friends, they're all iconic:

  • XML::GRDDL
  • XML::GRDDL::Transformation::RDF_EASE
  • RDF::RDFa::Parser

πŸ‘‘ AUTHOR πŸ‘‘

this masterpiece was brought to you by Toby Inkster <tobyink@cpan.org> β€” thank you for your service, king πŸ«‘πŸ’–


Copyright 2008-2012 Toby Inkster

and here's the good part: this library is free software β€” you can redistribute it and/or modify it under the same terms as Perl itself. go forth and remix, bestie πŸŽ€


πŸ’€ DISCLAIMER OF WARRANTIES πŸ’€

okay so, real talk, the serious bit, no jokes here β€” this one's a full caps situation and it means it:

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

like… it is what it is. no promises. no guarantees. you get the package exactly as it comes πŸ™ˆ


and that's the whole page, bestie!! πŸ“ this little doc is living in perl v5.32.1, dated 2021-09-19 β€” so if you're reading it, that's the version/date energy you're working with. mwah πŸ’‹πŸ§šβœ¨

πŸ“¦ where this page comes from