W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2013

Re: How to get p:validate-with-xml-schema to work within p:for-each

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 15 Aug 2013 10:02:53 -0500
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m261v7m1ya.fsf@nwalsh.com>
Steve Taylor <steve.h.g.taylor@gmail.com> writes:
>                 <p:load name="file">
>                     <p:with-option name="href" select="concat(@xml:base,@name)"/>
>                 </p:load>

It's probably worth putting a cx:message here, if you're using XML Calabash, to
see if concat(@xml:base,@name) gives you the result you think it should.

> <errors>
> <c:errors xmlns:c="http://www.w3.org/ns/xproc-step">
> <c:error line="1" column="214">ValidationException: Cannot validate &lt;{....w3.org/ns/xproc}
> declare-step&gt;: no element declaration available</c:error>

Are you doing this with Saxon EE, or are you trying to use Xerces for
schema validation?

> I assume I'm not putting the correct input data into the p:validate although I've been unable
> to work it out. Any ideas how I fix this?

Can you get it to work for a simple pipeline that just calls p:validate-with-xml-schema?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Thursday, 15 August 2013 15:03:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:11 UTC