IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Textstate icons in Authentic Browser Options · View
dasbach
Posted: Monday, July 27, 2009 10:57:49 AM
Rank: Newbie

Joined: 7/27/2009
Posts: 2
Hello Community

I have a problem using textstate icons in Authentic Browser Edition. I defined the icons in Stylevision and they are functinally displayed in Authentic Desktop Edition. The same .sps File used in my WepApp results in no textstate icons displayed at all. The structure of my WebApp looks like this:


AuthenticTest
|
|- authentic
| |
| |- picts
| | |
| | |- bold.bmp
| |
| |- AuthenticBrowserEdition_DE.CAB
| |- input.xml
| |- output.xml
| |- redce-redakteur.sps
| |- redce.xsd
|
|- index.html


The textstate icons are described in the SPS File like this:


<structure version="8" cssmode="strict" relativeto="*SPS" encodinghtml="UTF-8" encodingrtf="ISO-8859-1" encodingpdf="UTF-8" useimportschema="1" embed-images="1">
<parameters/>
<schemasources>
<namespaces/>
<schemasources>
<xsdschemasource name="XML" main="1" schemafile="redce.xsd" workingxmlfile="redce.xml">
<xmltablesupport standard="HTML">
<usertags>
<usertag default="tr" username="row"/>
<usertag default="td" username="entry"/>
</usertags>
</xmltablesupport>
<textstateicons>
<textstateicon match="b" iconfile="bold.bmp"/>
</textstateicons>
[...]


The elements are defined in the schema:


[...]
<xs:complexType name="inline" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="b"/>
</xs:choice>
</xs:complexType>
<xs:element name="b" type="inline"/>
[...]


And at last my index.html binding the Authentic PlugIn:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Authentic Demo</title>

<script language="javascript" for="objPlugIn" event="ControlInitialized" >
//<![CDATA[
objPlugIn.SchemaLoadObject.URL = "authentic/redce.xsd";
objPlugIn.DesignDataLoadObject.URL = "authentic/redce-redakteur.sps";
objPlugIn.StartEditing();
//]]>
</script>
</head>

<body>
<h1>Authentic Demo</h1>

<object id="objPlugIn" width="100%" height="540"
CodeBase="authentic/AuthenticBrowserEdition_DE.CAB#Version=7,0,1,0"
Classid="clsid:91DDF44A-DFD1-4F47-8EE3-4CBE874584F7">
<PARAM NAME="XMLDataURL" VALUE="authentic/input.xml"/>
<PARAM NAME="XMLDataSaveURL" VALUE="authentic/output.xml"/>
<PARAM NAME="TextStateBmpURL" VALUE="authentic/picts/">
</object>
</body>
</html>


I searched the online Developer Guide and this forum and didn't find any solution to why my textstateicons are not displayed in Authentic Browser Edition. Thanks in advance
rip
Posted: Monday, July 27, 2009 11:46:01 AM
Rank: Advanced Member

Joined: 7/17/2008
Posts: 185
Location: Minutiae, Triviality
Hi -

What do the access logs for the webserver itself say?

Can it find the icons?

Can the browser display .bmp images?
dasbach
Posted: Monday, July 27, 2009 12:15:31 PM
Rank: Newbie

Joined: 7/27/2009
Posts: 2
Hi

Thanks for your reply

I'm using JBoss Developer Studio and i start a Tomcat6 Server from the IDE itself. I can't find any logs at all (will have to look into this a bit further) But if i deploy the real application on a Glassfish v2 the logs don't say anything besides "Authentic plugin loaded sucessfully" like i logged it in the Java Bean.

Besides, i'm also using Bitmap images in the SPS File for Wrapping Content tags. This works just fine, so i guess bothe Servers, Tomcat and Glassfish, are able to resolve the path to the images just fine.

Oh and the Browser is IE7 and i can look at the bitmaps by using the full serverpath just fine.
SomeStupid
Posted: Sunday, January 24, 2010 12:34:03 AM
Rank: Member

Joined: 12/3/2009
Posts: 11
Location: Germany
Some months later. No solution is posted here.

And now another one (me) has the same problem.

I did exactly as described above:

1. Declared *global* elements in the schema (text:fett and the like)
2. In StyleVision 2010 used Authentic > Textstatus-Symbole (German version) to map "fett" to "fett.bmp".
3. Stored fett.bmp as "/.../authentic/fett.bmp"
4. Added <PARAM NAME="TextStateBmpURL" VALUE="/.../authentic/"> to the authentic page
5. Opened an XML document with the AuthenticBrowser 2010 plugin (in IE7)
6. Everything okay - but NO "fett" icons

The Apache log does not show any request for "fett.bmp".

Did I miss anything? What is the expected behaviour? Is there any documentation on this topic?

And why is this so difficult? Why don't you provide these buttons out of the box?
vlad
Posted: Sunday, January 24, 2010 9:27:46 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
The reason why no icons are provided out of the box is because it is unclear what to provide out of the box. Authentic is completely open to the names of styles and to their meaning. A simple sample your own Fett - should it be F or B as in English? And if you want to provide 30 styles with your own meaning - no problem to Authentic.

As of why it doesn't work - please go to Support. This forum is clearly a wrong place to resolve such issues.
SomeStupid
Posted: Sunday, January 24, 2010 2:33:05 PM
Rank: Member

Joined: 12/3/2009
Posts: 11
Location: Germany
vlad wrote:
The reason why ... provide 30 styles with your own meaning - no problem to Authentic.

Agreed.

vlad wrote:
As of why it doesn't work - please go to Support. This forum is clearly a wrong place to resolve such issues.

But if you answer here, others would get the solution, too.
An even better place, however, would be the official documentation. So I repeat:

- What is the expected behaviour?
- Where is the documentation on this topic?

Nevertheless, I will send my problem to support.
henry324
Posted: Monday, June 7, 2010 8:58:20 AM
Rank: Guest

Joined: 12/13/2005
Posts: 0
thanks for the post ^_^
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.