|
Subject: selecting specific content of an element From: wan@xxxxxxxxxxxxxxxx Date: Sun, 21 May 100 13:14:44 BST |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Multiple XML as input, Selva, Francis | Thread | Re: selecting specific content of a, Eric van der Vlist |
| RE: Multiple XML as input, Selva, Francis | Date | Re: selecting specific content of a, Eric van der Vlist |
| Month |