XLink和XPointer的介绍

SVG基础指令,从此文开始 跟canvas对比: svg绘制的每一个图形元素都是独立的DOM节点,能够方便的绑定事件用来修改。canvas采用位图,是基于像素的操作,输出的是一整个画布。 svg是基于适量图形进行绘制的,后期可以修改参数自由放大缩小,不会产生锯齿。canvas因为是位图会导致失真。 下面会直接以代码+注释解释的方式学习svg: 演示结果如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> 阅读详情

XLink和XPointer的介绍

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 Namespaces
  • XPath

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的连接比较类似 - 但它更为有力
  • ANY element in an XML document can behave as an XLink
    在XML文档中的任何元素都可以表现为一个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,可以在已经被连接的文件外定义连接
  • 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 Browser Support
XLink和XPointer浏览器的支持

The browser support for XLink and XPointer is minimal.
浏览器只能支持它们的地方很少

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+, 和 Internet Explorer 6.0以及早期版本中有部分对XLink支持,但这些浏览器没有一个完全支持XLink的。

 

XLink Syntax
XLink语法

In HTML, we know (and all the browsers know!) that the <a> element defines a hyperlink. However, this is not how it works with XML. In XML documents, you can use whatever element names you want - therefore it is impossible for browsers to predict what hyperlink elements will be called in XML documents
在HTML中我们知道(所有浏览器也明白!)<a>元素定义了超连接。然而在XML里并不是这样运作的。在XML文档里你可以使用任何你想使用的元素名称 - 因此浏览器是无法预料什么样的超连接元素会被使用到。

The solution for creating links in XML documents was to put a marker on elements that should act as hyperlinks.
解决在XML文档中建立连接的方法是加入扮演超连接元素的标记。

Below is a simple example of how to use XLink to create links in an XML document:
下面是一个简单的举例来演示怎样使用XLink来建立XML文档中的连接:

<?xml version="1.0"?>
<homepages xmlns:xlink="http://www.w3.org/1999/xlink">
  <homepage xlink:type="simple"
  xlink:href="http://www.w3schools.com">Visit W3Schools</homepage>
  <homepage xlink:type="simple"
  xlink:href="http://www.w3.org">Visit W3C</homepage>
</homepages>

To get access to the XLink attributes and features we must declare the XLink namespace at the top of the document.
要得到使用XLink的属性和特征我们必须在文档的顶部声明XLink的命名空间

The XLink namespace is: "http://www.w3.org/1999/xlink".
XLink命名空间为:"http://www.w3.org/1999/xlink"

The xlink:type and the xlink:href attributes in the <homepage> elements define that the type and href attributes come from the xlink namespace.
在<homepage>元素中xlink:type和xlink:href属性定义的类型和href属性都来自于xlink命名空间

The xlink:type="simple" creates a simple, two-ended link (means "click from here to go there"). We will look at multi-ended (multidirectional) links later.
xlink:type="simple"建立了一个简单的,两点连接(意思就是点击后从这到那)。等下我们将观察多点的(多方向的)连接


XPointer Syntax
XPointer语法

