Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old February 12th, 2004, 12:03 PM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Renaming with XML tags?

Hi all,

I am renaming the element in my XML using a XSLT document:

Code:
<xsl:template match="intermediateRootName">
<newTagName>
<xsl:apply-templates/>
</newTagName>
</xsl:template>
Is it possible to replace the new tags (newTagName) with any value, as I wanted to replace it with 5 lines of XML import tags?

Is this valid, to have XML content in this style?

Thanks,


  #2 (permalink)  
Old February 12th, 2004, 03:49 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you show a small example of source xml and desired output for this node?

--

Joe


Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding deleting tags in an xml abhi.prince4u XML 0 July 14th, 2007 12:16 AM
Tags as text in XML elements janise XML 16 January 2nd, 2007 06:45 AM
XML tags getting converted during exchange Koushik XML 7 December 7th, 2006 06:25 PM
Generating XML tags on the fly francislang XSLT 3 September 6th, 2004 05:21 AM
ASP not reading all XML tags! jeffm_22 XML 4 July 4th, 2003 01:43 AM





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