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

RE: RE: How to transform an embedded node into text

Subject: RE: RE: How to transform an embedded node into text
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 26 Sep 2005 09:03:28 +0100
node to text
Try:

<xsl:template match="short/parameter">%s</xsl:template>

and

<xsl:template match="short">
 <xsl:copy>
  <xsl:apply-templates/>
 </xsl:copy>
</xsl:template>

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Meyer, Roland [mailto:roland.meyer@xxxxxxxxxxx] 
> Sent: 26 September 2005 08:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  RE: How to transform an embedded node into text
> 
> Hi,
> 
> I have to transform an XML file into another one and have the 
> following
> problem. The source XML looks like this:
> 
> <root>
> <short>Some text.
> 	
> Description for the next node: <parameter id="8"
> value="bldInvntryBladeIndex"/> 
> Some other text <parameter id="9" value="trapVbPrimaryBladeIndex"/> 
> And again some different text: <parameter id="10"
> value="stm1CfgStm1Index"/>
> </short>
> </root>
> 
> 
> The destination XML file should look like:
> 
> <root>
> <short>Some text.
> 	
> Description for the next node: %s 
> Some other text %s 
> And again some different text: %s
> </short>
> </root>
> 
> 
> Is there a way to transform the "parameter" nodes in the embedded text
> of node "short" into another text?
> 
> 
> Best Regards,
> Roland 

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.