|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] removing trailing space for all the elements
Hi All, I need to remove trailing space for all the elements. Any help appreciated. Input: <?xml version="1.0"?> <Toc> <a> Say you want display this <emph type="b"> data</emph> in the form of a sequentially numbered booklist.</a> </Toc> Expected Output: <?xml version="1.0"?> <Toc> <a>Say you want display this <emph type="b">data</emph> in the form of a sequentially numbered booklist.</a> </Toc> Tried Coding: <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version="1.0"> <xsl:template match="*|@*"> <xsl:copy> <xsl:apply-templates select="normalize-space(*)"/> </xsl:copy> </xsl:template> </xsl:stylesheet> For the above style sheet I'm getting error "apply-templates expected node()" and I'm using saxon version 8. Thanks in advance, Balaji. M
|
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
|

Cart








