出现以下错误: 包含操作失败,恢复为回退。资源错误读取 文件为XML(href =''File1.xml'')。原因:XPointer分辨率不成功。 元素group1似乎找不到?我尝试了许多电话,例如 xpointer =" element(group1)" ... 你确定你是通过实现XInclude的软件运行的吗? 我已经尝试使用oxygenxml插件进行eclipse,有一个复选框可以激活 XInclude,我已经检查过了。 你确定可以在那些相对URI上找到文件(在某些系统中,这可能是区分大小写的吗?) 文件可以找到,每个文件File1.xml,File2.xml,...都被解析并且 i可以单独转换它们我的样式表。 谢谢! Hi,I want to include a part of many XML files into an unique XML file withXInclude.Example!File1.xml, File2.xml, File3.xml... seems to that :<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="doc.xsl" type="text/xsl"?><!DOCTYPE doc []><doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xi="http://www.w3.org/2001/XInclude"xsi:noNamespaceSchemaLocation="doc.xsd"><group1><b1><b11>lalala</b11><b12>lilili</b12></b1></group1></doc>I want to extract this bloc from each files :<b1><b11>lalala</b11><b12>lilili</b12></b1>I want to create ONE unique file like this file :<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="doc.xsl" type="text/xsl"?><!DOCTYPE doc []><doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xi="http://www.w3.org/2001/XInclude"xsi:noNamespaceSchemaLocation="doc.xsd"><group1><b1><b11>lalala</b11><b12>lilili</b12></b1><b1><b11>lalala</b11><b12>lilili</b12></b1><b1><b11>lalala</b11><b12>lilili</b12></b1></group1></doc>To do that i''ve inserted xinclude like that but it doesn''t work :<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="doc.xsl" type="text/xsl"?><!DOCTYPE doc []><doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xi="http://www.w3.org/2001/XInclude"xsi:noNamespaceSchemaLocation="doc.xsd"><group1><xi:include href="File1.xml" xpointer="group1"><xi:fallback>NotFoundError</xi:fallback></xi:include><xi:include href="File2.xml" xpointer="group1"><xi:fallback>NotFoundError</xi:fallback></xi:include><xi:include href="File3.xml" xpointer="group1"><xi:fallback>NotFoundError</xi:fallback></xi:include></group1></doc>What''s wrong ?Any help would be greatly appreciated.regardsMike 解决方案 When you say "doesn''t work", what are you getting instead?Are you sure you''re running this through software which implements XInclude?Are you sure the documents can be found at those relative URIs (which,in some systems, may be case-sensitive)?Le Fri, 08 Sep 2006 15:21:10 -0400, Joseph Kesselman a écrit :When you say "doesn''t work", what are you getting instead?With :<xi:include href="test.xml" xpointer="group1"><xi:fallbackFICHIER NON TROUVE </xi:fallback></xi:include>There''s the following error:"Include operation failed, reverting to fallback. Resource error readingfile as XML (href=''File1.xml''). Reason: XPointer resolution unsuccessful."the element group1 seems not to be found ?? I''ve tried many calls likexpointer="element(group1)" ...Are you sure you''re running this through software which implements XInclude?I''ve tryed in eclipse with oxygenxml plugin there is a checkbox to activateXInclude, and i''ve checked it.Are you sure the documents can be found at those relative URIs (which,in some systems, may be case-sensitive)?documents can be found, each file File1.xml, File2.xml, ... are parsed andi can transform them individualy with my stylesheets.Thank you!Le Fri, 08 Sep 2006 15:21:10 -0400, Joseph Kesselman a écrit :When you say "doesn''t work", what are you getting instead?With :<xi:include href="File1.xml" xpointer="group1"><xi:fallback404ERR </xi:fallback></xi:include>There''s the following error:"Include operation failed, reverting to fallback. Resource error readingfile as XML (href=''File1.xml''). Reason: XPointer resolution unsuccessful."the element group1 seems not to be found ?? I''ve tried many calls likexpointer="element(group1)" ...Are you sure you''re running this through software which implements XInclude?I''ve tryed in eclipse with oxygenxml plugin there is a checkbox to activateXInclude, and i''ve checked it.Are you sure the documents can be found at those relative URIs (which,in some systems, may be case-sensitive)?documents can be found, each file File1.xml, File2.xml, ... are parsed andi can transform them individualy with my stylesheets.Thank you! 这篇关于X包括问题!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-24 07:15