xsl-list
[Top] [All Lists]

Re: [xsl] [XSLT, Version 1] Stylesheet to embed a chunk of XML into HTML?

2006-08-24 09:07:59

               <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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--