XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
natalya gillSubject: Saving a XSLT file as Unicode after its been edited by a VBScript.
Author: natalya gill
Date: 16 Jun 2005 03:53 AM

Im having some issues with a VB Script making changes into XSLT files.

I extract a set of files and run a VBScript to make changes to certain field values in those files. The VBScript successfully makes the changes to all files but some reason it corrupts all the .XSLT files and makes a backup copy.

It opens all the other file extensions in the ASCII mode and saves them in the same mode, but since the .XSLT files are Unicode files, it opens them and reads it as a Unicode file, however while saving the file, it saves it as an ASCII which corrupts the file.

Has someone experienced similar problems with .XSLT or unicode and ASCII files.

Does anyone know a fix to this problem.

Maybe using a GetExtensionName Method would help , but what method can be used to save this file as a unicode file?

I need to fix this code pretty soon...

Thanks :)

Postnext
Tony LavinioSubject: Saving a XSLT file as Unicode after its been edited by a VBScript.
Author: Tony Lavinio
Date: 16 Jun 2005 08:57 AM
Try saving the .xslt files from Stylus Studio with the
encoding of the file itself set to "US-ASCII". This will
use entities for all of the non-ASCII chracters, and
should solve the problem.

Most likely, the .xslt is UTF-8, but VBScript is assuming
they are the platform character set, which is ISO-8859-1.

Posttop
natalya gillSubject: Saving a XSLT file as Unicode after its been edited by a VBScript.
Author: natalya gill
Date: 19 Jun 2005 09:22 PM
Hi Tony,

Excuse my lack of knowledge in VBScript, but after the little research iv done , i think whats happening with the script im using is:

The script is opening the .xslt file, and making the changes as defined, however, while saving the .xslt file , it saves it in ANSI and not in Unicode encoding. Also , it creates a backup of the file which can be opened in notepad and viewed. The backup file is in Unicode encoding.

I think if the script can make the changes in the .Xslt files and save them in Unicode encoding they would not gte corrupt and the necessary changes would be made too.

How do u think this could be achieved.

Thanks :)
natalya ~

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.