Inconsistent Transformation
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Thu Aug 07, 2008 9:49 pm
Inconsistent Transformation
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?
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?
-
- 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:
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
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')"/>
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service