However, I'm pretty sure I stumbled into bugs when I didn't use them.
On 29 Mar 2004, at 20:29, Joerg Heinicke wrote:
On 29.03.2004 20:12, Antonio Gallardo wrote:Met vriendelijke groeten,
Sorry, but don't agree. Sometime ago, I wrote some XSP-actions and thereYou should always start with an XML element, not with <xsp:logic>
I've experienced strange behaviour too when I immediatly started with
logic instead of an element.
Hmm. It is valid observation. Will be fine to throw a exception when
user
<xsl:logic> as the document root?
I don't think so. AFAIK it's useful (or even needed) for adding custom
methods.
cleary states you need a <dummy> root tag.
Having a look at the code I see the following:
<xsl:template match="xsp:page">
...
/* User Class Declarations */
<xsl:apply-templates select="xsp:logic"/>
...
public void generate() {
<!-- Process only 1st non-XSP element as generated root -->
<xsl:call-template name="process-first-element">
<xsl:with-param name="content"
select="*[not(namespace-uri(.) = $xsp-uri)][1]"/>
</xsl:call-template>
}
...
</xsl:template>
This means it is even expected to use it that way.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Bien à vous,
Kind regards,
Yves Vindevogel
Implements
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76
Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>