cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert Trzewik \(Prosystel\)" <htrzewik-use...@prosystel.com.pl>
Subject Extracting <xsp:expr> in own logicsheet
Date Fri, 09 Jan 2004 13:39:23 GMT
Now I have problem with LogicSheet. Param named "link_id" goes to XSPAction,
and it's ok. <jjjt-mylinks:delete> is a method from logicsheet.
<xsp:expr>link_id</xsp:expr> works unitl it's used in my logicsheet tabs. I
think there is something wrong in my LogicSheet (XSLT).

<xsp:expr>link_id</xsp:expr> [from XSP]
goes into <xsl:apply-templates/> [to XSLT] whre value of link_id should be
extracted, but error on compling XSP occurs

My question is simple, how logicsheet should be properly written to be able
get and process <xsp:expr>...</xsp:expr> as argument. Maybe something wrong
with my standard template  (<xsl:template
match="@*|*|text()|processing-instruction()">)


XSPAction
<xsp:logic>
    String link_id = <map:get-sitemap-parameter name="link_id"/>;
</xsp:logic>

<jjjt-mylinks:delete>

<jjjt-mylinks:mylink_id><xsp:expr>link_id</xsp:expr></jjjt-mylinks:mylink_id
>
</jjjt-mylinks:delete>


LogicSheet

<xsl:template match="jjjt-mylinks:delete">
 <esql:connection>
  <esql:pool>jjjt</esql:pool>
  <esql:execute-query>
   <esql:query>
     delete from jjjt_mylinks where
mylink_id=<xsl:apply-templates/>;</esql:query>
  </esql:execute-query>
 </esql:connection>
</xsl:template>

<xsl:template match="@*|*|text()|processing-instruction()">
    <xsl:copy>
      <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
    </xsl:copy>
</xsl:template>
--
Hubert Trzewik
Prosystel Sp. z o.o.
hubert.trzewik@prosystel.com.pl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message