ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: XLink/XPointer :: XLink½éÉÜ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

XLink/XPointer
XLink½éÉÜ
Xlink/Xpointer Ó..
XLink ʵÀý
XPointer ʵÀý
Xlink ÕªÒª
XLink ²Î¿¼

XLink½éÉÜ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-29 ÐÞ¸Ä:2007-08-24 ä¯ÀÀ:2574 :: ::

XLink defines a standard way of creating hyperlinks in XML documents.
XLink ¶¨ÒåÁËÔÚXMLÎĵµÖд´½¨³¬Á´½ÓµÄ±ê×¼·½Ê½¡£

XPointer allows the hyperlinks to point to more specific parts (fragments) in the XML document.
XPointer ÔÊÐí³¬Á´½ÓÖ¸ÏòXMLÎĵµÖиü¶àµÄϸ½Ú²¿·Ö£¨Æ¬¶Ï£©¡£


What You Should Already Know
ÄãÐèÒªÊÂÏÈÕÆÎÕµÄ֪ʶ£º

Before you continue you should have a basic understanding of the following:
ÔÚÄã¼ÌÐøÑ§Ï°ÐÂ֪ʶ֮ǰ£¬ÄãÐèÒªÊÂÏÈÕÆÎÕÏÂÃæÕâЩ»ù±¾ÖªÊ¶£º

  • HTML / XHTML
  • XML / XML ÃüÃû¿Õ¼ä
  • XPath

If you want to study these subjects first, find the tutorials on our Home page.
Èç¹ûÄãÏëÏÈѧϰÉÏÊö֪ʶ£¬ÄÇô£¬ÇëÔÚÎÒÃǵĽ̳ÌÖ÷Ò³ÉϲéÔÄÏà¹Ø½Ì³Ì¡£


What is XLink?
ʲôÊÇXLINK?

  • XLink is short for the XML Linking Language
    XLinkÊÇ“XML Á´½ÓÓïÑÔ”µÄ¼ò³Æ
  • XLink is a language for creating hyperlinks in XML documents
    XLinkÊÇÓÃÓÚÔÚXMLÎĵµÖд´½¨³¬Á´½ÓµÄÓïÑÔ
  • XLink is similar to HTML links - but it is a lot more powerful
    XLinkºÍHTMLÁ´½Ó·Ç³£ÏàËÆ——µ«XLinkµÄ¹¦Äܸü¼ÓÇ¿´ó
  • ANY element in an XML document can behave as an XLink
    XMLÎĵµÖеÄANYÔªËØ¿ÉÒÔͨ¹ýXLinkµÄÐÎʽ±íÏÖ³öÀ´
  • XLink supports simple links (like HTML) and extended links (for linking multiple resources together)
    XLinkÖ§³ÖÈçHTMLÕâÑùµÄ¼òµ¥Á´½ÓºÍÀ©Õ¹Á´½Ó£¨Ö÷ÒªÊÇΪÁËͬʱÌṩ¶àÖÖ×ÊÔ´µÄÁ´½Ó£©
  • With XLink, the links can be defined outside of the linked files
    ͨ¹ýXLink£¬Á´½Ó¿ÉÒÔÊDZ»¶¨ÒåÔÚÍⲿÎļþÖÐ
  • XLink is a W3C Recommendation
    XLinkÊÇW3CÍÆ¼öʹÓõıê×¼

What is XPointer?
ʲôÊÇXPointer?

  • XPointer is short for the XML Pointer Language
    XPointerÊÇ“XML ָʾÆ÷”µÄ¼ò³Æ¡£
  • XPointer allows the hyperlinks to point to specific parts of the XML document
    XPointerÔÊÐí³¬Á´½ÓÖ¸ÏòXMLÎĵµµÄ¾ßÌ岿·Ö¡£
  • XPointer uses XPath expressions to navigate in the XML document
    XPointerʹÓÃXPath±í´ïʽÔÚXMLÎĵµÖÐʵÐвÙ×÷
  • XPointer is a W3C Recommendation
    XPointerÊÇW3CÍÆ¼öʹÓõıê×¼

XLink and XPointer are W3C Recommendations
XLink ºÍ XPointer ÊÇW3CÍÆ¼öʹÓõıê×¼

The XML Linking Language (XLink) became a W3C Recommendation 27. June 2001.
XMLÁ´½ÓÓïÑÔ£¨XLink£©ÔÚ2001Äê6ÔÂ27ºÅ³ÉΪW3CÍÆ¼öʹÓõıê×¼¡£

The XML Pointer Language (XPointer) became a W3C Recommendation 25. March 2003.
XMLָʾÓïÑÔ£¨XPointer£©ÔÚ2003Äê3ÔÂ25ºÅÕýʽ³ÉΪW3CÍÆ¼öʹÓõıê×¼¡£

You can read more about XML standards in our W3C tutorial.
Äã¿ÉÒÔÔÚÎÒÃÇW3C½Ì³ÌÉÏÁ˽â¸ü¶à¹ØÓÚXML±ê×¼µÄÄÚÈÝ¡£


XLink and XPointer Browser Support
XLink ºÍ XPointer µÄä¯ÀÀÆ÷Ö§³ÖÇé¿ö

The browser support for XLink and XPointer is minimal.
Ö§³Ö XLink ºÍ XPointer µÄä¯ÀÀÆ÷ΪÊý²»¶à¡£

There is some XLink support in Mozilla 0.98+, Netscape 6.02+, and Internet Explorer 6.0. Earlier versions of all of these browsers have no XLinks support at all!
Mozilla 0.98+¡¢Netscape 6.02+ÊÇÖ§³ÖһЩXLinkµÄ£¬µ«ÔÚ Internet Explorer 6.0 ֮ǰµÄÔçÆÚä¯ÀÀÆ÷°æ±¾ÍêÈ«²»Ö§³ÖXLink£¡

ÆÀÂÛ (0) All