cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: [C2] Custom Logicsheets
Date Fri, 06 Jul 2001 13:10:02 GMT
On 06.Jul.2001 -- 01:48 PM, Morrison, John wrote:
> Thanks,
> 
> cocoon.log reports
> 
> org.apache.cocoon.components.language.LanguageException: Error compiling
> theft_xml:
> Line 163, column 64:  ';' expected.
> Line 167, column 39:  ';' expected.
> Line 171, column 43:  ';' expected.
> 	at
> org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
> JavaLanguage.java:204)
> 
> I've attached the logicsheet the xsp file and the java.  Any pointers will
> be helpful.

Well, you haven't followed my suggestion regarding the log. But anyway
it looks like there's an error in your logicsheet: Lines 41, 45, 49
contain one too many closing brackets. But that would have bitten you
with or without esql.

(found by looking at generated java lines 163, 167, 171)
 
> Yes, I spotted the } after posting, and I assume you mean the target
> match="@*|*|text()|processing-instruction()" as copy-all?

Yes, indeed. BTW it should have priority="-1" in it, so that it only
gets applied if no other template matches an element. 

<xsl:template match="@*|node()" priority="-1">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

	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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message