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.

Not unique IDs while conditional formatting Options · View
mpa
Posted: Monday, August 6, 2018 11:39:52 AM
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):
Inkedimage001_LI.png

island
Posted: Monday, August 6, 2018 12:59:03 PM
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?


mpa
Posted: Monday, August 6, 2018 1:18:46 PM
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):
xslt1.PNG

island
Posted: Monday, August 6, 2018 3:56:24 PM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

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