[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: HOW XSLT WILL BE, WHEN XML2XML TRANSFORMATION
Subject: RE: HOW XSLT WILL BE, WHEN XML2XML TRANSFORMATION
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Sat, 04 Dec 2004 19:18:11 -0500
|
But if anything else could be mixed in with the text nodes, it's less
straightforward. :->
Cheers,
Wendell
At 11:11 AM 12/4/2004, Mike wrote:
This is very straightforward.
<xsl:template match="para">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="equation">
<eqn><xsl:apply-templates/></eqn>
</xsl:template>
<xsl:template match="para/text()">
<p><xsl:apply-templates/></p>
</xsl:template>
Michael Kay
http://www.saxonica.com/
>
> I am processing XML to XML transformation by using xslt, in
> the meantime
> I would like to clarify with you regarding the below one:
>
> Input XML:
> <para>
> Text before equation
> <equation>Equation text</equation>
> Text before/after equation
> <equation>Equation text</equation>
> Text after equation
> </para>
>
>
> Output XML:
> <p>Text before equation</p>
> <eqn>Equation text</eqn>
> <p>Text before/after equation</p>
> <eqn>Equation text</eqn>
> <p>Text after equation</p>
>
> Please advise, how can I able to get above Output XML by
> using xslt, and
> how the XSLT will be?
>
> Best regards
> Arul Kumar
>
___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
"Thus I make my own use of the telegraph, without consulting
the directors, like the sparrows, which I perceive use it
extensively for a perch." -- Thoreau
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|