[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

selective transformation

Subject: selective transformation
From: Mattison <peacock@xxxxxxxxx>
Date: Mon, 15 Nov 2004 10:01:48 -0500 (EST)
selective transformation
I'm trying to transform an xml file using xsl but only need to modify one of the tags. It is probably better to give a simple exmaple.

<Books>
  <book>
    <title>Some Book</title>
    <author>A Uthor</author>
    <summary>A summary goes 		here.</summary>
  </book>
  <!-- more book nodes follow -->
</Books>

What I want to do is reproduce the xml like but do a normalize-space(.) on the summary. I know a couple ways to do it but they all involve selecting and reproducing every node in either a for-each or an assortment of apply-template tags. Is there some simple way to do a transform that will send everything through untouched by run normalize-space(.) on the summary tag? Thanks.

Mattison

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.