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: Phocus
About
User Name: Phocus
Forum Rank: Member
Real Name: Phocus
Location MU
Occupation:
Interests: compilers, solid state physics, paragliding
Gender: Male
Statistics
Joined: Tuesday, October 29, 2002
Last Visit: Monday, November 27, 2017 7:42:12 AM
Number of Posts: 6
[0.03% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: XSLT/JavaScript issues
Posted: Monday, November 27, 2017 7:38:46 AM
Hi,
The file is invalid because the 'console' variable in the msxsl script is not declared.
Not sure what you want to achieve with your javascript code. As it is it will be compiled and made available during the xslt transformation.
If you want the javascript to be included in the generated html file then you must create a <script> element. If you want to wrap with //<![CDATA[ ... //]]> you can add a special character with entity ref before and after the script code and use character maps to remap to //<![CDATA[ and //]]>.
Also note that the exclude-result-prefixes applies to the descendant literal elements - so putting it on the xsl:output element will not have the desired effect - better would be to have it on the xsl:stylesheet.
Hope this helps.

+
Topic: Text overflow in table cell
Posted: Monday, November 27, 2017 6:23:56 AM
Hi,
without additional information it's not possible to identify where&when the problem occurs. You should attach your design -reduced to minimal- that demonstrates the problem. Also don't forget to include the schema and working xml files as well.
Or even better: contact Altova support with your files and used configuration (fop version etc)
Cheers

+
Topic: FOP XMLParseException; lineNumber: 1; columnNumber: 1; Start of root element expected. org.apac
Posted: Monday, March 21, 2016 12:59:34 PM
Hi,
from the stack trace this error seems to be unrelated to StyleVision and you would probably want to look at the content returned by the request.getParameter("template") call on line 21


+
Topic: Return javascript function
Posted: Thursday, February 26, 2009 9:45:36 AM
hi,

the msxsl:script falls in the category of xslt extension elements, initially implemented by MSXML and is supported in the newer versions of the built-in XSLT engine used in Altova XMLSpy.
Tried your sample in XMLSpy2009 and worked fine with the built-in engine.

Best regards,
Botond

+
Topic: dynamic evaluation and editing of xml files
Posted: Monday, September 15, 2008 10:44:55 AM
hi tshmi,

with the files under c:/coding/collections/ the call collection('c:/coding/collections/*.xml') should return the document nodes for all files in that folder with xml extension.

I use the following code to retrieve information from several *.xsl files. Works perfectly with both XMLSpy and AltovaXML. I use the latest version: 2008 rel. 2 sp2.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" >

<xsl:output indent="yes"/>
<xsl:template match="/">
<out>
<xsl:for-each select='collection( "C:\Program Files\Altova\XMLSpy2008\sps\Template\xmlspec\*.xsl" )/*/xsl:template/@match'>
<temp match="{.}"/>
</xsl:for-each>
</out>
</xsl:template>

</xsl:stylesheet>


Best regards,
Botond


+
Topic: Save Generated XSLT-Word 2007
Posted: Wednesday, May 28, 2008 6:14:07 PM
Astir,

In order to enforce the output to a zip file one has to specify the zip protocol:
a) either on the href attribute (output uri) of every xsl:result-document
b) or if the result-documents specify relative output uris -as I assume is in this case-, then for the main output. The folder extracted from the main output is used as the base output uri to resolve the relative output uris.

ex:
xslt2.Execute(CurrentDirectory+"/orgchart.docx|zip/main.out");
or if the main result document is empty:
xslt2.Execute(CurrentDirectory+"/orgchart.docx|zip/");

For regular zip archives this would be:
xslt2.Execute(CurrentDirectory+"/results.zip|zip/result0001.xml");

When using from command line, since the | ( pipe ) character is interpreted in the windows cmd system, you have to put quotes around the main output uri.

AltovaXML -in input.xml -xslt2 transform.xslt -out "results.zip|zip\result003.xml"
Cheers,
Botond

+

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