Hi Everyone,

I'm authoring a Docbook modular document (with chapters) and am trying 
to insert hyperlinks.  I'm trying to link not to websites (URLs), but 
rather to files residing on the end-user's PC.  I've tried the steps for 
creating hyperlinks that Hussein suggested to Karen, but without 
success.  I'm using V2.11 (Standard Edition).

I created a "ulink" element as described by Hussein.  However, "href" 
does not appear in the list of attributes for ulink.  So, I added href 
as an attribute and assigned it a value (in my case, the name of a file 
in my XXE folder).  Once my Docbook document was converted to HTML, I 
clicked on the link in the resulting HTML page, but it went nowhere.  
So, I went back into XXE and noticed that my XML was invalid.  The 
following errors were cited:

element has no attribute "href" [cvc-complex-type.3]
required attribute "url" is missing [cvc-complex-type.4]

My understanding is that ulink elements are employed in Docbook to 
create href's in HTML files.  Further, that local files as well as URLs 
may be referenced.  What am I doing wrong?

On the other hand, if I specify the "url" attribute instead of the href 
attribute, I'm able to create good links to other documents (chapters), 
but *only* if the HTML files for the referenced chapters reside within 
the *same* folder.

However, some of the files to be hyperlinked are data files (not 
chapters) and must reside in different folders.  The hyperlinks to these 
files also work OK on my PC.  Yet, even though I specify them by 
reference (e.g., ../../folderA/fileA), these links somehow seem to get 
hardwired to the path of my computer.  So, the links created are not 
valid on the PCs of any other users.  Again, what am I doing wrong?

Thanks very much for your assistance,
-- Ken


Hussein Shafie wrote:

>Karen Hansen wrote:
>  
>
>>Can you tell me how to insert hyperlinks in xmlmind. I have tried typing
>>in a url, ahref etc in the linkend attribute but nothing seems to work
>>    
>>
>
>It depends on what you mean by "nothing seems to work".
>
>Assuming that you are authoring a DocBook document.
>
>Procedure:
>
>[1] Type the text of the hyperlink. Example: XMLmind XML Editor.
>
>[2] Select the text of the hyperlink by dragging your mouse over it as
>usual.
>
>[3] Use the DocBook toolbar and select ulink from the "blue underlined
>a" icon. (*ulink* and not link.)
>
>[4] Now "XMLmind XML Editor" is underlined and displayed in blue.
>You need to specify the href attribute of this newly created ulink
>element. 2 methods for that:
>
>[a] Usual one:
>* Click inside "XMLmind XML Editor".
>* Select the Attributes tool at the right of the window.
>* Click in the row starting with "href".
>* Type the target of the hyperlink. Example:
>http://www.xmlmind.com/xmleditor/
>* Press enter.
>
>[b] Cool one (works on Windows, Mac and Linux with Java 1.5):
>Use your web navigator. Drag the target of the hyperlink from the
>navigator and drop it on the blue, underlined "XMLmind XML Editor" in
>the XML editor.
>
>You are done.
>
>Yes, the ulink is not ``active'' inside the XML editor. That is, using
>the default configuration of the XML editor, you cannot follow the
>hyperlink inside the XML editor. But when you'll convert your DocBook
>document to HTML and/or to PDF you'll be able to do so using the
>*converted document* (i.e. opened in Internet Explorer or in Acrobat).
>
>---
>PS: Please take the time to read
>http://www.xmlmind.com/xmleditor/tutorial.html (also available in
>http://www.xmlmind.com/xmleditor/_distrib/doc/user/userguide.pdf)or you
>will use your time because XMLmind XML Editor is not intuitive to use.
>
>The fact that the tutorial uses XHTML as an example is not a problem.
>Everything you'll learn applies to DocBook and to all the other document
>types.
>
>
> 
>--
>XMLmind XML Editor Support List
>xmleditor-support at xmlmind.com
>http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050721/be16d093/attachment.htm
 

Reply via email to