错误Document is invalid: no grammar found
是说你的命名空间错误,你看看
xmlns:xsd="http://www.w3.org/2001/XMLSchema"有没有写错
标点符号都不能错的
是说你的命名空间错误,你看看
xmlns:xsd="http://www.w3.org/2001/XMLSchema"有没有写错
标点符号都不能错的
解决方案 »
- JSP页面显示用户IP地址
- struts2+Hibernian+spring集合时出现的问题
- 急需IBM WPS(WebSphere Process Service)做实施的开发商
- struts+spring+hibernate项目,打成war后无法在weblogic8.1上发布,但从eclipse上直接部署可以
- 放高分了,快来看看,高手看看我这个程序为什么不执行if语句
- servlet向html输出验证错误消息 有解决办法 ?
- ::::::::::小问题也急eclipse配置问题,我用eclipse+Tomcate搞jsp:::::::等不到答案不睡了::::
- EJB部署简单问题--高分
- 关于JSP 20分
- xsd验证xml的有效性出现类型无效的问题
- JBOSS安全性,如何配置
- HIBERNATE,中文编码
还有 在xsl里定义个参数,然后用户作出不同的选择就向xsl文件中传递不同的参数 然后就可以动态的有选择的显示xml的内容 这能实现吗?--就是怎样向xsl文件传递参数(dom4j中有这样的功能吗?)这两个问题呢 ?
1,<xsd:complexType name="type">
<xsd:restriction base="xsd:string">
应该是simpleType, complexType下不能包含restriction
2,<xsd:element name="item" type="item" maxOccurs="nobouded">
拼写错误 nobouded -> unbounded第一个问题,你把你的XML解析器设置好支持XSD了吗?
标点符号都不能错的
Restriction is very easy to understand. You simply redefine or omit those elements and attributes that change, and list all the other elements and attributes exactly as they were in the base type. For example, we can create a USAddress type that omits the city and state elements, as shown in Listing 3-23. (If you have a zip code you don't need a city and state, because any zip code can be cross-referenced to a specific city and state.)Listing 3-23 An Extension of the USAddress Type Defined in Listing 3-21
<complexType name="BriefUSAddress">
<complexContent>
<restriction base="mh:USAddress">
<sequence>
<element name="name" type="string"/>
<element name="street" type="string"/>
<element name="zip" type="string"/>
</sequence>
<attribute name="category" type="string" default="business"/>
</restriction>
</complexContent>
</complexType>-----------------
J2EE™ Web Services
By Richard Monson-Haefel
Publisher : Addison Wesley
Pub Date : October 24, 2003
ISBN : 0-321-14618-2
Pages : 928
XML Schema
Eric van der Vlist
Publisher: O'Reilly
First Edition June 2002 ISBN: 0-596-00252-1, 400 pages