RE: Using HTTP PUT to store result into eXist

My next hurdle is:

xquery version "3.0";

import module namespace xproc="http://exist-db.org/xproc";

let $simple-proc :=
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
    <p:option name="db-doc-path" required="true"/>
    <p:input port="source">
        <p:empty/>
    </p:input>
    <p:output port="result"/>
    <p:load name="load-doc">
        <p:with-option name="href" select="concat('xmldb://', $db-doc-path)"/>
    </p:load>

    <p:xslt>
        <p:input port="source">
            <p:pipe port="result" step="load-doc"/>
        </p:input>
        <p:input port="stylesheet">
            <p:document href="/docbook-xsl-1.78.1/fo/docbook.xsl"/>
        </p:input>
        <p:input port="parameters"><p:empty/></p:input>
    </p:xslt>
</p:declare-step>

return xproc:process($simple-proc, (<option name="db-doc-path" value="/db/article.xml"/>))

I am getting the error: exerr:ERROR Processing terminated by xsl:message at line 162 in docbook.xsl [at line 27, column 8]

Which is:

<xsl:when test="*/self::ng:* or */self::db:*">
  <xsl:message terminate="yes">
    <xsl:text>Unable to strip the namespace from DB5 document,</xsl:text>
    <xsl:text> cannot proceed.</xsl:text>
  </xsl:message>
</xsl:when>

Any suggestions?

-----Original Message-----
From: Loren Cahlander [mailto:Loren.Cahlander@bcbsnc.com]
Sent: Monday, November 17, 2014 2:32 PM
To: Henry S. Thompson
Cc: Loren Cahlander; xproc-dev@w3.org
Subject: RE: Using HTTP PUT to store result into eXist

I am working on getting XProc to run the DocBook to XSL-FO transform from outside of eXist, since we cannot load the DocBook XSLs into eXist.




Blue Cross and Blue Shield of North Carolina

Confidentiality Notice: This message is intended only for the use of the individual or entity to which it is addressed. This communication may contain individual protected health information ("PHI") that is subject to protection under state and federal laws, or other privileged, confidential or proprietary information of Blue Cross and Blue Shield of North Carolina that may not be further disclosed. If you are not the intended recipient, or the employee or agent responsible for delivering this communication to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer. Thank you.

Received on Monday, 17 November 2014 20:47:04 UTC