XT Output Errors w/Jbindery

Subject: XT Output Errors w/Jbindery
From: John Robert Gardner <jrgardn@xxxxxxxxx>
Date: Sat, 22 Jan 2000 15:11:51 -0500 (EST)

With many thanks to Chuck White's tips on Dave Dawson's FAQ page
(http://freespace.virgin.net/b.pawson/xsl/), I have XT/XP/SAX running on
Apple's MRJ SDK 2.1.4.  The tests run, my own scripts run (from my win32
xt.exe development), but the output is giving me the wrong line breaks
such that I can only open the resulting files on UNIX, that dread ^M pops
up everywehre so nothing will open these files (BBedit, all my old
faithfuls, and the Mac finder calls the .xml files graphics . . . go
figure-- Microsoft isn't the only hokey file response feedback sometimes).
BUT-- MSWord WILL open it, on a Mac, but you have to tell the finder to
look at ALL files--it won't see it as "readable."  I've had the same
problem with the .htm files output in JClark's slides example-- reads on
Unix but not on my system.  

I've also tinkered with the line break codes on teh source and xsl files,
but to no avail.

Anyway, the result's down below (it's the output from teh now infamous
sort discussion with/help from David Carlisle).  I've also added the .xsl

Any suggestions?

thanks in advance,


---- xml output -----

<?xml version="1.0" encoding="utf-8"?>^M<mantra id="rv1.16.1a">^M aa tvaa
vahantu harayo^M </mantra>^M<mantra id="rv1.84.10a">^M svaador itthaa
viSuuvato^M </mantra>^M<mantra id="rv1.16.1b">^M vRSaNaM somapiitaye^M
</mantra>^M<mantra id="rv1.84.10b">^M madhvaH p ibanti gauryaH^M
</mantra>^M<mantra id="rv1.16.1c">^M indra tvaa suuracakSasaH^M
</mantra>^M<mantra id="rv1.84.10c">^M yaa indreNa sayaavariir^M
</mantra>^M<mantra id="rv1.84.10d">^M vRSNaa madanti sobhase ^M
</mantra>^M<mantra id="rv1.84.10e">^M vasviir anu svar aajyam^M </mantra>

----xsl script ----
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
<xsl:output type="xml" indent="yes"/>
<xsl:strip-space elements="*" />

<xsl:template match="sample">
<xsl:for-each select="verse/mantra">
<xsl:sort select="substring-after(@id,../@id)"/>
<xsl:sort select="../@id" order="ascending"/>
<xsl:copy-of select="."/>


John Robert Gardner
Emory University
"If there is something you're thinking of doing, or wish you could do,
begin it.  In boldness there is mystery and power . . . . "  -Goethe

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

Current Thread