pipeline won't run

Posted by Zsolt Czinkos-2 on
URL: https://discuss.orbeon.com/pipeline-won-t-run-tp33057.html

Hello

I'm about to change my model from XML file to XPL pieline. I've created a very simple pipeline, but it doesn't work. If I make syntax error in the xpl file, it provides the error message, so it checks the file, but when  I request the page, an empty table cames back.

Any idea?

Docs are below.

Thanks,

Zsolt

---------------

page-flow.xml entry:

<page id="list-page" path-info="/a/list" model="list-model.xpl" view=" list.xsl" />

-------------------
list-model.xpl

<?xml version="1.0"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline "
          xmlns:oxf="http://www.orbeon.com/oxf/processors">
  <p:param name="pipeline-output" type="output" />
  <p:processor name="oxf:identity">
    <p:input name="data">
      <list name="test list">
        <item id="test">
          <prop name="testnameprop">testprop</prop>
        </item>
      </list>
    </p:input>
    <p:output name="data" id="test-data" />
  </p:processor>
  <p:processor name="oxf:xslt">
    <p:input name="data" href="#test-data"/>
    <p:input name="config">
      <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">
            <test>
               <xsl:copy-of select="*" />
           </test>
         </xsl:template>
      </xsl:stylesheet>
    </p:input>
    <p:output name="data" ref="pipeline-output" />
  </p:processor>
</p:config

------------------
list.xsl:
<html xsl:version="2.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform "
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
  <title>List view</title>
  <xforms:model>
    <xforms:instance>
      <item-ids xmlns="">
       <item-id></item-id>
      </item-ids>
    </xforms:instance>
    <xforms:submission id="item-view-submission" action="/a/item" method="post" />
  </xforms:model>
</head>
<body>
  <h1><xsl:value-of select="/list/@name" /></h1>
  <p><strong><xforms:output value="if (/item-ids/item-id != '') then /item-ids/item-id else 'n/a'" /></strong></p>
  <table class="items" border="1" width="50%">
   <tr><th colspan="{count(//item[1]/prop) + 1}">Items overview</th></tr>
   <tr>
     <xsl:for-each select="('ID',/list/item[1]/prop/@name)">
       <th><xsl:value-of select="." /></th>
     </xsl:for-each>
   </tr>
   <xsl:for-each select="//item">
     <tr>
         <td class="item-id"><xsl:value-of select="@id" /></td>
         <td class="item-name">
         <xforms:trigger appearance="minimal">
           <xforms:label><xsl:value-of select="prop[@name='name']" /></xforms:label>:
           <xforms:action ev:event="DOMActivate">
             <xforms:setvalue ref="/item-ids/item-id"><xsl:value-of select="@id" /></xforms:setvalue>
             <xforms:send submission="item-view-submission" />
           </xforms:action>
         </xforms:trigger>
         </td>
         <td>
         <xsl:for-each select="prop[@name != 'name']">
           <xsl:value-of select="." />
         </xsl:for-each>
         </td>
     </tr>
   </xsl:for-each>
  </table>
</body>
</html





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws