Skip to main content

Home/ Groups/ PSI_ESEI
David Gelpi Fleta

Enunciado práctica - 41 views

English version of the practice available in section "Apuntes de prácticas" in Creaweb: http://creaweb.ei.uvigo.es/creaweb/jsp/crearAsignatura.jsp?codigo=110421 dgelpi wrote: > Estimad@s tod@s,...

practica

David Gelpi Fleta

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 cite...

ejercicios

started by David Gelpi Fleta on 18 Oct 07 no follow-up yet
David Gelpi Fleta

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 ...

practica

started by David Gelpi Fleta on 27 Nov 07 no follow-up yet
David Gelpi Fleta

Código ejemplos laboratorio. - 22 views

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 ...

ejercicios

David Gelpi Fleta

Ejercicio 1 - 14 views

En el primero de los bookmarks ("Introduction to XML") responde a la pregunta de la nota, situada en el apartado "XML in Future Web Development". No repitas un caso de uso que ya haya sido citado;...

ejercicios

started by David Gelpi Fleta on 03 Oct 07 no follow-up yet
David Gelpi Fleta

Clase martes 9/10/07 - 15 views

Si eres alumno del grupo 2 (martes) y si es posible, échale un ojo a los bookmarks contenidos hasta el titulado "data islands" antes de la proxima sesión de laboratorio.

ejercicios

started by David Gelpi Fleta on 03 Oct 07 no follow-up yet
David Gelpi Fleta

Sobre la categoría "ejercicios" - 11 views

En esta categoría, encontraremos los enunciados de los (pequeños) ejercicios a completar a lo largo del curso.

ejercicios

started by David Gelpi Fleta on 03 Oct 07 no follow-up yet
David Gelpi Fleta

Exercise 0 - 4 views

Hi people :) The first exercise of this course is about introduce yourselves. Write something about you (name, laboratory group, a greeting, whatever you want...) Don´t forget to choose an avatar.

ejercicios

started by David Gelpi Fleta on 18 Oct 07 no follow-up yet
David Gelpi Fleta

Sobre la categoría "dudas teoría" - 3 views

Escribe en esta categoría aquellas dudas que surjan en el desarrollo de las clases de laboratorio. La persona que conozca (o crea conocer) la respuesta, que pase a la acción ;)

dudas teoría

started by David Gelpi Fleta on 03 Oct 07 no follow-up yet
David Gelpi Fleta

XML Schema Attributes - 0 views

  • Simple elements cannot have attributes. If an element has attributes, it is considered to be of a complex type. But the attribute itself is always declared as a simple type.
  • <xs:attribute name="xxx" type="yyy"/>
    • hocevik hocevik
       
      Simple Element tanımı aşağıdaki gibi :
    • hocevik hocevik
       
      Simple element tanımı :
      <xs:element name="lastname" type="xs:string"/>
  • Attributes may have a default value OR a fixed value specified
  • ...1 more annotation...
  • Attributes are optional by default. To specify that the attribute is required, use the "use" attribute: &lt;xs:attribute name="lang" type="xs:string" use="required"/&gt;
David Gelpi Fleta

