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

RE: Stopping Saxon searching for an external DTD

Subject: RE: Stopping Saxon searching for an external DTD
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Mon, 12 Feb 2001 18:47:07 -0500
perl stopping thread
Jim wrote:
	"My best bet is to s/// the DOCTYPE string out
	when I grab it with Perl/LWP."

I had to do this once. I used the following command
from the shell prompt to put the document type
declaration into a comment:

perl -pe 's/(<!DOCTYPE[^>]*>)/<!-- $1 -->/' doc.xml > doc_no_doctype.xml

At the DOS command prompt, the command would be:

perl -pe "s/(<!DOCTYPE[^>]*>)/<!-- $1 -->/" doc.xml > doc_no_doctype.xml

Note that these perl commands assume that the document type
declaration appears on a single line and does not contain
any ">" characters before the ">" character that terminates
the document type declaration.

Best regards,

Bob

<sig name    = 'Bob Lyons'
     title   = 'E-Commerce Consultant'
     company = 'Unidex, Inc.'
     phone   = '+1-732-975-9877'
     email   = 'boblyons@xxxxxxxxxx'
     url     = 'http://www.unidex.com/'
     product = 'XML Convert: transforms flat files to XML and vice versa' />


 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.