Inconsistent Transformation

Here should go questions about transforming XML with XSLT and FOP.
Greuvee
Posts: 1
Joined: Thu Aug 07, 2008 9:49 pm

Inconsistent Transformation

Post by Greuvee »

I have a strange problem which has stretched me to my limits. Here is the scenario (Oxygen version 6.2):

I have existing XSL files, which is used for transforming my XML into HTML, PDF, and CSV formats. When I transform this 1.0 stylesheet in Oxygen using the Saxon6.5.4 transformer, I am getting expected results. The report renders with all applicable data being displayed. When I attempt to use the Saxon8B transformer, certain elements on the reports are not being displayed, however all totaled ammounts are being calculated as expected. These totals account for the values of the elements not being displayed.

When the report is generated from within the web application, the report is not showing those elements which I mentioned above. My first question was "What transformer is being invoked on the server?" but I must admit that I am very new to XSL.

All the research I have done suggests that 2.0 transformers shouldn't have any problem rendering a 1.0 stylesheet, but this certainly appears to be the case.

Is there some kind of version tag which I can plug into my XSL to print out which transformer is being used?

How would someone else approach this problem?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Inconsistent Transformation

Post by sorin_ristache »

Hello,

You can find details about the processor with the system-property function:

Code: Select all

<xsl:value-of select="system-property('xsl:vendor')"/>

<xsl:value-of select="system-property('xsl:vendor-url')"/>
There are differences between an XSLT 1.0 processor and an XSLT 2.0 processor when processing an XSLT 1.0 stylesheet. For telling you where is the difference in your case it is necessary to see a sample of the XML input and XSLT stylesheet that show the differences between the two outputs.


Regards,
Sorin
Post Reply