xml/schema/lib/types/crossplatform.xsd

55 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="./linux.xsd"/>
<xs:include schemaLocation="./windows.xsd"/>
<!-- ABSOLUTE directory path -->
<xs:simpleType name="t_xplat_dirpath">
<xs:union memberTypes="t_linux_dirpath t_windows_dirpath"/>
</xs:simpleType>
<!-- RELATIVE directory path -->
<xs:simpleType name="t_xplat_reldirpath">
<xs:union memberTypes="t_linux_reldirpath t_windows_reldirpath"/>
</xs:simpleType>
<!-- ABSOLUTE file path -->
<xs:simpleType name="t_xplat_filepath">
<xs:union memberTypes="t_linux_filepath t_windows_filepath"/>
</xs:simpleType>
<!-- RELATIVE file path -->
<xs:simpleType name="t_xplat_relfilepath">
<xs:union memberTypes="t_linux_relfilepath t_windows_relfilepath"/>
</xs:simpleType>
<!-- ABSOLUTE path (file or directory) -->
<xs:simpleType name="t_xplat_path">
<xs:union memberTypes="t_linux_path t_windows_path"/>
</xs:simpleType>
<!-- RELATIVE path (file or directory) -->
<xs:simpleType name="t_xplat_relpath">
<xs:union memberTypes="t_linux_relpath t_windows_relpath"/>
</xs:simpleType>
<!-- ANY valid value for the above types. -->
<xs:simpleType name="t_xplat_anypath">
<xs:union memberTypes="t_linux_anypath t_windows_anypath"/>
</xs:simpleType>
<!-- RELATIVE or ABSOLUTE file path -->
<xs:simpleType name="t_xplat_anyfile">
<xs:union memberTypes="t_linux_anyfile t_windows_anyfile"/>
</xs:simpleType>
<!-- RELATIVE or ABSOLUTE dir path -->
<xs:simpleType name="t_xplat_anydir">
<xs:union memberTypes="t_linux_anydir t_windows_anydir"/>
</xs:simpleType>
</xs:schema