|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] selecting specific content of an element
Hi,
I have an XML file:
<Example>
comment
<Element>
content
</Element>
</Example>
I want to get output like:
Example:
\begin{verbatim}
comment
\end{verbatim}
special
I am using the following xsl:
<xsl:template match="Example">
Example:
\begin{verbatim}
<xsl:value-of select="."/>
\end{verbatim}
<xsl:apply-templates select="*"/>
</xsl:template>
<xsl:template match="Element">
special
</xsl:template>
what I get is the following:
Example:
\begin{verbatim}
comment
content
\end{verbatim}
special
can any one tell me how to ignore the contentof the Element element,
whilst still copying the comment content to the output,
cheers,
Bill.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








