Maven Docbook:文档类型声明必须格式正确

问题描述

我使用带有以下pom片段的maven和docbook插件

import SwiftUI

struct RedBadgeView: View {
    @State var badgeCount: Int?
    
    init (_ badgeCount: Int? = nil) {
        self.badgeCount = badgeCount
    }
    
    var body: some View {
        // Something about this Syntax is throwing off SwiftUI. 
        Text(badgeCount == nil ? " " :"\(badgeCount!)")
    }
}

struct RedBadgeView_Previews: PreviewProvider {
    static var previews: some View {
        RedBadgeView(1)
    }
}

所有创建网站的资源都是这样开始的:

     <plugin>
    <groupId>com.agilejava.docbkx</groupId>
        <artifactId>docbkx-maven-plugin</artifactId>
        <version>2.0.17</version>
        <executions>
          <execution>
            <goals>
              <goal>generate-xhtml</goal>
              <!--goal>generate-pdf</goal-->
            </goals>
            <phase>pre-site</phase>
          </execution>
        </executions>
        <configuration>
      <sourceDirectory>src/site/docbkx</sourceDirectory>
      <targetDirectory>target/site</targetDirectory>
          <!--includes>article.xml</includes-->
        </configuration>
      </plugin>

但要指挥

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE book PUBLIC "-//oasis//DTD DocBook XML V4.5//EN"
          "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<book id='ImplGuide'>
  <title>Implementation of javaoctave</title>

引起错误,即:

 mvn docbkx:generate-xhtml

这是初学者总是说的:它奏效了,但我什么都没改变,但是现在 它不起作用了。 非常感谢帮助。

编辑: 如果我注释掉并拥有

Failed to execute goal com.agilejava.docbkx:docbkx-maven-plugin:2.0.17:generate-xhtml (default-cli) on project javaoctave: 
Failed to transform userdoc.xml.: org.xml.sax.SAXParseExceptionpublicId:
 -//oasis//DTD DocBook XML V4.5//EN; 
systemId: http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; 
lineNumber: 1; columnNumber: 2; 
The markup declarations 
contained or pointed to by the document type declaration 
must be well-formed. -> [Help 1]

然后进行转换。 这很奇怪,不是吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...