본문 바로가기
Grid/Websquare

XPath란?

by 태하팍 2012. 11. 6.
반응형


  • XPath is a syntax for defining parts of an XML document
     
  • XPath uses path expressions to navigate in XML documents
    XPath uses path expressions to select nodes or node-sets in an XML document.
    These path expressions look very much like the expressions you see when you work
    with a traditional computer file system.
     
     
  • XPath contains a library of standard functions
    XPath includes over 100 built-in functions. There are functions for string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values, and more.
     
  • XPath is a major element in XSLT

    XPath is a major element in the XSLT standard. Without XPath knowledge you will not be able to create XSLT documents.

    You can read more about XSLT in our XSLT tutorial.

    XQuery and XPointer are both built on XPath expressions. XQuery 1.0 and XPath 2.0 share the same data model and support the same functions and operators.

    You can read more about XQuery in our XQuery tutorial.

     
  • XPath is a W3C recommendation [The World Wide Web Consortium (W3C)]

    XPath became a W3C Recommendation 16. November 1999.

    XPath was designed to be used by XSLT, XPointer and other XML parsing software.

    To read more about the XPATH activities at W3C, please read our W3C tutorial


    출 처 : http://www.w3schools.com/xpath/xpath_intro.asp

     
    우선...선지식으로 XSLT 을 배워야 할 것 같다.
    그담에 XQuery~!!  그 다음에 W3C~!!! 

    자~! 가보자~~~XPath 잡으로~~~~~~



     

    1. XSLT Tutorial

    XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.

    XSLT stands for XSL Transformations. In this tutorial you will learn how to use XSLT to transform XML documents into other formats, like XHTML. 


    시작~!! 

    1) It Started with XSL

    XSL stands for EXtensible Stylesheet Language.

    The World Wide Web Consortium (W3C) started to develop XSL because there was a need for an
    XML-based Stylesheet Language.

    2) CSS = Style Sheets for HTML

    HTML uses predefined tags, and the meaning of each tag is well understood.

    The <table> tag in HTML defines a table - and a browser knows how to display it.

    Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS. 

    3) XSL = Style Sheets for XML

    XML does not use predefined tags (we can use any tag-names we like), and therefore the meaning of each tag is not well understood.

    A< table> tag could mean an HTML table, a piece of furniture, or something else - and a browser does not know how to display it.

    XSL describes how the XML document should be displayed! 

    4) XSL - More Than a Style Sheet Language

    XSL consists of three parts:

    • XSLT - a language for transforming XML documents - 변환
    • XPath - a language for navigating in XML documents - 처리
    • XSL-FO - a language for formatting XML documents  - 형식

    5) This Tutorial is About XSLT

    The rest of this tutorial is about XSLT - the language for transforming XML documents.

    To learn more about XPath and XSL-FO, visit our XPath Tutorial and our XSL-FO Tutorial.

     

    XSLT is a language for transforming XML documents into XHTML documents or to other XML documents.

    XPath is a language for navigating in XML documents.

    6) What You Should Already Know

    Before you continue you should have a basic understanding of the following:

    • HTML / XHTML
    • XML / XML Namespaces
    • XPath

    If you want to study these subjects first, find the tutorials on ourHome page.

     

    7) What is XSLT?

    • XSLT stands for XSL Transformations
    • XSLT is the most important part of XSL
    • XSLT transforms an XML document into another XML document
    • XSLT uses XPath to navigate in XML documents
    • XSLT is a W3C Recommendation

    8) XSLT = XSL Transformations

    XSLT is the most important part of XSL.

    XSLT is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML. Normally XSLT does this by transforming each XML element into an (X)HTML element.

    With XSLT you can add/remove elements and attributes to or from the output file. You can also rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and a lot more.

    A common way to describe the transformation process is to say that XSLT transforms an XML source-tree into an XML result-tree.

    9) XSLT Uses XPath

    XSLT uses XPath to find information in an XML document. XPath is used to navigate through elements and attributes in XML documents.

    If you want to study XPath first, please read ourXPath Tutorial.


    10) How Does it Work?

    In the transformation process, XSLT uses XPath to define parts of the source document that should match one or more predefined templates. When a match is found, XSLT will transform the matching part of the source document into the result document.


    11) XSLT is a W3C Recommendation

    XSLT became a W3C Recommendation 16. November 1999.

    To read more about the XSLT activities at W3C, please read ourW3C tutorial.

    우선 중지~!! 자바스크립트 XPath라고 하신다..ㅋㅋ..같은거 같기도 하고.. 

     

반응형

'Grid > Websquare' 카테고리의 다른 글

Websquare에서 Tomcat 연동 시 Error processing request 오류  (0) 2013.08.19
Websquare 시작하기 Tip  (0) 2012.11.13