Skip to main content

Home/ Groups/ PSI_ESEI

Exercise 1: note - 29 views

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

XSL - 24 views

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

Ejercicio 1 - 14 views

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

Clase martes 9/10/07 - 15 views

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

Sobre la categoría "ejercicios" - 11 views

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

Exercise 0 - 4 views

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

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

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

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;
18More

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
4More

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;
1More

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;
2More

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;
2More

XML Schema Complex Types - Mixed Content - 0 views

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

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)+
4More

XSLT &lt;xsl:value-of&gt; 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.
2More

XSLT &lt;xsl:sort&gt; 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;
2More

XSLT &lt;xsl:choose&gt; 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;
2More

XSLT &lt;xsl:apply-templates&gt; 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