No, there's no way to influence the way such elements are handled (other that in a filter applied to the stylesheet on its way into the system, of course). You don't really explain what you want to do with such elements, you only say that you don't want them to be ignored. Could you explain what you would like to achieve?
Michael Kay

From: [] On Behalf Of Netta Doron
Sent: 18 October 2007 17:34
Subject: [saxon] XSLT extension non-instruction

Is there a way to write an XSLT extension non-instruction i.e. an element that will not be ignored outside a template block?


<xsl:stylesheet version="2.0"
extension-element-prefixes="saxon lh">

<lh:namespaces-to-pass-through ns="http:\\"/>

<xsl:template match="/">
    <xsl:apply-templates select="node()"/>

<xsl:template match="extract">
<lh:to-lhtml select="markup"/>


I would like for "<lh:namespaces-to-pass-through ns="http:\\"/>" not to be skipped as an element.