Subject: Re: [xsl] make it single line From: George Cristian Bina <george@xxxxxxxxxxxxx> Date: Thu, 03 May 2007 10:26:29 +0300 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> </xsl:template> <xsl:template match="text()"> <xsl:value-of select="translate(., ' ',' ')"/> </xsl:template> </xsl:stylesheet>
Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Hi I want to flatten the XML node structure to single line, I tried indent=no and it does not work for me. Please any suggestions. I use the following xslt
<?xml version="1.0" encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" />
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
input <node1> </Item1> </Item1> </Item1> </Item1> </Item1> </Item1> </Item1> </node1> output <node1></Item1></Item1></Item1>..</node1>
Regards, Senthil
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] make it single line, Senthilkumaravelan K | Thread | Re: [xsl] make it single line, Wendell Piez |
Re: [xsl] How is memory allocated i, Colin Adams | Date | [xsl] using mode in multiple templa, Karlmarx Rajangam |
Month |