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

RE: Element Text

Subject: RE: Element Text
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 9 Feb 2000 21:39:46 -0400 (EST)
xsl misplaced text element
Try:

<xsl:template match="runmode[@name='debug']">
    start:
       <xsl:copy-of select="node()"/>
    end:
</xsl:template>

The description of xsl:copy-of is notoriously misplaced in the spec, I think
it was originally designed to do a much more specialised job and then
generalised later, so it's not surprising you failed to spot it. 

Mike Kay

> In my XML document, I have the following:
>     <runmode name="debug">
>         <any_element>
>                 <sub_element/>
>                 <sub_element/>
>            </any_element>
>      </runmode>
> 
> I would like my XSL stylesheet to output the entire text of 
> the runmode
> element, so it may look like the following:
> <xsl:template match="runmode[@name='debug']">
>     start:
>         <!-- This is where I would like to output the text 
> elements -->
>     end:
> </xsl:template>
> 
> and my output document would contain:
> 
> start:
>     <any_element>
>         <sub_element/>
>         <sub_element/>
>     </any_element>
> end:




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Element Text
    • Ben Bertola - Wed, 09 Feb 2000 11:04:10 -0700
      • <Possible follow-ups>
      • Kay Michael - Wed, 9 Feb 2000 21:39:46 -0400 (EST) <=
      • Kay Michael - Wed, 9 Feb 2000 21:40:28 -0400 (EST)

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.