Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2006, 10:33 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to exclude elements in the result tree output

Hi everyone,

I am a new student learning XSLT. I have a question on how to exclude elements in the output destination when I use call-template

Followed is an example. How do I call template "a" without having the <block1>...<block2> printed out in the result tree?

------------------------------------
<xsl:template name="a">
  <block1>
    ....
  </block1>
</xsl:template>

<xsl:template match="b">
   <block2>
      <xsl:call-template name="a">
      ...
   </block2>
</xsl:template>
----------------------------------------

Thank you,
Emily






Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude Elements in Apply Templates mail4kaja XSLT 18 November 29th, 2008 12:09 PM
exclude-result-prefixes="#all" and xsi:type maxtoroq XSLT 2 November 7th, 2008 08:46 PM
xsl:exclude-result-prefixes #all and #default maxtoroq BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 4 July 28th, 2008 12:10 PM
for-each on result tree fragment RoeZ XSLT 11 November 22nd, 2007 07:31 AM
Transforming a result tree with yet another Xslt ballo XSLT 2 March 7th, 2006 09:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.