You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by jw...@apache.org on 2008/05/07 19:55:43 UTC
svn commit: r654192 - in
/myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas:
laf.xsd laf/ skin/ skin/trinidad-skins.xsd
Author: jwaldman
Date: Wed May 7 10:55:37 2008
New Revision: 654192
URL: http://svn.apache.org/viewvc?rev=654192&view=rev
Log:
TRINIDAD-722 add trinidad-skins schema
deleted laf.xsd and laf/lafConfig.xsd since they are obsolete.
trunk_1.2.x
Added:
myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/
myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/trinidad-skins.xsd
Removed:
myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/laf/
myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/laf.xsd
Added: myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/trinidad-skins.xsd
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/trinidad-skins.xsd?rev=654192&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/trinidad-skins.xsd (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-impl/src/main/resources/org/apache/myfaces/trinidadinternal/ui/laf/xml/schemas/skin/trinidad-skins.xsd Wed May 7 10:55:37 2008
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="windows-1252"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:skin="http://myfaces.apache.org/trinidad/skin"
+ targetNamespace="http://myfaces.apache.org/trinidad/skin"
+ elementFormDefault="qualified">
+ <xsd:element name="skins" type="skin:skinsType">
+ <xsd:annotation>
+ <xsd:documentation>The root element defined in the trinidad-skins document.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:complexType name="skinsType">
+ <xsd:sequence>
+ <xsd:element name="skin" maxOccurs="unbounded" minOccurs="0" type="skin:skinType">
+ <xsd:annotation>
+ <xsd:documentation>Defines a skin.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="skin-addition" maxOccurs="unbounded" minOccurs="0"
+ type="skin:skinAdditionType">
+ <xsd:annotation>
+ <xsd:documentation>Defines a skin addition. A skin addition which is created by custom
+ component developers to add skinning information for the custom
+ component.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="skinType">
+ <xsd:sequence>
+ <xsd:element name="id" type="string" minOccurs="1" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>A string identifier which uniquely identifies this custom skin
+ implementation.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="family" type="string" minOccurs="1" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>A name which identifies the skin family to which this skin
+ implementation belongs.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="render-kit-id" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>This value determines which render kit to use for the skin. You can
+ enter one of the following: org.apache.myfaces.trinidad.desktop: The
+ skin will automatically be used when the application is rendered on a
+ desktop. org.apache.myfaces.trinidad.pda: The skin will be used when
+ rendered on a PDA.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="extends" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>The id of the parent skin which this custom look and feel extends.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="style-sheet-name" type="anyURI" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>The name of the style sheet which defines the styles for this custom
+ skin.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:choice>
+ <xsd:element name="bundle-name" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>Name of the bundle for this skin. By default, the custom skin
+ inherits the translations that are provided by the its parent skin.
+ The custom skin can override any customizable message by defining its
+ own ResourceBundles.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="translation-source" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>This is an EL binding that can point to a Map or a ResourceBundle.
+ You can use this instead of the bundle-name if you would like to be
+ more dynamic in your skin translations at runtime. bundle-name takes
+ precedence.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="skinAdditionType">
+ <xsd:sequence>
+ <xsd:element name="skin-id" type="string" minOccurs="1" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>A string identifier which uniquely identifies the skin you are pushing
+ your styles into, usually simple.desktop.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="style-sheet-name" type="anyURI" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>The name of the style sheet which defines the styles for this skin
+ addition.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:choice>
+ <xsd:element name="bundle-name" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>Name of the bundle for this skin addition.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="translation-source" type="string" minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>This is an EL binding that can point to a Map or a ResourceBundle.
+ You can use this instead of the bundle-name if you would like to be
+ more dynamic in your skin translations at runtime. bundle-name takes
+ precedence.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+</xsd:schema>
+
+