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] plain text output


Subject: [xsl] plain text output
From: Guy McArthur <guym@xxxxxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 13:48:58 -0700 (MST)

What I've read so far for plain text output is unsatisfying. I have two 
issues.

1. Preventing initial first lines.

This template will print a blank first line.

<xsl:template>
PDS_VERSION_ID          = PDS3
RECORD_TYPE             = FIXED_LENGTH
</xsl:template>

Something like this will not.

<xsl:template>
<xsl:text/>PDS_VERSION_ID          = PDS3
RECORD_TYPE             = FIXED_LENGTH
</xsl:template>

But this breaks one of the features of xsl that I like, that it can look 
like the document it is mean to output. (I know, it's not meant to output 
documents, but xml trees ...).

2. Inserting a carriage return.

Simarly, putting in a bunch of
<xsl:text>&#13;</xsl:text>
elements disrupts the stylesheet.

Is there any easier way to do it? 

Right now I use a post-process perl script to take care of issues #1 and 
#2 but would like to have an all-xslt solution. But I guess you can't have 
your xslt cake and eat it too....


 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