XML Schema Restrictions/Facets - 0 views

  • Restrictions are used to define acceptable values for XML elements or attributes. Restrictions on XML elements are called facets.
  • Restrictions on Values
  • &lt;xs:restriction base="xs:integer"&gt; &lt;xs:minInclusive value="0"/&gt; &lt;xs:maxInclusive value="120"/&gt; &lt;/xs:restriction&gt;
  • ...15 more annotations...
  • Restrictions on a Set of Values To limit the content of an XML element to a set of acceptable values, we would use the enumeration constraint.
  • &lt;xs:restriction base="xs:string"&gt; &lt;xs:enumeration value="Audi"/&gt; &lt;xs:enumeration value="Golf"/&gt; &lt;xs:enumeration value="BMW"/&gt; &lt;/xs:restriction&gt;
  • type="carType"/&gt;
  • &lt;xs:simpleType name="carType"&gt;
  • the type "carType" can be used by other elements
  • series of numbers or letters that can be used, we would use the pattern constraint.
  • &lt;xs:minLength value="5"/&gt; &lt;xs:maxLength value="8"/&gt;
  • &lt;xs:pattern value="male|female"/&gt;
  • The whiteSpace constraint is set to "preserve", which means that the XML processor WILL NOT remove any white space characters:
  • &lt;xs:whiteSpace value="preserve"/&gt;
  • The whiteSpace constraint is set to "replace", which means that the XML processor WILL REPLACE all white space characters (line feeds, tabs, spaces, and carriage returns) with spaces:
  • &lt;xs:whiteSpace value="replace"/&gt;
  • &lt;xs:length value="8"/&gt;
  • &lt;xs:restriction base="xs:string"&gt; &lt;xs:pattern value="[a-z]"/&gt;
  • Constraint Description enumeration Defines a list of acceptable values fractionDigits Specifies the maximum number of decimal places allowed. Must be equal to or greater than zero length Specifies the exact number of characters or list items allowed. Must be equal to or greater than zero maxExclusive Specifies the upper bounds for numeric values (the value must be less than this value) maxInclusive Specifies the upper bounds for numeric values (the value must be less than or equal to this value) maxLength Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero minExclusive Specifies the lower bounds for numeric values (the value must be greater than this value) minInclusive Specifies the lower bounds for numeric values (the value must be greater than or equal to this value) minLength Specifies the minimum number of characters or list items allowed. Must be equal to or greater than zero pattern Defines the exact sequence of characters that are acceptable totalDigits Specifies the exact number of digits allowed. Must be greater than zero whiteSpace Specifies how white space (line feeds, tabs, spaces, and carriage returns) is handled
David Gelpi Fleta

XML Schema Complex Elements - 0 views

  • A complex element is an XML element that contains other elements and/or attributes. There are four kinds of complex elements: empty elements elements that contain only other elements elements that contain only text elements that contain both other elements and text Note: Each of these elements may contain attributes as well!
  • &lt;xs:element name="employee"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt;
  • type="personinfo"/&gt; &lt;xs:complexType name="personinfo"&gt;
  • ...1 more annotation...
  • &lt;xs:complexType name="fullpersoninfo"&gt; &lt;xs:complexContent&gt; &lt;xs:extension base="personinfo"&gt;
David Gelpi Fleta

XML Schema Complex Type - Empty Elements - 0 views

  • &lt;xs:element name="product"&gt; &lt;xs:complexType&gt; &lt;xs:attribute name="prodid" type="xs:positiveInteger"/&gt;
David Gelpi Fleta

XML Schema Complex Type - Text Elements - 0 views

  • This type contains only simple content (text and attributes),
  • &lt;xs:element name="shoesize"&gt; &lt;xs:complexType&gt; &lt;xs:simpleContent&gt; &lt;xs:extension base="xs:integer"&gt; &lt;xs:attribute name="country" type="xs:string" /&gt;
David Gelpi Fleta

XML Schema Complex Types - Mixed Content - 0 views

  • A mixed complex type element can contain attributes, elements, and text.
  • mixed="true"&gt;
David Gelpi Fleta

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&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp; Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
  • ...1 more annotation...
  • Nmtoken&nbsp;&nbsp;&nbsp;::=&nbsp;&nbsp;&nbsp; (NameChar)+
David Gelpi Fleta

XSLT <xsl:value-of> Element - 0 views

  • The &lt;xsl:value-of&gt; element is used to extract the value of a selected node.
  • &lt;xsl:value-of select="catalog/cd/title"/&gt;
  • 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.
David Gelpi Fleta

XSLT <xsl:sort> Element - 0 views

  • To sort the output, simply add an &lt;xsl:sort&gt; element inside the &lt;xsl:for-each&gt; element in the XSL file:
  • &lt;xsl:for-each select="catalog/cd"&gt; &lt;xsl:sort select="artist"/&gt;
David Gelpi Fleta

XSLT <xsl:choose> Element - 0 views

  • The &lt;xsl:choose&gt; element is used in conjunction with &lt;xsl:when&gt; and &lt;xsl:otherwise&gt; to express multiple conditional tests.
  • &lt;xsl:choose&gt; &lt;xsl:when test="expression"&gt; ... some output ... &lt;/xsl:when&gt; &lt;xsl:otherwise&gt; ... some output .... &lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt;
David Gelpi Fleta

XSLT <xsl:apply-templates> Element - 0 views

  • The &lt;xsl:apply-templates&gt; element applies a template to the current element or to the current element's child nodes.
  • If we add a select attribute to the &lt;xsl:apply-templates&gt; element it will process only the child element that matches the value of the attribute
1 - 20 Next › Last »
Showing 20 items per page