In HTML, we can create a hyperlink that either points to an HTML page or to a bookmark inside an HTML page (using #).
在HTML中我们可以建立连接可以到达HTML页面中的书签位置(使用#)

Sometimes it is more useful to point to more specific content. For example, let's say that we want to link to the third item in a particular list, or to the second sentence of the fifth paragraph. This is easy with XPointer.
有些时候指向特殊内容是很有帮助的。举个例子,我们要连接到练习表中的第三条,或第5段落的第二句话。使用XPointer就变得容易了

If the hyperlink points to an XML document, we can add an XPointer part after the URL in the xlink:href attribute, to navigate (with an XPath expression) to a specific place in the document.
如果连接指向一XML文档,我们可以在xlink:href属性URL的后面添加一个XPointer部分,来导航(使用XPath表达式)来定位到文档中的指定位置。

For example, in the example below we use XPointer to point to the fifth item in a list with a unique id of "rock":
举个例子,下面这个例子中我们使用了XPointer并通过唯一的id"rock"来指向一列表中的第5条:

href=http://www.example.com/cdlist.xml#id('rock').child(5,item)
  

Let's try to learn some basic XLink syntax by looking at an example.
让我们尝试通过观察实例来学习一些基本的XLink语法。


The XML Example Document
XML举例文档

Look at the following XML document, "bookstore.xml", that represents a few books:
观察下面的XML文档,"bookstore.xml",描述了一些书本:

<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore xmlns:xlink="http://www.w3.org/1999/xlink">
<book title="Harry Potter">

  <description
  xlink:type="simple"
  xlink:href="http://book.com/images/HPotter.gif"
  xlink:show="new">
  As his fifth year at Hogwarts School of Witchcraft and
  Wizardry approaches, 15-year-old Harry Potter is.......
  </description>
</book>
<book title="XQuery Kick Start">
  <description
  xlink:type="simple"
  xlink:href="http://book.com/images/XQuery.gif"
  xlink:show="new">
  XQuery Kick Start delivers a concise introduction
  to the XQuery standard.......
  </description>

</book>
</bookstore>

在你的浏览器中查看 "bookstore.xml"

In the example above the XLink namespace is declared at the top of the document (xmlns:xlink="http://www.w3.org/1999/xlink"). This means that the document has access to the XLink attributes and features.
上面的实例中XLink的命名空间位于文档的顶部(xmlns:xlink="http://www.w3.org/1999/xlink")。这意味着文档可以访问到XLink的属性以及其特征。

The xlink:type="simple" creates a simple "HTML-like" link. You can also specify more complex links (multidirectional links), but for now, we will only use simple links.
xlink:type="simple"建立了形似HTML的简单连接。你还可以指定复杂些的连接(多向性的连接),但现在我们只使用简单的连接

The xlink:href attribute specifies the URL to link to, and the xlink:show attribute specifies where to open the link. xlink:show="new" means that the link (in this case, an image) should open in a new window.
xlink:href属性指定了连接到何处的URL,并且xlink:show属性指定了在哪打开连接。xlink:show="new"意思为连接会在新的窗口中打开(图片也如此)


XLink - Going Further
XLink - 更多方面

In the example above we have only demonstrated simple links. XLink is getting more interesting when we want to access remote locations as resources, instead of standalone pages. The <description> element in the example above sets the value of the xlink:show attribute to "new". This means that the link should open in a new window. We could have set the value of the xlink:show attribute to "embed". This means that the resource should be processed inline within the page. When you consider that this could be another XML document and not just an image, you could, for example, build a hierarchy of XML documents.
上面的举例中我们仅仅演示了简单的连接。当我们要访问远端资源时XLink能变得更有趣,而不光光是独立的一张页面。举例中的<description>元素设置了xlink:show属性的值为"new"。这意味着连接会在新的窗口中打开。我们可以将该属性设置为"embed"这就意味着连接资源会以嵌入的形式显示在页面中。当考虑到这可能是另一个XML文档而非只是一张图片,你可以,举例来说,建立一个XML文档阶层

With XLink, you can also specify WHEN the resource should appear. This is handled by the xlink:actuate attribute. xlink:actuate="onLoad" specifies that the resource should be loaded and shown when the document loads. However, xlink:actuate="onRequest" means that the resource is not read or shown before the link is clicked. This is very handy for low-bandwidth settings.
通过XLink,你还可以指定资源在什么时候显示。这由xlink:actuate属性来处理。 xlink:actuate="onLoad" 指定资源在文档被加载的时候显示。然而,xlink:actuate="onRequest"意味着资源在连接点击前是不回读取显示的。这对于针对低带宽配置来说是非常便利的。

  

Let's try to learn some basic XPointer syntax by looking at an example.
让我们尝试通过观察一个实例来学习一些XPointer的基础语法。


XPointer Example
XPointer 实例

In this example, we will show you how to use XPointer in conjunction with XLink to point to a specific part of another document.
在这个举例中,我们将告诉你怎样联合XLink使用XPointer来指向另一个文档中的指定部位。

We will start by looking at the target XML document (the document we are going to link to).
我们从观察要到达的XML文档开始(我们要连接到的文档)


The Target XML Document
目标XML文档

The target XML document is called "dogbreeds.xml" and it lists a few different dog breeds: 这个目标XML文档名为"dogbreeds.xml"它列举了一些不同品种的狗:

<?xml version="1.0" encoding="ISO-8859-1"?>
<dogbreeds>
<dog breed="Rottweiler" id="Rottweiler">
  <picture url="http://dog.com/rottweiler.gif" />
  <history>

  The Rottweiler's ancestors were probably Roman
  drover dogs.....
  </history>
  <temperament>
  Confident, bold, alert and imposing, the Rottweiler
  is a popular choice for its ability to protect....
  </temperament>
</dog>
<dog breed="FCRetriever" id="FCRetriever">

  <picture url="http://dog.com/fcretriever.gif" />
  <history>
  One of the earliest uses of retrieving dogs was to
  help fishermen retrieve fish from the water....
  </history>
  <temperament>
  The flat-coated retriever is a sweet, exuberant,
  lively dog that loves to play and retrieve....
  </temperament>

</dog>
</dogbreeds>

在你的浏览器中查看 "dogbreeds.xml" 文件

Note that the XML document above uses id attributes on each element we may want to link to!
注意,上面XML文档中每个元素使用到的id属性是我们将要去连接的!


The Linking XML Document
连接XML文档

Instead of linking to the entire document (as with XLink), XPointer allows you to link to specific parts of the document. To link to a specific part of a page, add a number sign (#) and an XPointer expression after the URL in the xlink:href attributes.
和连接整个文档不同(使用XLink),XPointer允许你连接文档中的某个指定位置。连接页面中的特殊位置,添加一个数字符号 (#)并在xlink:href属性的URL后面加上XPointer表达式。

The expression: #xpointer(id("Rottweiler")) refers to the element in the target document, with the id value of "Rottweiler".
表达式:#xpointer(id("Rottweiler"))通过与id"Rottweiler"的值与目标文档中的元素相关联

So the xlink:href attribute would look like this:
因此xlink:href属性看上去应该是这个样子的: xlink:href="http://dog.com/dogbreeds.xml#xpointer(id('Rottweiler'))"

However, XPointer allows a shorthand form when linking to an element with an id. You can use the value of the id directly, like this:
然而,当通过id连接到一个元素时XPointer允许使用缩写的方法。你可以直接使用id的值,像这样:xlink:href="http://dog.com/dogbreeds.xml#Rottweiler"

The following XML document refers to information of the dog breed for each of my dogs :-), all through XLink and XPointer references:
下面的XML文档通过XLink和XPointer来与我的每只狗的信息做关联:

<?xml version="1.0" encoding="ISO-8859-1"?>
<mydogs xmlns:xlink="http://www.w3.org/1999/xlink">
<mydog xlink:type="simple"
  xlink:href="http://dog.com/dogbreeds.xml#Rottweiler">
  <description xlink:type="simple"
  xlink:href="http://myweb.com/mydogs/anton.gif">

  Anton is my favorite dog. He has won a lot of.....
  </description>
</mydog>
<mydog xlink:type="simple"
  xlink:href="http://dog.com/dogbreeds.xml#FCRetriever">
  <description xlink:type="simple"

  xlink:href="http://myweb.com/mydogs/pluto.gif">
  Pluto is the sweetest dog on earth......
  </description>
</mydog>
</mydogs>
 
    

XLink Attribute Reference

AttributeValueDescription
xlink:actuateonLoad
onRequest
other
none
Defines when the linked resource is read and shown
xlink:hrefURLThe URL to link to
xlink:showembed
new
replace
other
none
Where to open the link. Replace is default
xlink:typesimple
extended
locator
arc
resource
title
none
The type of link
 
XLink 和 XPointer 简介 XLink(XML Linking Language)是XML的一个推荐标准,它定义了如何在XML文档中创建和表示链接。XLink允许用户在XML文档中创建到其他资源的链接,这些资源可以是其他XML文档、图片、音频、视频等。XPointer(XML Pointer Language)是XML的一个推荐标准,它定义了如何在XML文档中定位和引用特定元素。XPointer提供了比XLink更细粒度的定位能力,可以精确地指向XML文档中的某个节点。 阅读详情

相关推荐

XLink 和 XPointer 语法详解

XLink 是 XML Linking Language 的缩写,它提供了一种在 XML 文档中创建和管理链接的方法。XLink 支持简单的内部和外部链接,同时也支持富链接,例如双向链接和多源链接。XPointer 是 XML Pointer Language 的缩写,它提供了一种在 XML 文档中定位元素的方法。XPointer 可以用于在 XML 文档中直接引用元素,或者通过XPath表达式引用元素。本文详细介绍了 XLink 和 XPointer 的语法。

xyq2024的博客 555

Vue项目中动态给svg 中 xlink:href 属性赋值

Vue项目中动态给svg 中 xlink:href 属性赋值 在vue项目中有这样需求: 需要将svg中xlink:href 属性 通过传值的方式,修改图标名字 绑定属性的时候我们总是习惯使用 (:属性)的方式,但是对与 “xlink:href” 这样结构的属性,(:xlink:href)是没用的, 所以使用(v-bind:xlink:href)就可以啦 <template slot="name" slot-scope="text, record"> <svg class="icon

HWJBJ的博客 1万+

第十一节 定制自己的svgIcon组件

上一节我们安装并使用了elementPlus中的icon,这一节我们封装个自己的Icon组件,设计师或者在其他网站上下载个svg导入到根目录,结合我们的组件就可以用在页面上了。安装svg-sprite-loader创建自己的svgIcon组件。每天记录一点,助力成长!欢迎大家来浏览我的博客,如发现我有写错的地方,一起交流指正。系列文章会不段更新 来个打赏(微信) 马力全开 撸起袖子加油干~

1466

html阿里矢量图标库,矢量图标素材库_阿里巴巴矢量图标库的使用

一、引用线上图标库1.登录阿里巴巴矢量图标库(可以微博登录),鼠标悬停在需要的图标,点击收藏入库(购物车图标),点击下载到本地或添加到项目搜索你需要的图标并加入购物车选好之后选择储存为新项目生成在线链接,并复制到css中即可使用。注意:在本地调试的时候(就是当你的浏览器网址是file协议开头的时候),url(//)里双斜杠之前记得加上httpss:,像这样url(httpss://at.alicd...

weixin_36116366的博客 2505

NU1680无线充电接收器在TWS耳机中的应用实战:I2C调压与QI协议适配

本文详细解析了NU1680无线充电接收器在TWS耳机充电仓设计中的应用实战。重点阐述了其无固件设计、I2C接口动态调压功能如何解决不同QI协议发射器的兼容性难题,并分享了硬件设计、PCB布局、与发射端联调及安全测试等关键环节的实践经验,助力开发者快速实现稳定高效的无线充电方案。

weixin_28432777的博客 232

弹簧管压力表设计报告

精密机械课程设计 弹簧管压力表设计报告 2020年5月1日 目 录 第一章 设计任务概述... 3 1.1 课程设计目的... 3 1.2 设计任务... 3 1.3 技术指标... 3 第二章 压力表概述... 4 2.1 机械式压力表的组成部分... 4 2.2 工作原理... 4 第三章 压力表设计... 5 3.1 弹簧管参数设计... 5 3.2 曲柄滑块机构设计... ...

weixin_42163746的博客 6450

xlink对应的链接在html,XLink 和 XPointer 语法

XLink 和 XPointer 语法XLink 语法在 HTML 中,我们知道 元素可定义超级链接。不过 XML 不是这样工作的。在 XML 文档中,您可以使用任何你需要的名称 - 因此对于浏览器来说是无法预知在 XML 文档中可调用何种超级链接元素。在 XML 文档中定义超级链接的方法是在元素上放置可用作超级链接的标记。下面是在 XML 文档中使用 XLink 来创建链接的简单实例:xlin...

weixin_39640849的博客 817

别再纠结高侧低侧了!用INA199/INA219这类集成电流检测芯片,5分钟搞定精准电流测量

本文详细解析了使用INA199/INA219等集成电流检测芯片实现精准电流测量的高效方案。通过对比传统分立元件方案,突出集成芯片在精度、温度稳定性和设计简化方面的优势,并提供硬件设计避坑指南和软件实现最佳实践,帮助开发者快速掌握电流检测技术。

weixin_42685438的博客 470

XLink和XPointer入门

自毕业以来,在工作的项目中,XML的配置使用实在是太广泛了,也正因为XML语法简单,灵活性非常强,作为一种通讯数据交换格式标准,应用到各个领域,不管你是ASP程序员,还是PHP程序员,JAVA程序员,都必须掌握XML这么技术。 要掌握XML,只了解XML的格式语法是不够的,包括到现在,我个人其实还是掌握的不够好,XML说得算是博大精深啊,嘿嘿,附带技术太多了,学习成本也比较高,因为有太多知识点了...

huangbaokang的博客 1227

Apple 网页 SRP 登录系列文章(四):Hashcash 工作量证明与完整登录流程

本文是Apple SRP登录系列文章的收官之作,重点解析了Apple独有的Hashcash工作量证明机制并展示了完整的登录流程实现。文章详细介绍了Hashcash的安全目的、格式标准、计算核心算法及难度评估方法,特别提供了Python实现代码。同时还讲解了如何动态获取服务器Hashcash参数以及建立容错机制。最后呈现了完整的Apple SRP登录主函数架构,为开发者提供了从理论到实践的全面指导。全文通过代码示例和流程分析,系统性地阐述了Apple安全登录机制的技术细节。

Sayid_Des的专栏 629

TC8工作原理

OPEN组织由全世界主要整车厂和供应商组成,旨在推广以太网技术在车辆中的应用。OPEN下属多个技术委员会(Tech Committee,简称TC),对不同方面的技术细节进行量化定义,并发布相应规范。其中TC8规范包括车载以太网ECU从物理层到应用层的各层互操作性以及常规基础功能服务,目的在于提高不同ECU之间的兼容性 UpperTester UpperTester作为Tester与DUT的被测核心功能模块之间的中介,辅助完成测试。UpperTester的主要功能包括: 与Tester就测试模式切换/请.

jasonj333 5324

XLink 和 XPointer 语法

本文提供了XLink和XPointer的实用语法速查表。XLink部分涵盖简单链接、扩展链接、定位器、资源、弧和标题元素的必填属性及典型写法示例,并列出xlink:show和xlink:actuate的取值。XPointer部分汇总了简写指针、xpointer()方案、多段备用、element()方案等语法格式,特别推荐带命名空间和多段备用的写法。最后给出了5种常见组合写法示例,包括简单链接、SVG链接、EPUB脚注等实际应用场景。核心要点是:XLink必须声明命名空间,XPointer写在URI的#后面,

m0_57545130的博客 399

Spring Boot:如何快速搭建一个高性能微服务架构?

通过本文的详细步骤,我们成功搭建了一个高性能的微服务架构。Spring Boot 和 Spring Cloud 提供了强大的工具链,使得开发者能够快速实现服务注册与发现、负载均衡、熔断器与降级机制等功能。同时,通过数据库连接池、Redis 缓存和异步处理等优化手段,进一步提升了系统的性能和可靠性。希望本文能够帮助你快速入门 Spring Boot 微服务架构的搭建,并为实际项目提供参考。如果你有任何问题或建议,欢迎在评论区留言!

shrgegrb的博客 1013

XLink教程[转]

XLink教程 XML链接可以分成2部分:XLink 和 XPointer.XLink定义了在XML文件中创建超链接的标准方式,XPointer允许在XML文件中超链接链接到更多的精确详细部分(碎片)。 内容目录 XLink 和 XPointer 的介绍This chapter explaines what the XLink and XPointer languages...

aobc72208的博客 748

Spatial-ORMLLM: Improve Spatial Relation Understanding in the Operating Room with Multimodal Larg...

手术室(OR)中的精准空间建模是众多临床任务的基础,可为术中感知、风险规避及手术决策提供支持。现有方法虽利用大规模多模态数据集进行 latent 空间对齐,以隐式学习空间关系,但却忽视了多模态大型语言模型(MLLM)的3D能力。然而,这种方法存在两个问题:1)手术室通常缺乏多台视频和音频传感器,多模态3D数据难以获取;2)仅依赖易获取的2D数据训练,无法捕捉复杂场景中的细粒度细节。为解决这一问题,我们提出——首个针对手术室3D空间推理的大型视觉语言模型。

UnknownBody_2的博客 592

cesium 深度图(获取区域最高最低点位)

文章摘要: Cesium深度图技术可用于获取区域地形高程数据,核心实现步骤包括:1)通过离屏相机构建独立渲染环境,使用正交投影确保采样精度;2)采用离屏渲染技术获取均匀分布的地形点数据。关键技术点包含多边形外包矩形计算、后台相机配置(5km高度正交投影)、1024×1024像素离屏视图设置,以及深度数据解析(RGBA格式转换和三维坐标还原)。该方法避免了主视图干扰,可精准获取区域内地形高程信息,为填挖方分析等应用提供基础数据支持。

God's asylum的博客 283

探索 Java 基础中的 XLink 和 XPointer

简单链接:类似于 HTML 中的标签,将一个元素链接到一个资源。简单链接是最基础的 XLink 类型,设计目的接近基本 HTML 的链接功能,只有一个链接地址(locator)。例如在文档中可以这样定义简单链接:

qq_25699299的博客 989

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

XLink 和 XPointer:从入门到实战的详细教程

XLink(XML Linking Language)是一种用于在 XML 文档中创建和表达链接的机制。它允许 XML 文档中的元素与其他资源(如其他 XML 文档、图片、视频等)建立链接关系。XPointer(XML Pointer Language)是一种用于定位 XML 文档中特定部分的语言。它基于 XPath 表达式,提供了对 XML 文档中元素、属性、范围和注释的精确引用。XLink 和 XPointer 是 XML 链接技术的关键组件,它们使得在 XML 文档中创建和解析链接变得更加容易。

加入“Super Entity”,与全能开发团队共探AI智能体与数字人项目,开启前沿技术之旅。 1631

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

XLink 和 XPointer 安装使用教程

XLink和XPointer是W3C制定的XML链接标准。XLink用于创建XML文档间的超链接,支持多种链接类型;XPointer用于精确定位XML文档中的元素。两者常配合使用,适用于学术引用、文档注释等场景。XLink通过xlink:href等属性定义链接,XPointer则嵌入URI中定位节点。虽然浏览器对原生支持有限,但可通过专业工具(如Oxygen XML Editor)进行调试。典型应用包括与SVG结合创建可点击图形。学习资源包括W3C规范文档和XML编辑器工具。

真正的大师永远怀着一颗学徒的心 1012

xlink对应的链接在html,XLink 和 XPointer 简介

全屏XLink 和 XPointer简介XLink 定义了一套标准的在 XML 文档中创建超级链接的方法。XPointer 使超级链接可以指向 XML 文档中更多具体的部分(片断)。您应当具备的基础知识学习本教程前您应当具备的基础知识:HTML / XHTMLXML / XML 命名空间XPath如果您希望首先学习这些项目,请在我们对 首页 访问这些教程。首页.什么是 XLink?XLink 是...

weixin_27038261的博客 290

XLink and XPointer

XLink defines a standard way of creating hyperlinks in XML documents. XPointer allows the hyperlinks to point to more specific parts in the XML document. XLink Reference Attribute

xinghua的专栏 364

XLink 和 XPointer 教程

本文介绍了XML链接与定位标准XLink和XPointer。XLink克服了HTML链接的局限性,支持多目标、双向和第三方链接,提供简单链接(类似HTML)和功能更强大的扩展链接。XPointer用于在XML文档内精确定位,支持XPath表达式、ID定位和范围选择等方案。两者在XML生态(如SVG、EPUB等)中仍广泛应用,是处理复杂链接关系的有效工具。教程详细讲解了XLink的属性和扩展链接实现方法,以及XPointer的各种定位语法和实际应用示例。

m0_57545130的博客 1082

XPointer 实例

XPointer 是一种用于定位 XML 文档中特定部分的语言。它是 XLink 的补充,允许用户在 XML 文档中创建链接,指向文档中的特定元素、属性或文本。XPointer 的强大之处在于其精确的定位能力,使得开发者能够创建更加丰富和动态的 XML 应用。

lly202406的博客 488
上一篇: NAMESPACE
下一篇: Xpath介绍
sunrainwind
博客等级 码龄20年 2粉丝 3原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值