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

Re: [XSLT, Version 1] Stylesheet to embed a chunk of X

Subject: Re: [XSLT, Version 1] Stylesheet to embed a chunk of XML into HTML?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 24 Aug 2006 13:10:10 +0100
Re:  [XSLT
               <xsl:value-of disable-output-escaping="no"
select="$test"/>

d-o-e only affects the way < and & are serialised iin element
content. It has no effect on the way element nodes are serialised, and
if you use value-of on an element node then you get the string value of
the elment which is just teh character data in all its descendents.

You need to apply templates that match * and output 
&lt;,xsl:value-of select="name()"/>&gt;
etc (there are I believe some templates in the faq for this, or google
will show some in the archives of this list and other places)

by the way
                <xsl:copy-of select="//Member[1]"/>
that is all Member elements that are the first child of their parent, is
 that really what you want?

<pre>
               <xsl:apply-templates mode="verb" select="(//Member)[1]"/>
           </pre>

David

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.