RDF::RDFa::Generator question
Gregory Williams
greg at evilfunhouse.com
Tue Jun 22 03:41:20 CEST 2010
Toby,
I'm trying to use RDF::RDFa::Generator to inject RDFa service descriptions into an HTML page for a rewrite of RDF::Endpoint, but running into some trouble using it.
I'm not super familiar with the XML::LibXML API. I've tried both load_xml and load_html to parse my HTML template (I understand these were just introduced in XML::LibXML 1.70, but guess they're convenience functions for already existing functionality?). load_xml is taking 7 seconds to parse an 800 byte template file (any idea what it could be doing?). load_html takes a fraction of a second, and I'd like to go with that, but RDF::RDFa::Generator doesn't seem to be able to inject content into html that was parsed with load_html.
Any thoughts on either the performance issues, or whether it might be possible to inject RDFa into HTML documents parsed with load_html?
thanks,
.greg
More information about the Dev
mailing list