This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
selecting specific content of an element
- To: XSL-List at mulberrytech dot com
- Subject: selecting specific content of an element
- From: wan at maths dot bath dot ac dot uk
- Date: Sun, 21 May 100 13:14:44 BST
- Reply-To: xsl-list at mulberrytech dot com
- Source-Info: From (or Sender) name not authenticated.
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