小编bse*_*sel的帖子

src-resolve:无法将名称'ds:Signature'解析为'element declaration'组件

我想使用XSD文件进行模式验证.当我将XSD文件导入Eclipse而不运行验证类时,我有以下错误:

src-resolve:无法将名称'ds:Signature'解析为'element declaration'组件

我是XML和XSD验证过程的新手.虽然我在谷歌上寻找类似的问题,但我无法弄清楚这里有什么问题.

XSD文件如下:

 <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xerces="http://xerces.apache.org"
        xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
        xmlns:abc="http://abc.123.com" targetNamespace="http://abc.123.com"
        xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#" elementFormDefault="qualified"
        attributeFormDefault="unqualified">
        <xs:import namespace="http://uri.etsi.org/01903/v1.3.2#" schemaLocation="XAdES.xsd"/>
        <xs:import namespace="http://uri.etsi.org/01903/v1.4.1#" schemaLocation="XAdESv141.xsd"/>
        <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
    <xs:complexType name="headerType">
        <xs:sequence>
            <xs:element name="doorNumber" type="xs:int"/>
            <xs:element ref="ds:Signature"/>
        </xs:sequence>
    </xs:complexType>
Run Code Online (Sandbox Code Playgroud)

我该如何修改XSD来修复此错误?

xml xsd xml-validation

5
推荐指数
1
解决办法
1万
查看次数

如何在Firebug中编辑POST参数?

我在Firefox for Mac上使用Firebug,以便查看有关发送到服务器的请求数据的信息以及从服务器获取的响应.我的Spring + Hibernate + JSF + MySQL应用程序有问题; 即我不能将新对象持久化到数据库中.在Eclipse中,我有一个XHTML文件,如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>JSF Spring Hibernate Integration</title>
        <style type="text/css">
            .tg {
                border-collapse: separate;
                border-spacing: 0;
                border-color: #ccc;
            }

            .tg td {
                font-family: Arial, sans-serif;
                font-size: 14px;
                padding: 10px 5px;
                border-style: solid;
                border-width: 1px;
                overflow: hidden;
                word-break: normal;
                border-color: #ccc;
                color: #333;
                background-color: #fff;
            }

            .tg th {
                font-family: Arial, sans-serif;
                font-size: 14px;
                font-weight: normal;
                padding: 10px …
Run Code Online (Sandbox Code Playgroud)

jsf firebug

1
推荐指数
1
解决办法
4825
查看次数

标签 统计

firebug ×1

jsf ×1

xml ×1

xml-validation ×1

xsd ×1