|
Rank: Newbie
Joined: 6/28/2017 Posts: 6 Location: Germany
|
Hello,
Here's my problem:
I have created a stylesheet with Stylevision (2017), which works wonderfully integrated into an XML file.
If I open this XML file in XML Spy (2010), it complains about not unique IDs with conditional formatting.
Translation of the error: Variable or parameter 'bColumn...' cannot be defined twice within the same template.
PS: The stylesheet was created using Altova Stylevision only. mpa attached the following image(s):
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
HI,
It sounds like you have generated an xslt 2.0 or higher stylesheet in Stylevision which you have then assigned to an xml file which you are opening in a browser.
In xslt 2.0 or higher it is possible to declare variables of the same name within the same scope (shadowing).
The problem is that you are trying to use the xslt engine included in the browser to transform the xml into html, and this xslt engine only supports support xslt 1.0. In xslt 1.0 shadowing is not permissible.
Have you tried generating an xslt 1.0 stylesheet from your Stylevision design and assigning this to the xml instead?
|
|
Rank: Newbie
Joined: 6/28/2017 Posts: 6 Location: Germany
|
Hello island,
that sounds good, but I just checked it and found that I had XSLT 1.0 enabled.
PS: XSLT 2.0 or higher generated stylesheets were not displayed in the browser during the tests, so we generate the stylesheets generated in XSLT 1.0.
PPS: The generated XSLT file starts like this: <?xml version="1.0" encoding="UTF-8"?> <!--Designed and generated by Altova StyleVision Basic Edition 2017 rel. 3 sp1 - see http://www.altova.com/stylevision for more information.--> <xsl:stylesheet version="1.0" mpa attached the following image(s):
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Please upload:
ypur sps file the xml file you wish to transform, the xsd(s) or dtds upon which the sps is based, the xslt file you have generated from your sps.
|
|
guest |