<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/xsd/maven-4.0.0.xsd">

   <!-- Parent -->
   <parent>
      <groupId>org.jboss.arquillian</groupId>
      <artifactId>arquillian-build</artifactId>
      <version>1.0.0.Alpha3</version>
      <relativePath>../../build/pom.xml</relativePath>
   </parent>

   <modelVersion>4.0.0</modelVersion>

   <artifactId>arquillian-reference-guide</artifactId>
   <packaging>jdocbook</packaging>
   <name>Arquillian Reference Guide</name>

   <properties>
      <mpjdocbook.version>2.2.0</mpjdocbook.version>
      <pdf.name>${project.artifactId}.pdf</pdf.name>
   </properties>

   <build>
      <plugins>
         <plugin>
            <groupId>org.jboss.maven.plugins</groupId>
            <artifactId>maven-jdocbook-plugin</artifactId>
            <version>${mpjdocbook.version}</version>
            <extensions>true</extensions>

            <dependencies>
               <dependency>
                  <groupId>org.jboss</groupId>
                  <artifactId>jbossorg-docbook-xslt</artifactId>
                  <version>1.1.0</version>
               </dependency>
               <dependency>
                  <groupId>org.jboss</groupId>
                  <artifactId>jbossorg-jdocbook-style</artifactId>
                  <version>1.1.0</version>
                  <type>jdocbook-style</type>
               </dependency>
            </dependencies>
            <configuration>
               <sourceDocumentName>master.xml</sourceDocumentName>
               <masterTranslation>en-US</masterTranslation>
               <imageResource>
                  <directory>${pom.basedir}/src/main/docbook/en-US</directory>
                  <includes>
                     <include>images/*.png</include>
                     <include>images/*.jpg</include>
                  </includes>
               </imageResource>
               <formats>
                  <format>
                     <formatName>pdf</formatName>
                     <stylesheetResource>classpath://xslt/org/jboss/pdf.xsl</stylesheetResource>
                     <finalName>${pdf.name}</finalName>
                  </format>
                  <format>
                     <formatName>html</formatName>
                     <stylesheetResource>classpath://xslt/org/jboss/xhtml.xsl</stylesheetResource>
                     <finalName>index.html</finalName>
                  </format>
                  <format>
                     <formatName>html_single</formatName>
                     <stylesheetResource>classpath://xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
                     <finalName>index.html</finalName>
                  </format>
               </formats>
               <options>
                  <xincludeSupported>true</xincludeSupported>
                  <xmlTransformerType>saxon</xmlTransformerType>
                  <docbookVersion>1.72.0</docbookVersion>
                  <transformerParameters>
                     <property>
                        <name>javax.xml.parsers.DocumentBuilderFactory</name>
                        <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value>
                     </property>
                     <property>
                        <name>javax.xml.parsers.SAXParserFactory</name>
                        <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
                     </property>
                  </transformerParameters>
                  <localeSeparator>-</localeSeparator>
               </options>
            </configuration>

         </plugin>
      </plugins>
   </build>
</project>
