cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pogi...@netscape.net
Subject Re: I am also having problems with logicsheets
Date Tue, 14 Oct 2003 17:17:37 GMT
The original logicsheet did in fact do something:
<xsl:template match="xsp:page">some database esql calls here</xsl:template>
<xsl:template match="@*|node()">
  <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
</xsl:template>
<xsl:template match="text()">
  <xsl:value-of select="."/>
</xsl:template>

But when I ran into problems I changed it to:

<xsl:template match="/">
  <xsl:copy-of select="node()"/>
</xsl:template>

Changing it to:

<xsl:template match="@*|node()">
  <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
</xsl:template>
<xsl:template match="text()">
  <xsl:value-of select="."/>
</xsl:template>

has no impact. Still doesn't work.

Pogie

Christopher Painter-Wakefield <paint007@mc.duke.edu> wrote:

>
>
>
>
>Yes, I agree.  The docs provide a template very similar in the "Standard
>Templates".  Probably the docs should be updated to reflect the existence
>of logicsheets-util.xsl.
>
>-Christopher
>
>
>
>|---------+-------------------------------------->
>|         |           Christian Haul             |
>|         |           <haul@dvs1.informatik.tu-da|
>|         |           rmstadt.de>                |
>|         |                                      |
>|         |           10/14/2003 12:25 PM        |
>|         |           Please respond to users    |
>|         |                                      |
>|---------+-------------------------------------->
>  >--------------------------------------------------------------------------------------------------------------|
>  |                                                      
                                                       |
>  |       To:       users@cocoon.apache.org                        
                                             |
>  |       cc:                                              
                                                     |
>  |       Subject:  Re: I am also having problems with logicsheets          
                                    |
>  >--------------------------------------------------------------------------------------------------------------|
>
>
>
>
>On 14.Oct.2003 -- 12:18 PM, Christopher Painter-Wakefield wrote:
>
>> A logicsheet that really does nothing at all would contain at least one
>> template, e.g.:
>> <xsl:template match="xsp:page">
>>       <xsl:copy-of select="."/>
>> </xsl:template>
>
>better
>
><!--
>  Copy all nodes that were not handled by a dedicated template.
>-->
><xsl:template match="@*|node()" priority="-2">
>  <xsl:copy>
>    <xsl:apply-templates select="@*|node()"/>
>  </xsl:copy>
></xsl:template>
>
>I recommend using the logicsheets-util.xsl in every logicsheet which
>includes this template together with a couple of very useful named
>templates.
>
>             Chris.
>--
>C h r i s t i a n       H a u l
>haul@informatik.tu-darmstadt.de
>    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>

__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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


Mime
View raw message