You 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.
Sorry, but don't agree. Sometime ago, I wrote some XSP-actions and there 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]
