<xsd:element name="comment" type="xsd:string"/>
Contents contributed and discussions participated by David Gelpi Fleta
XML Schema Part 0: Primer Second Edition - 0 views
-
-
Global elements, and global attributes, are created by declarations that appear as the children of the schema element. Once declared, a global element or a global attribute can be referenced in one or more declarations using the ref attribute as described above.
-
ref="comment"
- ...151 more annotations...
XSL - 24 views
-
Hemos marcado a través de la herramienta Diigo lo estrictamente necesario para añadir una capa de presentación a los datos etiquetados mediante XML. Encontraréis los apuntes en los "bookmarks" del grupo. De este modo, añadiremos estilo y estructura mediante un documento XHTML al modelado XML del que constará la práctica.
XSL y XPath son tecnologías sencillas, de fácil comprensión. Esperamos que no resulte complicado. Ya sabéis dónde encontrarnos si necesitáis ayuda o resolver dudas.
Un saludo,
David Gelpi.
XSLT Transformation - 0 views
-
<?xml-stylesheet type="text/xsl" href="http://www.w3schools.com/cdcatalog.xsl"?>
-
<?xml-stylesheet type="text/xsl" href="http://www.w3schools.com/cdcatalog.xsl"?>
-
Example study: How to transform XML into XHTML using XSLT.
- ...6 more annotations...
Introduction to XSLT - 0 views
-
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
-
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.
-
A common way to describe the transformation process is to say that XSLT transforms an XML source-tree into an XML result-tree.
- ...2 more annotations...
XSLT <xsl:if> Element - 0 views
-
<xsl:if test="expression"> ... ...some output if the expression is true... ... </xsl:if>
-
add the <xsl:if> element inside the <xsl:for-each> element
-
<xsl:for-each select="catalog/cd"> <xsl:if test="price &gt; 10">
XSLT <xsl:choose> Element - 0 views
-
The <xsl:choose> element is used in conjunction with <xsl:when> and <xsl:otherwise> to express multiple conditional tests.
-
<xsl:choose> <xsl:when test="expression"> ... some output ... </xsl:when> <xsl:otherwise> ... some output .... </xsl:otherwise> </xsl:choose>
XSLT <xsl:sort> Element - 0 views
-
To sort the output, simply add an <xsl:sort> element inside the <xsl:for-each> element in the XSL file:
-
<xsl:for-each select="catalog/cd"> <xsl:sort select="artist"/>
XSLT <xsl:apply-templates> Element - 0 views
-
The <xsl:apply-templates> element applies a template to the current element or to the current element's child nodes.
-
If we add a select attribute to the <xsl:apply-templates> element it will process only the child element that matches the value of the attribute
XSLT <xsl:for-each> Element - 0 views
-
The <xsl:for-each> Element The XSL <xsl:for-each> element can be used to select every XML element of a specified node-set:
-
<xsl:for-each select="catalog/cd">
-
We can also filter the output from the XML file by adding a criterion to the select attribute in the <xsl:for-each> element.
- ...1 more annotation...
XSL Languages - 0 views
-
XSL stands for EXtensible Stylesheet Language.
-
XSL describes how the XML document should be displayed!
-
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
XSLT <xsl:template> Element - 0 views
-
An XSL style sheet consists of one or more set of rules that are called templates. Each template contains rules to apply when a specified node is matched.
-
<xsl:template> element is used to build templates. The match attribute is used to associate a template with an XML element. The match attribute can also be used to define a template for the entire XML document. The value of the match attribute is an XPath expression (i.e. match="/" defines the whole document).
-
<xsl:template match="/"> <html>
- ...3 more annotations...
XPath Syntax - 0 views
-
Selecting Nodes XPath uses path expressions to select nodes in an XML document.
-
Expression Description nodename Selects all child nodes of the named node / Selects from the root node // Selects nodes in the document from the current node that match the selection no matter where they are . Selects the current node .. Selects the parent of the current node @ Selects attributes
-
Selecting Several Paths By using the | operator in an XPath expression you can select several paths.
- ...10 more annotations...
XSLT <xsl:value-of> Element - 0 views
-
The <xsl:value-of> element is used to extract the value of a selected node.
-
<xsl:value-of select="catalog/cd/title"/>
-
he value of the select attribute is an XPath expression. An XPath expression works like navigating a file system; where a forward slash (/) selects subdirectories.
-
Ver ejemplos XPath en: http://www.w3schools.com/xpath/xpath_syntax.asp
-
Extensible Markup Language (XML) 1.0 (Second Edition) - 0 views
-
A Name is a token beginning with a letter or one of a few punctuation characters, and continuing with letters, digits, hyphens, underscores, colons, or full stops, together known as name characters.] Names beginning with the string " xml", or any string which would match (('X'|'x') ('M'|'m') ('L'|'l')) , are reserved for standardization in this or future versions of this specification.
-
An Nmtoken (name token) is any mixture of name characters.
-
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
- ...1 more annotation...
XML Schema Part 2: Datatypes Second Edition - 0 views
-
The ·value space· of NMTOKEN is the set of tokens that ·match· the Nmtoken production
-
Ver la definición de NAME en: http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Nmtoken
-
-
token represents tokenized strings. The ·value space· of token is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces.
-
NMTOKEN has the following ·constraining facets·: lengthminLengthmaxLengthpatternenumerationwhiteSpace
Código ejemplos laboratorio. - 22 views
-
En la página de la asignatura en Creaweb:
http://creaweb.ei.uvigo.es/creaweb/jsp/crearAsignatura.jsp?codigo=110421
podéis encontrar el código de algunos de los ejemplos de los ejercicios propuestos en el laboratorio. -
Están disponibles (por el momento)
- ejercicio base sobre trabajo con espacio de nombres
- ejercicio con recurso Include
- ejercicio con recurso Import
- ejercicio con Tipos Derivados
- ejercicio con recurso Redefine
- ejercicio con elemento Abstract
- ejercicio con tipo Abstract
- combinaciones de los anteriores
Dudas o comunicación de posibles errores, notificar aquí mismo.
Un saludo,
David Gelpi.
dgelpi wrote:
> En la página de la asignatura en Creaweb:
>
> http://creaweb.ei.uvigo.es/creaweb/jsp/crearAsignatura.jsp?codigo=110421
>
> podéis encontrar el código de algunos de los ejemplos de los ejercicios propuestos en el laboratorio.
XML Schema Indicators - 0 views
-
Order indicators: All Choice Sequence Occurrence indicators: maxOccurs minOccurs Group indicators: Group name attributeGroup name
-
<all> indicator specifies that the child elements can appear in any order, and that each child element must occur only once
-
When using the <all> indicator you can set the <minOccurs> indicator to 0 or 1 and the <maxOccurs> indicator can only be set to 1
- ...14 more annotations...
XML Schema Simple Elements - 0 views
-
What is a Simple Element? A simple element is an XML element that can contain only text. It cannot contain any other elements or attributes. However, the "only text" restriction is quite misleading. The text can be of many different types. It can be one of the types included in the XML Schema definition (boolean, string, date, etc.), or it can be a custom type that you can define yourself.
-
xs:string xs:decimal xs:integer xs:boolean xs:date xs:time
-
Más tipos de datos predefinidos en: http://www.w3.org/TR/xmlschema-0/#simpleTypesTable
-
-
you can require the data to match a specific pattern.
- ...7 more annotations...
Exercise 1: note - 29 views
-
In the first of the bookmarks in the group PSI_ESEI ("Introduction to XML") answer to the question of the note, located under the title "XML in Future Web Development".
Avoid repeat a use case cited previously; we want the larger amount of information we can get.
The green color of the text is reserved to the wording of the exercise.
La práctica a entregar está colgada en la página de la asignatura en Creaweb. Sus contenidos se explicarán convenientemente en las horas de laboratorio de los grupos que tengan clase esta semana y la próxima, aunque considero que el enunciado es lo suficiente explícito y claro para comprender los objetivos, requisitos y cuestiones varias asociadas al trabajo propuesto.
No dudéis en plantear cualquier duda que tengáis en este foro.
Un cordial saludo y ánimos,
David Gelpi.
http://creaweb.ei.uvigo.es/creaweb/jsp/crearAsignatura.jsp?codigo=110421
dgelpi wrote:
> Estimad@s tod@s,
>
> La práctica a entregar está colgada en la página de la asignatura en Creaweb. Sus contenidos se explicarán convenientemente en las horas de laboratorio de los grupos que tengan clase esta semana y la próxima, aunque considero que el enunciado es lo suficiente explícito y claro para comprender los objetivos, requisitos y cuestiones varias asociadas al trabajo propuesto.
>
> No dudéis en plantear cualquier duda que tengáis en este foro.
>
> Un cordial saludo y ánimos,
> David Gelpi.