info/CWS odfmetadata2 : xmloff: support for namespaces in export (and RDFa)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

info/CWS odfmetadata2 : xmloff: support for namespaces in export (and RDFa)

mst-2


          Type: info
         Title: xmloff: support for namespaces in export (and RDFa)
     Posted by: [hidden email]
      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 [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]