| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Tomcat example source code file (xml.xsd)

This example Tomcat source code file (xml.xsd) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Tomcat tags/keywords

apache, asf, license, license, of, schema, schema, see, see, the, uri, xml, xml, you

The Tomcat xml.xsd source code

<?xml version='1.0'?>
 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

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
<xs:schema targetNamespace="" xmlns:xs="" xml:lang="en">

   See and for information about this namespace.

  <xs:documentation>This schema defines attributes and an attribute group
        suitable for use by
        schemas wishing to allow xml:base, xml:lang or xml:space attributes
        on elements they define.

        To enable this, such a schema must import this schema
        for the XML namespace, e.g. as follows:
        <schema . . .>
         . . .
         <import namespace=""

        Subsequently, qualified reference to any of the attributes
        or the group defined below will have the desired effect, e.g.

        <type . . .>
         . . .
         <attributeGroup ref="xml:specialAttrs"/>
         will define a type which will schema-validate an instance
         element with any of those attributes</xs:documentation>

  <xs:documentation>In keeping with the XML Schema WG's standard versioning
   policy, this schema document will persist at
   At the date of issue it can also be found at
   The schema document at that URI may however change in the future,
   in order to remain compatible with the latest version of XML Schema
   itself.  In other words, if the XML Schema namespace changes, the version
   of this document at will change
   accordingly; the version at will not change.

 <xs:attribute name="lang" type="xs:language">
   <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values . . .</xs:documentation>

 <xs:attribute name="space" default="preserve">
   <xs:restriction base="xs:NCName">
    <xs:enumeration value="default"/>
    <xs:enumeration value="preserve"/>

 <xs:attribute name="base" type="xs:anyURI">
   <xs:documentation>See for
                     information about this attribute.</xs:documentation>

 <xs:attributeGroup name="specialAttrs">
  <xs:attribute ref="xml:base"/>
  <xs:attribute ref="xml:lang"/>
  <xs:attribute ref="xml:space"/>


Other Tomcat examples (source code examples)

Here is a short list of links related to this Tomcat xml.xsd source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.