Skip to content

Commit

Permalink
Pull XML Schema out into standalone repo and use latest JAXB.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranklinChen committed Jan 12, 2024
1 parent e840a0b commit a1a2ac1
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar

# Eclipse m2e generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath
80 changes: 80 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.talkbank.chatter</groupId>
<artifactId>talkbank-xml-schema</artifactId>
<version>2.20.1</version>

<name>talkbank-xml-schema</name>
<url>https://talkbank.org</url>
<description>
XML Schema for the TalkBank System, with generated JAXB code.
</description>

<properties>
<java.version>17</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<licenses>
<!-- fmc -->
</licenses>

<organization>
<name>TalkBank System</name>
<url>https://www.talkbank.org</url>
</organization>

<developers>
<developer>
<id>chen</id>
<name>Franklin Chen</name>
<email>[email protected]</email>
<organization>Carnegie Mellon University</organization>
<timezone>America/New_York</timezone>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>4.0.4</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<version>4.0.0</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<strict>false</strict>
<extension>true</extension>
<args>
<arg>-Xlocator</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>4.0.0</version>
</plugin>
</plugins>
</build>
</project>
11 changes: 2 additions & 9 deletions src/main/resources/talkbank.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@ xmlns:xml="http://www.w3.org/XML/1998/namespace"
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tb="http://www.talkbank.org/ns/talkbank" xmlns="http://www.talkbank.org/ns/talkbank"
targetNamespace="http://www.talkbank.org/ns/talkbank" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
jaxb:version="2.1" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc" xmlns:xhtml="http://www.w3.org/1999/xhtml"
targetNamespace="http://www.talkbank.org/ns/talkbank"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
elementFormDefault="qualified" version="2.20.1" id="Talkbank">

<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>

<xs:annotation xmlns="http://www.w3.org/1999/xhtml">
<xs:appinfo>
<jaxb:globalBindings>
<xjc:simple/>
</jaxb:globalBindings>
</xs:appinfo>

<xs:documentation> A full definition of the CHAT format. </xs:documentation>
<xs:documentation> Developed by Romeo Anghelache, from the CHAT specifications, released under
the GNU Public License, 2001. Continuing development by Franklin Chen. </xs:documentation>
Expand Down

0 comments on commit a1a2ac1

Please sign in to comment.