Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cambios StandardBreadCrumb

  • Loading branch information...
commit 52a612529c77bf9c16610d556a8370415c48c8a1 1 parent 7fb5a67
@frodriguez86 authored
View
77 src/test/resources/StandardBreadCrumb.xsd
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <xs:element name="breadcrumb">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="name"/>
+ <xs:element ref="description"/>
+ <xs:element maxOccurs="unbounded" ref="trace"/>
+ <xs:element ref="profiles"/>
+ <xs:element ref="global-params"/>
+ <xs:element ref="base-url"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="trace">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="name"/>
+ <xs:element ref="url-pattern"/>
+ <xs:element ref="description"/>
+ <xs:element maxOccurs="unbounded" ref="crumb"/>
+ <xs:element ref="profiles"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="url-pattern" type="xs:string"/>
+ <xs:element name="crumb">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="text"/>
+ <xs:element ref="url"/>
+ <xs:sequence minOccurs="0">
+ <xs:element ref="params"/>
+ <xs:element ref="global-params"/>
+ </xs:sequence>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="text" type="xs:NCName"/>
+ <xs:element name="url" type="xs:string"/>
+ <xs:element name="params">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="param"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="base-url" type="xs:anyURI"/>
+ <xs:element name="name" type="xs:string"/>
+ <xs:element name="description" type="xs:string"/>
+ <xs:element name="param">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:NCName">
+ <xs:attribute name="key" use="required" type="xs:NCName"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="global-params">
+ <xs:complexType>
+ <xs:choice>
+ <xs:element ref="key"/>
+ <xs:element maxOccurs="unbounded" ref="param"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="key" type="xs:NCName"/>
+ <xs:element name="profiles">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="profile"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="profile" type="xs:NCName"/>
+</xs:schema>
View
39 src/test/resources/breadcrumb.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<breadcrumb xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="StandardBreadCrumb.xsd">
+ <name>BreadCrumb</name>
+ <description>BreadCrumb del portal web</description>
+
+ <trace>
+ <name>Rastro de administracion</name>
+ <url-pattern>/administration/*</url-pattern>
+ <description>Rastro de migas de pan para el módulo de administración</description>
+ <crumb>
+ <text>Home</text>
+ <url>index.xhtml</url>
+ <params>
+ <param key="clave">valor</param>
+ <param key="clave1">valor1</param>
+ </params>
+ <global-params>
+ <key>clave1</key>
+ </global-params>
+ </crumb>
+ <crumb>
+ <text>Administracion</text>
+ <url></url>
+ <!-- Este es el elemento final que aparece en color distinto y no redirige a ningún sitio -->
+ </crumb>
+
+ <profiles>
+ <profile>All</profile>
+ </profiles>
+ </trace>
+ <profiles>
+ <profile>All</profile>
+ </profiles>
+ <global-params>
+ <param key="clave">valor</param>
+ <param key="clave1">valor1</param>
+ </global-params>
+ <base-url>localhost:8080/miapp</base-url>
+</breadcrumb>
Please sign in to comment.
Something went wrong with that request. Please try again.