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
Jammy PacSubject: Character Encoding of an existing document?
Author: Jammy Pac
Date: 21 Sep 2006 11:22 AM
Hi Stylus Studio Developers,

Is there a way to find the current character encoding of an opened document? Like a document properties window?

Thanks,
Jammy

Postnext
Minollo I.Subject: Character Encoding of an existing document?
Author: Minollo I.
Date: 21 Sep 2006 01:41 PM
If you are talking about XSLT documents, the encoding is visible in (and can be changed from) the "Params/Other" editing tab; of course you can also directly change the encoding attribute in the XML PI declaration.

If you are talking about XML documents, the current encoding is only visible through the XML PI declaration; but you can change it through the list of support character sets available under Edit > Change Encoding.

Hope this helps.

Postnext
Jammy PacSubject: Character Encoding of an existing document?
Author: Jammy Pac
Date: 21 Sep 2006 04:19 PM
Originally Posted: 21 Sep 2006 04:18 PM
Hi Minollo I.,

The params/other tab does look like what I need. Thanks for help.

Do you know if the value in the "XSLT encoding:" field is the *actual* encoding of the document or is that value coming from the xml declaration?

Thanks,
-Jammy

Postnext
Minollo I.Subject: Character Encoding of an existing document?
Author: Minollo I.
Date: 21 Sep 2006 04:33 PM
There should never be any difference between the XML PI information and the *actual* encoding; if there is, then it's very easy that you get parsing/encoding errors when opening the document.

Stylus Studio relies on the file BOM (the file encoding information) to read the XML PI; but anything that follows is decoded according to the information contained in the XML PI declaration itself.

BTW, just to stress this again; the Params/Other tab describes the encoding of the XSLT itself, not of the XML document(s) accessed by the XSLT.

Hope this helps.

Posttop
Jammy PacSubject: Character Encoding of an existing document?
Author: Jammy Pac
Date: 21 Sep 2006 04:40 PM
Hi Minollo I.,

Your description is very helpful.

>BTW, just to stress this
>again; the Params/Other tab
>describes the encoding of the
>XSLT itself, not of the XML
>document(s) accessed by the
>XSLT.

Yes I understand. Thanks for checking.

Thanks,
-John

 
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.