Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT_TOOL and Altova

mark_meilleur
Participant
0 Kudos


This is all new to me.

I have created a simple XSLT file with Altova Stylevision to take the data within an idoc and present it in a user-friendly manner.  I took this data file and uploaded it to a transformation using XSLT_TOOL in ECC and am getting an error with the source code that I can't figure out.

Here is the "header" area and the section being flagged as an error:

<?xml version="1.0" encoding="UTF-8"?>

<!--Designed and generated by Altova StyleVision Enterprise Edition 2014 sp1 - see http://www.altova.com/stylevision for more information.-->

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:altova="http://www.altova.com" xmlns:altovaext="http://www.altova.com/xslt-extensions" xmlns:clitype="clitype" xmlns:fn="http://www.w3.org/2005/xpath-functions"

xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:ix="http://www.xbrl.org/2008/inlineXBRL" xmlns:java="java" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:sps="http://www.altova.com/StyleVision/user-xpath-functions"

xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="#all">

<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" use-character-maps="spaces" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>

<xsl:character-map name="spaces">

<xsl:output-character character="&#160;" string="&amp;nbsp;"/>

</xsl:character-map>

<xsl:param name="altova:bGeneratingFromPxf" select="false()"/>

<xsl:param name="SV_OutputFormat" select="'HTML'"/>

<xsl:param name="SV_BaseOutputFileName" as="xs:string?">

<xsl:sequence select="for $i in altovaext:get-base-output-uri(), $j in tokenize( $i, &apos;[/\\]&apos; )[last()] return replace( $j, &apos;\.[^\.\s#%;]*$&apos;, &apos;&apos; )" use-when="function-available(&apos;altovaext:get-base-output-

uri&apos;)"/>

</xsl:param>

<xsl:param name="SV_GeneratedFileNamePrefix" select="if ( $SV_BaseOutputFileName ) then $SV_BaseOutputFileName else &apos;IdocInvoice&apos;" as="xs:string?"/>

<xsl:variable name="XML" select="/"/>

<xsl:variable name="altova:nPxPerIn" select="96"/>

<xsl:import-schema schema-location="file:///F:/My%20Documents/Electronic%20Data%20Exchange/XML/Documentation/ZINVOIC_XML.INVOIC02.xsd" use-when="system-property('xsl:is-schema-aware')='yes'"/>

<xsl:variable name="altova:CssImages" select="()"/>

<xsl:template match="/">

<xsl:call-template name="altova:Root"/>

</xsl:template>

<xsl:template name="altova:Root">

<html>

<head>

<title/>

<meta name="generator" content="Altova StyleVision Enterprise Edition 2014 sp1 (http://www.altova.com)"/>

<meta http-equiv="X-UA-Compatible" content="IE=9"/>


<xsl:function name="altova:is-cell-empty" as="xs:boolean">

<xsl:param name="altova:cell" as="element()"/>

<xsl:sequence select="altova:is-node-empty( $altova:cell )"/>

</xsl:function>

When I "check" this, I get the message "illegal content for function", and it's pointing to the highlighted line.

Am I missing something???

1 ACCEPTED SOLUTION

mark_meilleur
Participant
0 Kudos

Changing Stylevision to use XSLT version 1.0 instead of 2.0 resolved this issue.

1 REPLY 1

mark_meilleur
Participant
0 Kudos

Changing Stylevision to use XSLT version 1.0 instead of 2.0 resolved this issue.