On 02/27/2013 10:36 PM, Peter Desjardins wrote:

Is it possible to configure the specific attributes that are populated
for a new element?

For example, I'm working with DocBook 5 and I use <link
xlink:href="foo">foo</link>

Please remember that in <link xlink:href="foo">, "foo" must be an URI, that is something like "http://www.acme.com/gee/foo.bar"; or "gee/foo.bar" or "zzz.html#yyy".




rather than <link
linkend="foo">foo</link>. Every time I create a new link element I
have to force remove the "???" value of linkend before I can add a
value to xlink:href. I'd like to configure XMLMind to either put the
??? in xlink:href or just do nothing to the attributes.

I've been looking through the customization doc and the docbook5 addon
but haven't found anything yet.


There is nothing to configure here. <link xlink:href> and <link linkend> are in fact ``different elements''[*], which serve different purposes. First one in an external link. Second one is a internal link.

What you want is to do is to directly insert or convert to <link xlink:href>.

This is done as follows:

* Use the DocBook toolbar and select the "Toggle link[href]" button. More information in http://www.xmlmind.com/xmleditor/_distrib/doc/docbook/docbook_toolbar.html

OR

* Use the Edit tool and rather than selecting "link", please select "link(href)" (the item just below). See attached screenshot.




---
[*] In DocBook 4, these were actually different elements. First one was: ulink and second one: link.



---
PS: If what you want to do is [1] select text "foo" and [2] directly convert it to <link xlink:href="foo">foo</link>, this is possible too. However this is achieved by the means of a (trivial) macro-command.

Please identify yourself as a customer if you want us to explain how to implement such macro-command.

<<attachment: convert_to_link_href.png>>

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to