[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XT Output Errors w/Jbindery
Greetings: 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 file. Any suggestions? thanks in advance, jr ---- 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" version="1.0" > <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="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> =-=-=-=-=-=-=-=-=-==-=-=-= John Robert Gardner ATLA-CERTR Emory University ------------------------------------------------------------ http://vedavid.org/diss/ "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
|
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
|