[xslt] xsltproc with xinclude: no fatal error on resource errors without fallback



Hi,

from the specs of XInclude in short form:

"[...] in the event of a resource error [...] it is a fatal error  if 
there is zero or more than one xi:fallback element."

But running
   $ xsltproc --xinclude test.xml

on a xml file which a resource error without a fallback element 
produces only a warning:

   warning: failed to load external entity "chapter2/somewhere.xdml"
   XInclude: could not load chapter2/somewhere.xdml

and there is no command line switch to change this behaviour. it 
would be very nice to stop processing on an xinclude error.

did i misunderstood the specs or is xsltproc not conformant? I think 

regards,
janning

long form of the spec:

"XInclude processors must perform fallback behavior in the event of a 
resource error, as follows:
If the [children] of the xi:include element information item in the 
source infoset contain exactly one xi:fallback element, the top-level 
included items consists of the information items corresponding to the 
result of performing XInclude processing on the [children] of the 
xi:fallback element. It is a fatal error if there is zero or more 
than one xi:fallback element."

-- 
Planwerk 6 /websolutions
Herzogstraße 86
40215 Düsseldorf

fon 0211-6015919
fax 0211-6015917
http://www.planwerk6.de



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]