Type: info Title: xmloff: support for namespaces in export (and RDFa) Posted by: m...@openoffice.org Affected: xmloff TaskId: i90620 <http://www.openoffice.org/issues/show_bug.cgi?id=90620> Effective from: CWS odfmetadata2 CWS: <http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/odfmetadata2> CWS status: new
*Summary* -------- <xmloff/xmlexp.hxx>, <xmloff/xmlimp.hxx>: + OUString SvXMLExport::EnsureNamespace(OUString const & i_rNamespace, OUString const & i_rPreferredPrefix ); + uno::Reference< uno::XComponentContext > SvXMLImport::GetComponentContext() const; + uno::Reference< uno::XComponentContext > SvXMLExport::GetComponentContext() const; *Description* ------------- xmloff now has infrastructure for importing and exporting RDFa. Due to the use of CURIEs in RDFa, the export support required the ability to define namespace mappings, which was previously not possible. /** ensures that the given namespace is in scope at the next started element. <p>If the namespace is not yet declared, the necessary attribute will be added, as well.</p> @param i_rNamespace the namespace to be declared @param i_rPreferredPrefix (opt.) preferred prefix for the namespace @returns the actual prefix that the namespace is associated with */ OUString SvXMLExport::EnsureNamespace(OUString const & i_rNamespace, OUString const & i_rPreferredPrefix = OUString::createFromAscii("gen") ); As a bonus, the import/export classes now know the process component context. Send feedback to interface-announce@openoffice.org
--------------------------------------------------------------------- To unsubscribe, e-mail: interface-announce-unsubscr...@openoffice.org For additional commands, e-mail: interface-announce-h...@openoffice.org