xsl-list
[Top] [All Lists]

Copy all elemnts but one, not working

2005-12-28 08:10:57
I believe I have my syntax correct, but for some reason this is still returning 
everything.  I am trying to exclude the image.  Does anyone know why this 
doesn't work?

Thanks,
Micah

Source XML:

<SIGNATURES>
        <SIGNATURE SIGNATURE_ID="09009978800b4a44">
          <SIGNATURE_ID>09009978800b4a44</SIGNATURE_ID>
          <chapter>
            <title/>
            <para role="mcx-Paragraph">
              <mediaobject>
                <imageobject>
                  <imagedata contentdepth="0.9895833333333334in" 
contentwidth="4.9375in"
                    fileref="AFELIX_-_SIGNATURE_3-1.png"/>
                </imageobject>
              </mediaobject>
            </para>
            <para role="mcx-Paragraph">FirstName M. LastName</para>
            <para role="mcx-Paragraph">Engineer</para>
            <para role="mcx-Paragraph">My Company</para>
          </chapter>
        </SIGNATURE>
      </SIGNATURES>

XSLT:

<xsl:template match="SIGNATURE">
                        <xsl:copy-of select="chapter/*[not(name()= 
'imagedata')]"/>
</xsl:template>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>