[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: parsing post script

Subject: RE: parsing post script
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxx>
Date: Tue, 25 Nov 2003 07:20:20 -0000
ps to html
Well you are going to have a problem if you are expecting to 'bring in' a
postscript file into an xslt transform. For example, the document() function
will whine because it needs well formed xml. In xslt 2.0 there is an
unparsed-text() function which would bring in the file, I believe ( use
latest saxon to exp the delights of XSLT 2.0 ).

If you could just take the contents of a ps file and wrap it with a root
element that still might be an issue, as I once had the pleasure of actually
programming something rather complex in postscript ( and yes David is right,
it's a fully featured language )....and I think you would end up having to
use d-o-e or CDATA[].

Just because XSLT is good at a job, doesn't mean it will be good for all
jobs. I would suggest maybe, if you are mining content, to convert ps to
html ( use http://webdesign.about.com/cs/htmlconverters/ ) and tidy it up
using html tidy, then bringing in the data.

gl, jim fuller

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Karthikeyan
Ramnath
Sent: Tuesday, November 25, 2003 4:28 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx


Actually I dont need to render a PS file, but instead I've got to parse an
existing file and try to make sense out of it, as in, I should be able to
extract the data.
How tough would that be with XSLT and what other approach could I follow.
Right now, I'm manually reading the values enclosed in brackets()... which
is only a hack to get to the data...
kr.
---------------------------------
The will to do, the soul to dare


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David
> Carlisle
> Sent: Monday, November 24, 2003 10:24 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  parsing post script
>
>
>
>
>   Guys, I require to parse a PS file. I know that its
> possible to render a PS
>   file with XSLT, but is the reverse possible?
>   Thanks,
>   Karthikeyan.r
>
> It would be very hard to produce any usable Postscript directly from
> XSLT, and virtually impossible to read PostScript.
>
> PostScript is a fully featured programming language. It is no doubt
> theoretically possible to write a PostScript interpreter in XSLT, but
> it would be thousands of lines of code, and rather slow, compared to
> using a real postscript interpreter as built in to a
> PS printer, or an emulator such as ghostscript.
>
> David
>
> --
> http://www.dcarlisle.demon.co.uk/matthew
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


DISCLAIMER: This email is bound by the terms and conditions described at 
http://www.subexgroup.com/mail-disclaimer.htm



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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.