- From: Inigo Surguy <inigo.surguy@gmail.com>
- Date: Thu, 26 Feb 2009 08:51:17 +0000
- To: xproc-dev@w3.org
- Cc: Philip Fennell <Philip.Fennell@bbc.co.uk>
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. > > >
Received on Friday, 27 February 2009 17:31:05 UTC