Re: XS0044 correct?

I believe what is being suggested is to run the XProc .xml file against 
one of the schemas in
Referenced here:
http://www.w3.org/TR/xproc/#language-summary

RNG:
http://www.w3.org/TR/xproc/schemas/xproc.rng

XSD:
http://www.w3.org/TR/xproc/schemas/xproc.xsd

DTD
http://www.w3.org/TR/xproc/schemas/xproc.dtd


Xproc itself can do this by making a xproc pipeline with one of the 
<p:validate-with-xxx> steps.
Or you can look for a different a standlone tool like jing (for rng) or 
xmlsh (www.xmlsh.org  for xsd, dtd, rng).

I suspect (but havent tried) that adding the appropriate XML declaration 
would force validation of the DTD atleast within either Calabash or Calumet





David A. Lee
dlee@calldei.com  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224



Manfred Staudinger wrote:
> Thanks again for your explanation!
>
> Do you think I should start validating my XProc code and is it usefull
> in diagnosing coding errors? As I'm new to validating, what would I
> need or where would I start?
>
> Regards,
> Manfred
>
> On 22/09/2009, Toman_Vojtech@emc.com <Toman_Vojtech@emc.com> wrote:
>   
>>> Beginner errors: when I execute
>>> <p:declare-step name="myPipeline"
>>> 	xmlns:c="http://www.w3.org/ns/xproc-step"
>>> 	xmlns:p="http://www.w3.org/ns/xproc">
>>> 	<p:identity>
>>> 		<p:input port="source">
>>> 			<p:inline><c:directory/></p:inline>
>>> 		</p:input>
>>> 	</p:identity>
>>> 	<p:output port="result"/>
>>> </p:declare-step>
>>> then Calabash 0.9.14 gives
>>> Error  : Pipeline failed: err:XS0044: Unexpected step name: p:output
>>> It is a static error if any element in the XProc namespace or any step
>>> has element children other than those specified for it by this
>>> specification. In particular, the presence of atomic steps for which
>>> there is no visible declaration may raise this error.
>>> while Calumet 1.0.9 executes and outputs
>>> <c:directory xmlns:c="http://www.w3.org/ns/xproc-step"/>
>>>       
>> You pipeline is not valid according to the XProc schema. According to
>> the schema, all p:output (as well as p:input, p:option and p:variable)
>> elements  must precede the sub-pipeline. In this sense, nor Calumet nor
>> Calabash are correct: they should both should reject the pipeline
>> because it is not valid.
>>
>> Calumet does not validate the pipeline at the moment (and I think nor
>> does Calabash). Calumet is quite forgiving in this respect and can deal
>> with some out-of-order XProc elements - which, depending on your view,
>> may or may not be a good thing. Calabash seems to be a bit more strict.
>>
>> Hope this helps.
>>
>> Regards,
>> Vojtech
>>
>> --
>> Vojtech Toman
>> Principal Software Engineer
>> EMC Corporation
>> toman_vojtech@emc.com
>> http://developer.emc.com/xmltech
>>
>>
>>     

Received on Wednesday, 23 September 2009 19:01:41 UTC