xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] text output with some significant white space


Subject: [xsl] text output with some significant white space
From: "Steve Renshaw" <renshaw_steve@xxxxxxxxxxx>
Date: Thu, 19 Apr 2001 14:09:01 -0000

I have xml file and need to transform it to a *text* file that
will have *no* xml tags it it at all. I *do* need to control
indention and carriage returns in text file and at same
time I want the XSLt to be readable with regards to consistent
indention of say -three spaces. how can I accomplish following

Here is part ofstylesheet XSLT:
**********<xsl:template match="foo">
*************begin@<xsl:value-of select="name"/>@{!
*************@@@<xsl:value-of select="body"/>!
*************@@@}
**********</xsl:template>

*=space in style sheet
@=significant space to place in output
!=significant carriage return to place in output

Here is XML file
<foo>
  <name>bar</name>
  <body>y=a+b*c;</body>
</foo>

Here is desired outptu:
begin foo {
  y=a+b*c;
  }

I trid <xsl:text>, <xsl:output method="text">, entities but
can't find right combination that gives full control of text
file output for indentation and carriage return. Help?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor