Commit 95a0a1a2 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Create language scheme and initial files.

parent 3dbe3b77
......@@ -10,7 +10,8 @@ include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
# subdirectories to build
#add_subdirectory(data)
add_subdirectory(data)
add_subdirectory(schemes)
#add_subdirectory(doc)
add_subdirectory(src)
#add_subdirectory(sounds)
......
add_subdirectory(languages)
\ No newline at end of file
FILE(GLOB languages *.xml)
set(languages
de.xml
fr.xml
)
install(FILES ${languages} DESTINATION ${DATA_INSTALL_DIR}/artikulate/languages)
<?xml version="1.0"?>
<language>
<id>de</id>
<title>Deutsch</title>
</language>
<?xml version="1.0"?>
<language>
<id>fr</id>
<title>Français</title>
</language>
FILE(GLOB schemes *.xsd)
install(FILES ${schemes} DESTINATION ${DATA_INSTALL_DIR}/artikulate/schemes)
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="language">
<xs:complexType>
<xs:sequence>
<xs:element name="id" type="xs:string" />
<xs:element name="title" type="xs:string" />
<xs:element name="tags" type="tagList" />
<xs:element name="tagGroups" type="tagGroupList" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="tagList">
<xs:sequence>
<xs:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tagGroupList">
<xs:sequence>
<xs:element name="tagGroup" type="tagGroup" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tag">
<xs:sequence>
<xs:element name="id" type="xs:string" />
<xs:element name="title" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tagGroup">
<xs:sequence>
<xs:element name="id" type="xs:string" />
<xs:element name="title" type="xs:string" />
<xs:element name="description" type="xs:string" />
<xs:element name="tags" type="tagList" />
</xs:sequence>
</xs:complexType>
<!--
kate: space-indent on; indent-width 2; mixedindent off; indent-mode xml;
-->
</xs:schema>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment