forked from jariera/StandardBreadCrumb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fb5a67
commit 52a6125
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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> |