cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <>
Subject XSL: match all elements except one section... node()[not(self::login_fields)]
Date Wed, 19 Jul 2006 14:52:16 GMT
I have an xsl template for which I wish to match (process) all elements in
the document except one:


I have placed this at the bottom of my xsl document. What am I wishing to
achieve you ask? Well I have 2 stylesheets transformations in a sitemap
pipe. The first xsl document contains the section I want ignored, and the
second, forms-samples-styling.xsl, is the document I want to handle the
transformation of the section ignored in the first xsl document. Clear?!? My
sitemap looks like:

                <map:generate type="jx" src="jx/{2}.jx"/>
                <map:transform type="browser-update"/>
                <map:transform type="xslt-saxon" src="style/{2}.xsl"/> //
This is the xsl doc containing the section
type="cinclude"/>                                // I want transformed by
                <map:transform type="i18n" />
                <map:transform src="template-style/forms-samples-styling.xsl

So my xsl document, style/{2}.xsl looks like:

<?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
        <xsl:template match="/">

             <table width="1024" border="0" cellspacing="0" cellpadding="0">
                    <td><xsl:apply-templates select="//login_fields"/></td>
//I don't want this transformed here!

<xsl:template match="login_fields">

<xsl:template match="*">
      <xsl:element name="{local-name()}">
            <xsl:apply-templates select="@*|xmlns|

<xsl:template match="@*|text()">

When I load the page the section I don't want processed is still being
processed within the document it is contained in, what am I missing here?



View raw message