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.

Profile: korell
About
User Name: korell
Forum Rank: Member
Real Name:
Location Huntsville, AL -USA-
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, September 18, 2009
Last Visit: Thursday, March 25, 2010 12:27:48 PM
Number of Posts: 21
[0.11% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: External Javascript file?
Posted: Thursday, March 25, 2010 12:27:03 PM
I never received an answer here on the forum, but I came up with a workaround. I basically created a new SPS (called it JavascriptLibrary.sps) and put all my Javascript code in the editor. I then added my JavasciptLibrary.sps as a new module to my main SPS file, and all Javascript functions are available to the main SPS.
I did not use the <script> tag (I guess Stylevision already knows it's Javascript so you don't have to explicitly declare it), but just entered my functions in the editor.
I'm not sure this solves your problem, but at the time I was just looking for a central place (library) to keep all Javascript code and this worked for me.

Sacha
Topic: How to make TOC item links conditional?
Posted: Thursday, February 18, 2010 2:34:20 PM
Sorry about that. I had already posted in the forum when I remembered that we had support with Altova. It won't happen again :-)

Sacha
Topic: How to make TOC item links conditional?
Posted: Wednesday, February 17, 2010 8:36:39 PM
I am trying to create a TOC template where some of the TOC items have hyperlinks and some don't. The way I am trying to accomplish this is to put a condition (@link=false()) around the TOC item that leaves it as regular text, otherwise it makes it a bookmark (but still remains part of the TOC structure). "@link" is an attribute in the XML node to be referenced.

So in the attached example (modified Altova TOC example), I want "Introduction", "Main Window", and "Style Repository" not to have hyperlinks. I edited the Altova TOC example "chapters.xsd" to include a link attribute on para and added "link=false" on "Introduction", "Main Window", and "Style Repository" in "chapters.xml".

Thanks in advance for any help with this.

Sacha
Topic: Colspan property?
Posted: Wednesday, December 30, 2009 10:24:11 PM
I'm trying to create a table that contains cells that span across multiple columns. How can I accomplish this using Stylevision 2010? I can't find a colspan property anywhere in the designer.
Spanning columns is not something unusual and I can't imagine that it would impossible using Stylevision.

Any ideas?

Thanks,
Sacha
Topic: How to format attribute values?
Posted: Friday, December 18, 2009 5:26:16 PM
Thanks Vlad!
Topic: How to format attribute values?
Posted: Thursday, December 17, 2009 7:19:32 PM
In the attached project I have an attribute "class" of element "ListItem". I would like to display the value of "class" in each ListItem as an italic character. In PDF output it looks fine, but the HTML output seems to ignore the formatting.

Any ideas?

Thanks,
Sacha
Topic: Dynamically created columns in a table?
Posted: Monday, December 14, 2009 1:53:41 PM
Thank you for your quick reply, Vlad!

I am actually using Stylevision 2010. Does the latest version have a better way of solving this problem.

Thanks,
Sacha
Topic: Dynamically created columns in a table?
Posted: Friday, December 11, 2009 6:57:47 PM
How can I dynamically create columns in a table for the attached schema? I may not know the number of columns for a given table at design time. I would like to use either the "cols" attribute in "tgroup" or maybe even count the "entry" tags in each "row" to accomplish this as every "entry" represents a column, but don't know how to go about doing this in Stylevision.

I have attached the project files for a sample table that is semi-dynamic (based on rip's help from my previous thread). However, the columns in this sps are still created at design time (essentially hard coded), and I just can't figure out how create them dynamically.

Any help is greatly appreciated.

Thanks,
Sacha
Topic: Condition doesn't work as desired
Posted: Tuesday, December 1, 2009 8:17:55 PM
Vlad,

Thank you so much for your quick reply!

I wasn't able to open your SPS file because I'm using version 2009, but your explanation was sufficient. I was able to change my SPS and it works perfectly now.

Thanks,
Sacha
Topic: Condition doesn't work as desired
Posted: Tuesday, December 1, 2009 6:49:08 PM
I am trying to use a condition that evaluates an "EmphasizedText" attribute "emphasisType=b" to make the enclosed text bold and an "EmphasizedText" attribute "emphasisType=i" to make the enclosed text italic. I want to use a Global Template to accomplish this, but apparently the template turns all "EmphasizedText" tagged words to bold and groups them together.

The desired result is:
"Functional description paragraph. Some text for functional description paragraph."

but I get:
Functional description paragraphparagraph. Some text for functional description .

What am I doing wrong?

I have attached sample files.

Thanks,
Sacha

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