Subject: RE: [xsl] Converting XML to XML From: "ChandraShekar, A" <ChandraShekar.A@xxxxxxxxxxx> Date: Wed, 17 Aug 2005 17:30:52 +0530 |
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@xxxxxxxxx] Sent: Wednesday, August 17, 2005 5:06 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Converting XML to XML, Michael Kay | Thread | Re: [xsl] Converting XML to XML, David Carlisle |
Re: [xsl] Transforming an XML docum, David Carlisle | Date | RE: [xsl] Converting XML to XML, ChandraShekar, A |
Month |