If you're using a batch file on Windows or a script on
UNIX to run SX, it might be easiest just to precede the
invocation of SX with some kind of echo command, e.g.,
echo "<!DOCTYPE ..." > file.xml
SX ... >> file.xml
Alvin
At 12:28 PM 08/02/2000 -0500, Fox, Michael wrote:
>I have not been able to find a solution to this problem. Instructions in
>the EAD Cookbook for the use of SX (part of the SP package) suggest manually
>adding the DOCTYPE declaration post conversion. SP clearly parses the SGML
>source document but seems to output only well-formed XML. A curious
>approach.
>
>Michael
>
>Michael J. Fox
>Acting Assistant Director for Library and Archives
>Minnesota Historical Society
>345 Kellogg Blvd West
>St. Paul, MN 55102-2409
>651-296-2150 (phone)
>651-296-9961 (fax)
>[log in to unmask]
>
>> ----------
>> From: Dale Patterson[SMTP:[log in to unmask]]
>> Sent: Wednesday, August 02, 2000 11:33 AM
>> To: [log in to unmask]
>> Subject: SP related question
>>
>> I've been experimenting with SP to convert our sgml EAD instances to xml.
>> I find that SP strips out the EAD DOCTYPE declaration at the beginning of
>> the instance. I am running the 1.3.4 Windows version of SP. I can't seem
>> to find a switch to keep this in. Am I missing something here? Thanks for
>> any assistance.
>>
>> L. Dale Patterson [log in to unmask]
>> Archivist 973-408-3195
>> United Methodist Church Archives http://www.gcah.org
>> Madison, NJ 07940
>>
>
>
|