• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xlink question

 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following is true about XLink and HTML hyperlinks?

XLink can be attached with any element. Hyperlinks in HTML can be attached to
only an ANCHOR ( <A> element.

XLink can refer to a specific location in XML document by name or context with the
help of XPointer. HTML ANCHOR ( <A> does not have capability to point to
specific location within an html document.

XLink / XML links can be multidirectional. HTML links are unidirectional.

HTML links are activated when user clicks on them. XLink has option of activating
automatically when XML document is processed.

I guess all except the following are correct -
" XLink / XML links can be multidirectional. HTML links are unidirectional."
Any ideas??
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only this one is wrong, since HTML ANCHOR does have capability to point to
specific location within an html document
XLink can refer to a specific location in XML document by name or context with the
help of XPointer. HTML ANCHOR does not have capability to point to
specific location within an html document.

[ November 08, 2002: Message edited by: Roseanne Zhang ]
 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roseanne,
In anchor tag also you can point to a specific location in a html document using "#"
Example:
<a href="test.html#section1">Go to Section 1</a>
What do you think?
Thanks
Shoba
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is exact what I meant.
 
Andras Ferenczi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see Ramachandran's point. Answer no 2 is the incorrect one. The one Jayadev pointed out is actually correct.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Copied from http://www.w3.org/TR/xlink/
[Definition: Information about how to traverse a pair of resources, including the direction of traversal and possibly application behavior information as well, is called an arc]. If two arcs in a link specify the same pair of resources, but they switch places as starting and ending resources, then the link is multidirectional, which is not the same as merely "going back" after traversing a link.

and also here http://www.ibiblio.org/xml/books/bible2/chapters/ch19.html
XLink is a proposal for more powerful links between documents designed especially for use with XML documents. XLink achieves everything possible with HTML's URL-based hyperlinks and anchors. Beyond this, however, it supports multidirectional links where the links run in more than one direction. Any element can become a link, not just the A element. Links do not even have to be stored in the same file as the documents they connect. These features make XLinks more suitable not only for new uses, but for things that can be done only with considerable effort in HTML, such as cross-references, footnotes, end notes, interlinked data, and more.

[ November 14, 2002: Message edited by: Roseanne Zhang ]
 
Mehul Jasani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what is the final answer?
Could anyone please specify it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic