`
wonderfan
  • 浏览: 14249 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论

XML XLS AND XSLT AND XPATH AND XPOINTER AND COCOON

阅读更多
there are two ways of chainging schemas together .import import a schema from another namespace into target schema. include include a schema that reside in the same namespace as the target schema.these goals are in tension with one another.the working group's strategix guidlines for changes between version1.0 and 1.1 can be summaried as follows:support for versioning support for cooccurrence constraints. xsd schemas can be described in terms of an abstract data model. in defining schemas in terms of an abstract data model, this specification rigorously specifies the information which musty be avaible to a conforming xsd processor. schema component is the generic term for the building blocks that make up the abstract data model of the schema. an xsd schema is a set of schema comoponents. there are several kinds of schema component,falling into three groups. the primary schema components which may or must have names are as follows:simple type definitions , complex type definitions attributes declarations,element declarations.  the second schema components are as follow: attribute group definitions,identity-constraint definitions,type alternatives,assertions,model group definitions,notation declarations. finally, the helper schema components provide small parts of other schema components, they are dependent on their context: annotation,model groups,particles,wildcards,attribute uses. for each kind of schema component there is a corresponding normative xml represention.  xslt----- a language for transforming xml documents. xsl or xsl-fo a language for formatting xml documents,xpath---- a language for navigating through elements and attributers in xml documents.

xsl-fo documents are xml files with output information. they contain information about the output layout and output contents. xsl -fo documents are stored in files with a .fo or .fob file extension. it is also quite common to see sxl-fo documents stored with an .xml extension,because this makes them more accessibel to xml editors.
an xsd schema is a set of components such as type definitions and element declarations. these can be used to assess the validity of well-formed element and attribute information items.

The xsl language consists of two parts: an xsl transformation language and a formating object specification. the xsl transformation lanuage and the formating object specification are implemented as xml namespaces. the xsl transformation lanuage is  a desciption of how a processor can transform an xml from one structure to another. the transformation process in a general sense takes one document tree and transforms it into another document tree. its most likely and perhaps obvious use would be to convert an xml document from a semantic structure to a display structure. the formatting object specofication provides for new formatting semantics developed as an xml vocabulary. a style sheet consists of one or more templates that contain patterns. As their name imlies, templates provide a structure form the output document. The output elements can be almost anything. xsl templates reference xml data via patterns. xsl uses patterns to specify the xml elements to which the xsl template applies. this method of pattern matching makes xsl a declarative lanuiage as opposed to a procudural language. That is , the patterns describe the specific  branch in the document tree to match by identifying its hierarchical structure whithin that tree. the most straightforward way to get data into a template is to use the xsl:value-of element combined with the select attribute. The xsl:value-of element retrieves the value of the element indicated by the select attribute. This value is then inserted into the template as text. queries are the muscle behind xsl while the term query might sound like a highly technical programming term. Queries provide a way to address data by specifying a pattern and then matching that pattern.Queries also provide a sorting mechanism in xsl. In xsl , every element must have a template so that the document can be processed properly. When the processor recognizes that an element does not have a template, it  uses a built-in  default template for that element.The default template simply targets the element in question and specifies no formatting for it. The value of using xml as a data source in application is entirely dependent on the ability of the application and ultimately the user to access that data. There are three ways to access data in an xml document. The first way is to walk the xml document tree and pull out information as we come across what we are looking for. The second method is to use the xml data source object to populate a table with xml data. while this method provides more flexibility.We also looked at using xsl to apply rules a document that describe how the data should be presented.

Xpath has seven node types:root,element,attribute,text,comment,processing instruction and namespace. The Xpath tree has a single root node which contains all other nodes in the tree.

To prcoess xslt documnets, you will need an xslt processor. Apache has created the XALAN xslt processor for java and c++.  xslt uses XPATH expression to locate nodes in an xml document.In an xsl transformation, there are two trees of nodes. The first node tree is the source tree. The nodes in this tree correspond to the original xml document to which the transformation is applied. The second node tree is the result tree. The result tree contains all of the nodes produced by the xsl transformation. The result tree represents the document produced by the transformation.

THE W3C IS currently working on a specification to provide base uris for relative links,similar to the html element base.
分享到:
评论

相关推荐

    Beginning XSLT and XPath: Transforming XML Documents and Data

    Ian Williams presents a clear, concise resource on XSLT concepts and methods and explains how and why XSLT relies on the XML Path language (XPath).As you gain a solid foundation in XSLT processing,...

    Beginning.XSLT.and.XPath_Transforming.XML.Documents.and.Data源码

    《 Beginning.XSLT.and.XPath_Transforming.XML.Documents.and.Data 源码》是关于XML文档处理技术的宝贵资源,主要聚焦于XSLT(可扩展样式表语言转换)和XPath(XML路径语言)这两个核心技术。XSLT是用于将XML文档...

    Beginning XSLT and XPath Transforming XML Documents and Data

    本书《Beginning XSLT and XPath: Transforming XML Documents and Data》旨在为开发者提供一个坚实的XSLT处理模型基础,并通过具体实例帮助读者理解XSLT如何依赖于XPath以及其处理模型与其他编程语言的不同之处。...

    《XSLT与XPath入门:转换XML文档与数据》 [PDF]

    XML内容管理应用程序的增长刺激了对XSLT和Xpath技能的要求.本入门教程提供了XSLT处理模型的基础,为开发者提供了重要的基本功. XSLT 是一种用于将 XML 文档转换为 XHTML 文档或其他 XML 文档的语言。  XPath 是一种...

    XPath and XSLT

    XPath和XSLT是XML处理中的两个关键技术,它们在数据提取、转换以及格式化XML文档时发挥着重要作用。 XPath,全称XML Path Language,是一种在XML文档中查找信息的语言。它允许开发者通过路径表达式来选取XML节点,...

    Practical.Transformation.with.XSLT.and.XPath.pdf

    本文将深入探讨XSLT(可扩展样式表语言转换)和XPath(XML路径语言)在实用转换中的应用,通过 CraneSoftwrights Ltd. 出版的《实用转换:使用XSLT与XPath》一书的部分内容,来理解这两种技术如何帮助我们处理和转换...

    Beginning XSLT and Xpath

    《Beginning XSLT and XPath》这本书作为高清英文原版,将深入介绍这两个技术,涵盖基本概念、高级用法、实例解析等内容,对于想学习和掌握XML数据处理的读者来说是一本宝贵的资源。通过阅读这本书,你可以了解如何...

    XSLT 2.0 and XPath 2.0.PDF

    XSLT 2.0 and XPath 2.0.PDF XSLT 2.0 and XPath 2.0.PDF

    xslt,xpath的例子和语法。非常全面。对于学习xml+xslt技术的人一定有帮助

    XML(eXtensible Markup ...通过深入学习这些教程和参考材料,你可以全面理解XML、XSLT和XPath,并能熟练地利用它们来处理XML数据,进行数据转换和查询。对于开发人员来说,掌握这些技术对于处理结构化数据至关重要。

    XML笔记+XSLT中文入门

    XSLT入门需要掌握XPath的基本用法,它是XSLT中用于选取XML节点的语言。XPath表达式可以选取节点集、单个节点、字符串值或数字。理解节点类型,如元素、属性、文本和命名空间,以及路径表达式和轴的概念,是使用XPath...

    XML XML Schema XSLT 2.0和XQuery开发详解源代码.rar

    这个压缩包“XML XML Schema XSLT 2.0和XQuery开发详解”包含了与这些技术相关的源代码示例。这些示例通常会涵盖以下方面: 1. **XML文档结构**:示例可能包括不同类型的XML文档,展示如何创建符合XML语法规则的...

    XPath,Xlink,XPointer,XML学习手册

    Hypermedia concepts and alternatives to the Web <br>XML Namespaces, XML Base, XInclude, XML Information Set, XHTML, and XSLT <br>XPath, XLink, and XPointer concepts, strengths, and limitations...

    xslt.rar_xml xslt_xslt

    3. **XPath(XML Path Language)**:XPath是XSLT中用于选取XML节点的语言。它提供了一种简洁的方式来定位XML文档中的元素、属性和其他节点。XPath表达式可以用于模板的匹配模式,也可以在模板内部引用节点。 4. **...

    xslt与xpath入门转换xml文档与数据

    在处理XML文档时,XSLT(eXtensible Stylesheet Language Transformations)和XPath(XML Path Language)是两个重要的工具。 XSLT是用于转换XML文档的样式表语言,它的主要功能是将XML源文档转换成另一种XML格式,...

    实验3XML文件映射与转换(使用XSLT和XPath)

    【实验3XML文件映射与转换(使用XSLT和XPath)】 实验主要涉及XML、XSLT和XPath这三个核心技术,它们在数据处理和信息展示中扮演着重要角色。 XML(Extensible Markup Language)是一种标记语言,用于描述数据结构...

    DIXML v5.9.0 for D6-XE10.1 XML XSLT EXSLT 解析

    DIXml is an embedded XML, XSLT, and EXSLT processing library for Delphi (Embarcadero / CodeGear / Borland). It is build on the libxml2, libxslt and libexslt libraries but requires no DLLs nor other ...

Global site tag (gtag.js) - Google Analytics