Source XML:
<parameters>
<parameter>
</parameter>
<parameter>
</parameter>
<parameter>
</parameter>
<parameters>
My code:
<xsl:template match="PARAMETERS">
<FormMD>
<xsl:for-each select="PARAMETER">
<xsl:apply-templates select="PARAMETER">
</xsl:apply-templates>
</xsl:for-each>
</FormMD>
</xsl:template>
<xsl:template match="PARAMETER">
<Name>
</Name>
</xsl:template>
This is not working. Is there any problem in my code ?
-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: Wednesday, August 17, 2005 5:06 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Converting XML to XML
But each XML tag contains
xmlns:fo="http://www.w3.org/1999/XSL/Format" as a attribute. How to
avoid this?
Note that is a namespace declaration not an attribute according to the
Xpath model. presumably you have declared the FO namespace in your
stylesheet. Just don't do that if you don't want to generate FO.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--