W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

RE: Report document generated by 'validate-with-schematron' is not well-formed XML

From: Philip Fennell <Philip.Fennell@bbc.co.uk>
Date: Thu, 26 Feb 2009 08:53:49 -0000
Message-ID: <FBFAE0E0B37B4148AF77509764D4BC2007B1E7FD@bbcxues11.national.core.bbc.co.uk>
To: <xproc-dev@w3.org>
Inigo,

Thanks for the confirmation and tip.


Regards

Philip Fennell

-----Original Message-----
From: Inigo Surguy [mailto:inigo.surguy@gmail.com] 
Sent: 26 February 2009 08:51
To: xproc-dev@w3.org
Cc: Philip Fennell
Subject: Re: Report document generated by 'validate-with-schematron' is not well-formed XML

Hi Philip,

Yes, I can confirm I can reproduce that bug on Calabash 0.9.4.

It appears to be an issue with the log step, rather than with the validate-with-schematron step - if I'm not using the log step but am taking the output of the schematron step to reuse in an xslt step, then it works fine.

Inigo
http://surguy.net/

On Thu, Feb 26, 2009 at 8:41 AM, Philip Fennell <Philip.Fennell@bbc.co.uk> wrote:
> I was working with a pipeline yesterday and added a 
> 'validate-with-schematron' step:
>
>
> <p:validate-with-schematron name="validate">
>        <p:input port="source" sequence="false"/>
>        <p:input port="parameters" kind="parameter">
>                <p:empty/>
>        </p:input>
>        <p:input port="schema">
>                <p:document href="atom-6/schema/paged-feeds.sch"/>
>        </p:input>
>        <p:log port="report" href="atom-6/results/report.xml"/>
> </p:validate-with-schematron>
>
>
> that gets the svrl report out via the 'log' step and noticed that the 
> result document was not well-formed:
>
> <!-- Start of Calabash output log for "report" to 
> "file:/D:/workspace/AtomStore/tests/atom-6/results/report.xml" at
> file:/D:/workspace/AtomStore/tests/atom-6/pipelines/test.xpl:78 -->
> <!-- At FIXME: datetime -->
> <px:document-sequence
> xmlns:px='http://xmlcalabash.com/ns/document-sequence'>
> <px:document><svrl:schematron-output
> xmlns:test="http://www.test.bbc.co.uk/"
> xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
>                        xmlns:xs="http://www.w3.org/2001/XMLSchema"
>                        xmlns:as="http://atomserver.org/namespaces/1.0/"
>                        xmlns:atom="http://www.w3.org/2005/Atom"
>                        xmlns:sch="http://www.ascc.net/xml/schematron"
>                        xmlns:app="http://www.w3.org/2007/app"
>                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                        xmlns:os="http://a9.com/-/spec/opensearch/1.1/"
>                        xmlns:iso="http://purl.oclc.org/dsdl/schematron"
>                        title=""
>                        schemaVersion="0.1">
>   <svrl:ns-prefix-in-attribute-values uri="http://www.w3.org/2007/app"
> prefix="app"/>
>   <svrl:ns-prefix-in-attribute-values uri="http://www.w3.org/2005/Atom"
> prefix="atom"/>
>   <svrl:ns-prefix-in-attribute-values
> uri="http://atomserver.org/namespaces/1.0/" prefix="as"/>
>   <svrl:ns-prefix-in-attribute-values
> uri="http://a9.com/-/spec/opensearch/1.1/" prefix="os"/>
>   <svrl:ns-prefix-in-attribute-values uri="http://www.test.bbc.co.uk/"
> prefix="test"/>
>   <svrl:active-pattern id="feed.paged" name="Paged Feeds"/>
>   <svrl:fired-rule context="/test:results"/>
>   <svrl:successful-report test="count(atom:feed) = 
> atom:feed[1]/os:totalResults mod atom:feed[1]/os:itemsPerPage"
>                           role="requirement"
>
> location="/*:results[namespace-uri()='http://www.test.bbc.co.uk/'][1]"
> >
>      <svrl:text>The correct number feed pages (3) were 
> retrieved.</svrl:text>
>   </svrl:successful-report>
> </svrl:schematron-output></px:document>
>
>
> Notice that the closing 'px:document-sequence' tag is missing. Has 
> anyone else seen this behaviour on calabash-0.9.3?
>
>
> Regards
>
> Philip Fennell
>
>>XML Developer (The Forge)
>>
>>BBC Future Media & Technology
>>Media Village, 201 Wood Lane London W12 7TP
>>BC4 C4, Broadcast Centre
>>
>>T:     0208 0085318
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>
>

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
Received on Thursday, 26 February 2009 08:54:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 February 2009 08:54:28 GMT