ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
[xsl] Copy all elemnts but one, not working
by Micah Huerta other posts by this author
Dec 28 2005 7:27AM messages near this date
Re: RE: [xsl] Using keys to build a tree represented in XMI | RE: [xsl] Copy all elemnts but one, not working
& XSLT I believe I have my syntax correct, but for some reason this is still returning every
thing.  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" contentwid
th="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()= 'i
magedata')]"/> 
</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@[...].com> 
--~--
Thread:
Micah Huerta
Michael Haarman
Michael Haarman
Micah Huerta
Michael Haarman
Micah Huerta

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved