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: micky
About
User Name: micky
Forum Rank: Advanced Member
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, March 8, 2011
Last Visit: Saturday, March 2, 2019 7:42:22 PM
Number of Posts: 45
[0.26% of all post / 0.01 posts per day]
Avatar
Last 10 Posts
Topic: PDF internal link with named destination
Posted: Friday, March 1, 2019 7:22:27 PM
Hi All,


I'm trying to create internal link to same file in Stylevision template for PDF report.
In hyperlink properties dialog I have tried the following:
1. In Dynamic field I added 'concat('#',../n1:SWDiagramLink)'.
2. In the first Static field I added '#' and in Dynamic field I added '../n1:SWDiagramLink'.

/n1:SWDiagramLink is correct and I'm not using quotes as shown above. The 'anchor' does exists.

I have tried other variants, but none of them works for now ...

Does somebody knows what I'm doing wrong?

Thanks in advance

EDIT :
Actually I'm trying to create PDF named destination. The named destination does exists in the PDF file.
It's the link to named destination which doesn't work.
The actual contents of '../n1:SWDiagramLinkis' node is 'SW3' which is the string for named destination.
In hyperlink properties dialog->Dynamic field I've added '../n1:SWDiagramLink' (without quotes) and in the result PDF file there there is link :
file:///d:reports/SW3, which of course doesn't work.

Does Stylevision supports named destinations?

Thanks again

Topic: external CSS issue
Posted: Thursday, February 9, 2017 1:35:27 PM
I've tested with two separate CSS files and it works as expected. Both HTML & PDF are properly formatted.

Thank you
Topic: external CSS issue
Posted: Thursday, February 9, 2017 12:16:50 PM
Hello,
I'm using Stylevision 20014 and I have following issue.
In my my stylesheet I'm using external CSS file, which is long but contains
Code:

.flex {
    /* basic styling */
    width: 100%;
    height: 100%;
    border: none;
    flex-wrap: nowrap;
    /* flexbox setup */
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    -webkit-flex-direction: row;
    flex-direction: row;
}


Stylevision is complaining with :
'Warning - Parsing error ... unexpected token -webkit-box'
and none of the formatting is applied in design mode.
When I generate HTML everything is formatted as it should be and report is ok.
When I generate PDF however none of the formatting is applied.

Actually the problem is in all 'display' properties, but they are intended only for HTML (browsers).
Why PDF is not rendered properly? Or maybe if Stylevision says that CSS is 'no good' and entire file is ignored.

Has anybody encountered this issue?
Topic: PDF inside PDF issue
Posted: Wednesday, May 27, 2015 5:27:53 AM
Hi,

I'm trying to embed PDF diagram inside PDF report.
For this I'm using user defined block and inside it I use this:

<fox:external-document
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"
content-type="pdf"
src="d:/reports/report.pdf_files/diagram1.pdf"/>


The report template is blank i.e. there is nothing at all inside it, only the user defined block.
When I'm testing it I get

SEVERE: Exception
org.apache.fop.apps.FOPException: org.apache.fop.fo.flow.Block cannot be cast to org.apache.fop.fo.pagination.Root
java.lang.ClassCastException: org.apache.fop.fo.flow.Block cannot be cast to org.apache.fop.fo.pagination.Root
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)

I have tried 'src' parameter with url inside, with relative path, back slashes. The path is correct and the file exists.
Same result.

Does anybody have some clue what can be done?

Thanks
Topic: HTML <object> tag in user-defined element
Posted: Friday, May 22, 2015 8:00:37 AM
Thanks, Vlad.
Topic: HTML <object> tag in user-defined element
Posted: Tuesday, May 19, 2015 2:26:33 PM
Hi all,

I have following directory structure

d:/reports/report.html
d:/reports/extra_data/diagram1.pdf

What I'm trying is to embed PDF diagram inside HTML report using <object> tag.

Withing StyleVision template I'm trying to do it using user-defined element :
object data="extra_data/diagram1.pdf" height="500" type="application/pdf" width="500"

The problem is that above working only if I use full path i.e.
object data="d:/reports/extra_data/diagram1.pdf" height="500" type="application/pdf" width="500"

I would prefer using relative path though.
I don't know how get current OS directory (d:/reports/) and concat 'extra_data/diagram1.pdf' .

Is there any other solution?

Thanks
Topic: Table column width
Posted: Thursday, October 31, 2013 7:34:29 AM
Ok, I fixed it for PDF output. The problem was that I gave XPATH expression for width only in tcell style attribute for the the column. I have to set the column width in tcolumn style attribute also.
Now HTML and PDF have proper column widths.
But RTF does not. It is ignoring width property if it is XPATH expression. If I enter concrete number (like 35%) in width property RTF is accepting that.
All above is using Stylevison 2014 and XSLT 2.0

Anybody has a clue?
Topic: Table column width
Posted: Friday, October 25, 2013 6:24:06 AM
Hi,

I have a table and the columns widths are defined in XML as percentages. Each column definition has XPATH expression for 'width' and the output works Okay for HTML. The problem is that XPATH expression is totally ignored in PDF and RTF. All columns are equally wide.
Does anybody have some clue why is this happening?

Thanks
Topic: Column conditional processing
Posted: Tuesday, March 5, 2013 3:08:37 PM
Okay,

My xpath expression in conditional processing was wrong so I have some progress, but there is still issue for RTF output.
Simplest scenario:

1. Create table with two columns, one row
2. First column has conditional processing with xpath expression: false()
First column should be hidden.

When using XSLT 1.0 - no problems for HTML and PDF. For RTF first column is not hidden.
When using XSLT 2.0 - no problems for HTML, RTF, PDF

I have to maintain both XSLT 1.0 and XSLT 2.0.
I guess it's a bug, but any advice is appreciated.

Thanks
Topic: Column conditional processing
Posted: Tuesday, March 5, 2013 7:33:12 AM
Hi,

I'm with Stylevision 2013 and I'm trying to use table column conditional processing. For HTML output it works fine, but for RTF and PDF condition is just ignored. Is conditional processing works only for HTML?

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