|
|
Códigos disponibles en git |
¿Por qué?
Otros navegadores Web: | |
---|---|
|
Batallas de los Navegadores | |
---|---|
|
|
|
¿Qué?
Para qué?
Eficiencia, gracias a un estándar, todos igual de la misma manera: sencillo | ||
---|---|---|
|
|
|
¿Cómo?
Modelo del Objeto Documento
|
Diagrama de clases: Tipos de nodos: Tutorial: CDATA_SECTION_NODE, ENTITY_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE, … |
|
Diagrama de objetos: DOM de documento XML: |
XPointer | XLink | XQuery | XSLT |
---|---|---|---|
|
|
|
|
XLink y XPointer | XQuery | XSLT | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
||||||||||||||
|
XPath
Definición | Retorno | Documentación |
---|---|---|
|
|
|
Rutas
|
|
Ejes
|
|
|
|
Pruebas
|
|
Resultado | XPath | XPath abreviado |
---|---|---|
|
/child::countries |
/countries, //countries |
|
/child::countries/child::country/ child::capital |
//capital |
|
/child::countries/child::country/ child::languages |
//languages |
|
/child::countries/child::country/ child::languages/child::text() |
//languages/text() |
|
/child::countries/child::country/ child::topLevelDomain/attribute::array |
//@array |
Predicados
|
|
Función | Retorno | Descripción |
---|---|---|
conjunto de nodos |
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Resultado | XPath |
---|---|
|
//country[name = "Spain"] |
|
//country[population > 1000.0E+6]/name/text() |
|
//country[borders/text() = "ESP"]/name |
|
//nativeName[. = "Español"]/../../name |
|
//population[. > 1000.0E+6]/../name |
|
//borders[. = "ESP"]/../name |
|
//languages[./preceding-sibling::languages]/name |
//languages[position() = 1]/name |
|
//languages[1]/name |
|
|
//country[count(./languages)>1]/name |
|
//languages[count(./preceding::languages)=0]/name |
|
//country/timezones[-5 ⇐ number(substring-before(substring-after(text(),"UTC"),":")) and number(substring-before(substring-after(text(),"UTC"),":")) ⇐ -3]/../name |
|
sum(//population) |
|
count(//country[population > 1000.E+6]) |
|
count(/countries/country[count(./languages)>1]) |
|
count(/countries/country/languages/nativeName[text() = "Español"]) |
|
sum(//population) div count(//country) |
|
distinct-values(//country/languages[1]/./name) |
|
/countries/country[(sum(//population) div count(//country)) < ./population]/name |
Sintesis
Bibliografía
Obra, Autor y Edición | Portada | Obra, Autor y Edición | Portada |
---|
Ponente
|
|
|