OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] ulink in oXygen - 2 newbie-ish questions


Hi Jennifer,

On Sonntag, 7. Oktober 2007, Jennifer Moore wrote:
>
> 1.  When I use <ulink url="whatever">link text</ulink>, the transform
> does succeed, and the resulting HTML contains the link as I'd
> expected/intended.  But nevertheless, oXygen gives me one of its little
> red warning bars at the side of the editing window, and complains:
>
> === quote from oXygen ===
> E [oNVDL] unknown element "ulink" from namespace
> "http://docbook.org/ns/docbook";
> === end quote ===
>
> I was under the impression that <ulink> was ordinary allowable DocBook
> - so is this error message just an oXygen bug, or is there something I
> don't know?

From the above error message, it seems that you are using DocBook 5. In 
version 5, ulink is removed. Use link instead. It's not a bug in oXygen.

By the way, you could even turn *every* inline element into a link by 
using XLinks.


> 2.  I'd like to use a title attribute in my HTML links
> (like: <a href="whateveraddress" title="additional explainy bit">link
> text</a>).
>
> Is there an easy way to place that title info into the DocBook file?

Use the following code:

 <link xlink:href="whateveraddress" 
       xlink:title="additional explainy bit">...</link>

You have to declare the XLink namespace somewhere, usually in the root 
element.


Bye,
Tom

-- 
Thomas Schraitle


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]