XPL Schema

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

XPL Schema

Jonathan J Wright
Hi,

Is there an XPL shcema in existence that I can plug into Eclipse?

Thanks

Jonathan




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XPL Schema

Erik Bruchez
Administrator
Yes, but it is kind of hidden within ops.jar. You can extract it from
there, or for convenience I attach it too (with the Relax NG version as
well).

-Erik

Jonathan J Wright wrote:
> Hi,
>
> Is there an XPL shcema in existence that I can plug into Eclipse?
>
> Thanks
>
> Jonathan

--
Orbeon Forms - XForms Everywhere
http://www.orbeon.com/blog/

<!--
    Copyright (C) 2004 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<xs:schema targetNamespace="http://www.orbeon.com/oxf/pipeline"
           xmlns:p="http://www.orbeon.com/oxf/pipeline"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified"
           xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd">
    <xs:element name="config">
        <xs:annotation>
            <xs:documentation>XPL root element</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="param" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:attribute name="name" type="xs:string" use="required"/>
                        <xs:attribute name="type" use="required">
                            <xs:simpleType>
                                <xs:restriction base="xs:token">
                                    <xs:enumeration value="input"/>
                                    <xs:enumeration value="output"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attributeGroup ref="p:debug-schema-attributes"/>
                    </xs:complexType>
                </xs:element>
                <xs:group ref="p:statements"/>
            </xs:sequence>
        </xs:complexType>
        <xs:key name="params-unique" >
          <xs:annotation>
            <xs:documentation>For params the pair ( name, type ) must be unique</xs:documentation>
          </xs:annotation>
          <xs:selector xpath="p:param" />
          <xs:field xpath="@name" />
          <xs:field xpath="@type" />
        </xs:key>
        <xs:unique name="output-ids-unique">
          <xs:selector xpath="p:processor/p:output|p:for-each"/>
          <xs:field xpath="@id"/>
        </xs:unique>
        <xs:unique name="output-refs-unique">
          <xs:selector xpath="p:processor/p:output|p:for-each"/>
          <xs:field xpath="@ref"/>
        </xs:unique>
    </xs:element>
    <xs:group name="statement">
        <xs:sequence>
            <xs:choice>
                <xs:element name="processor">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="input" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:any processContents="lax" minOccurs="0"/>
                                    </xs:sequence>
                                    <xs:attribute name="name" type="xs:NCName" use="required"/>
                                    <xs:attribute name="href" type="xs:string" use="optional"/>
                                    <xs:attributeGroup ref="p:debug-schema-attributes"/>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="output" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:any processContents="lax" minOccurs="0"/>
                                    </xs:sequence>
                                    <xs:attribute name="name" type="xs:NCName" use="required"/>
                                    <xs:attribute name="id" type="xs:NCName" use="optional"/>
                                    <xs:attribute name="ref" type="xs:NCName" use="optional"/>
                                    <xs:attributeGroup ref="p:debug-schema-attributes"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="uri" type="xs:anyURI" use="optional"/>
                        <xs:attribute name="name" type="xs:anyURI" use="optional"/>
                        <xs:attribute name="encapsulation" type="xs:string" use="optional"/>
                    </xs:complexType>
                    <xs:key name="input-name-unique">
                        <xs:selector xpath="p:input"/>
                        <xs:field xpath="@name"/>
                    </xs:key>
                    <xs:key name="outputput-name-unique">
                        <xs:selector xpath="p:output"/>
                        <xs:field xpath="@name"/>
                    </xs:key>
                </xs:element>
                <xs:element name="choose">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="when" maxOccurs="unbounded">
                              <xs:complexType>
                                <xs:group ref="p:statements"/>
                                <xs:attribute name="test" type="xs:string" use="required"/>
                              </xs:complexType>
                              <xs:unique name="output-ids-in-when-unique">
                                <xs:selector xpath="p:processor/p:output|p:for-each"/>
                                <xs:field xpath="@id"/>
                              </xs:unique>
                              <xs:unique name="output-refs-in-when-unique">
                                <xs:selector xpath="p:processor/p:output|p:for-each"/>
                                <xs:field xpath="@ref"/>
                              </xs:unique>
                            </xs:element>
                            <xs:element name="otherwise" minOccurs="0">
                              <xs:complexType>
                                <xs:group ref="p:statements"/>
                              </xs:complexType>
                              <xs:unique name="output-ids-in-otherwise-unique">
                                <xs:selector xpath="p:processor/p:output|p:for-each"/>
                                <xs:field xpath="@id"/>
                              </xs:unique>
                              <xs:unique name="output-refs-in-otherwise-unique">
                                <xs:selector xpath="p:processor/p:output|p:for-each"/>
                                <xs:field xpath="@ref"/>
                              </xs:unique>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="href" type="xs:string" use="required"/>
                        <xs:attributeGroup ref="p:debug-schema-attributes"/>
                    </xs:complexType>
                </xs:element>
                <xs:element name="for-each">
                  <xs:complexType>
                    <xs:group ref="p:statements"/>
                    <xs:attribute name="href" type="xs:string" use="required"/>
                    <xs:attribute name="select" type="xs:string" use="required"/>
                    <xs:attribute name="id" type="xs:NCName" use="optional"/>
                    <xs:attribute name="ref" type="xs:NCName" use="optional"/>
                    <xs:attribute name="root" type="xs:QName" use="optional"/>
                    <xs:attribute name="input-debug" type="xs:string" use="optional"/>
                    <xs:attribute name="output-debug" type="xs:string" use="optional"/>
                  </xs:complexType>
                  <xs:unique name="output-ids-in-for-unique">
                    <xs:selector xpath="p:processor/p:output|p:for-each"/>
                    <xs:field xpath="@id"/>
                  </xs:unique>
                  <xs:unique name="output-refs-in-for-unique">
                    <xs:selector xpath="p:processor/p:output|p:for-each"/>
                    <xs:field xpath="@ref"/>
                  </xs:unique>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:group>
    <xs:group name="statements">
        <xs:sequence>
            <xs:group ref="p:statement" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:group>
    <xs:attributeGroup name="debug-schema-attributes">
        <xs:attribute name="debug" type="xs:string" use="optional"/>
        <xs:attribute name="schema-href" type="xs:anyURI" use="optional"/>
        <xs:attribute name="schema-uri" type="xs:anyURI" use="optional"/>
    </xs:attributeGroup>
</xs:schema>

input output

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XPL Schema

Jonathan J Wright
Erik,

Thank you!

Jonathan

>>> Erik Bruchez <[hidden email]> 30/11/2006 3:57 p.m. >>>
Yes, but it is kind of hidden within ops.jar. You can extract it from
there, or for convenience I attach it too (with the Relax NG version as
well).

-Erik

Jonathan J Wright wrote:
> Hi,
>
> Is there an XPL shcema in existence that I can plug into Eclipse?
>
> Thanks
>
> Jonathan

--
Orbeon Forms - XForms Everywhere
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws