Apache OpenOffice (AOO) Bugzilla – Issue 17190
email URL not exported correctly to Docbook
Last modified: 2003-12-19 11:27:14 UTC
When I insert a link in a Writer doc with the URL "mailto:users@openoffice.org" it is generated into docbook as : <olink targetdocent="mailto:users@openoffice.org">users@openoffice.org </olink> However from my understanding of docbook it should really be <ulink href="mailto:users@openoffice.org">users@openoffice.org </ulink> I've seen this info : "Unlike Link and ULink, the semantics of OLink are application-specific. OLink provides a mechanism for establishing links across documents, where ID/IDREF linking is not possible and ULink is inappropriate." at http://www.docbook.org/tdg/en/html/olink.html and "The ULink element forms the equivalent of an HTML anchor (<A HREF="...">) for cross reference by a Uniform Resource Locator (URL)." at : http://www.docbook.org/tdg/en/html/ulink.html
JSI-> James: Your turn.
Lars is now responsible for this transformation
taking over
The fix I have made to my own version of sofftodocbookheadings.xsl is around line 833: <xsl:when test="contains(@xlink:href,'mailto:')"> <xsl:element name="email"> <xsl:value-of select="substring-after(@xlink: href,'mailto:')"/> </xsl:element> </xsl:when>
fix from cphennessy has been commited to cws fwk01pp1 -> OOo 1.1.1
ready for QA
reviewing this with QA and it seems a bit strange fix produces email element not ulink as in first description ( no reimport possible) , first description asks for @href but ulink uses @url... new fix: use <ulink url="mailto:...">...</ulink> for <text:a xlink:href="mailto:...">...</text:a>
<email> is not the tag we want to use :-( <ulink.... would be better.
redone on fwk01pp1
Automated DocBook test has been finished and seems to be no regression in this fix. Will have a look manually to some functionality around it.
Setting resolution.
automated DocBook test has been finished.
grrr. searching the correct resolution :-(
Fixed.
Now it is correct: verified.
JSI: Okay in FIX645m3