XML transformation
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 4
- Joined: Wed Aug 20, 2014 6:26 am
XML transformation
hi,
My team is transitioning from XMLSPY as an XML editor to oXygen as an XML editor.
One of the problems faced during this transition is for XML transform to HTML using XSLT.
Here is the error:
but the variable "AvBenName" is declared in the same file and within the scope of the code (where the variable is referred) as follows
Any guess why the transformation would fail? If I open the XML as an HTML file, the XSLT transformation happens fine. If I attempt to convert the XML using XMLSPY, the XSLT transformation happens fine.
Any inputs would be appreciated.
My team is transitioning from XMLSPY as an XML editor to oXygen as an XML editor.
One of the problems faced during this transition is for XML transform to HTML using XSLT.
Here is the error:
The code in the AvBen.xslt where this error points to (line 2508) isSystem ID: C:\BCALC\presentation\FB\v1\AvBen.xslt
Scenario: xml-stylesheet processing instruction
XML file: C:\Users\a333\Desktop\TC10061.xml
Engine name: Saxon6.5.5
Severity: warning
Description: Variable AvBenName has not been declared
Start location: 2508:0
Code: Select all
<xsl:if test="$AvBenName = 'Some AvBen'">
Code: Select all
<xsl:variable name="AvBenName" select="name"/>
Any inputs would be appreciated.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XML transformation
Hello,
XMLSPY and IE have their own XSLT engines which may be more permissive. On the other hand Oxygen relies on the Saxon XSLT engines which are strict regarding to the XSLT specification.
Are you sure that the variable is declared within the same scope (same or lower level)?
Note that if the variable is declared in another block within the same template (deeper), it's not actually available outside of that block.
e.g. =>
If it is possible, please send it to support@oxygenxml.com.
Regards,
Adrian
XMLSPY and IE have their own XSLT engines which may be more permissive. On the other hand Oxygen relies on the Saxon XSLT engines which are strict regarding to the XSLT specification.
Are you sure that the variable is declared within the same scope (same or lower level)?
Note that if the variable is declared in another block within the same template (deeper), it's not actually available outside of that block.
e.g.
Code: Select all
<element>
<xsl:variable name="AvBenName" select="name"/>
</element>
<xsl:if test="$AvBenName = 'Some AvBen'">
Would it be possible to send us the stylesheet to investigate? Or at least a snippet with the template/function where both the variable declaration and reference appear.E [Saxon6.5.5] Variable AvBenName has not been declared
If it is possible, please send it to support@oxygenxml.com.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Wed Aug 20, 2014 6:26 am
Re: XML transformation
Yes, that was the issue. I noticed and fixed the issue before this post was approved by the forums admin.
The variable was declared within a <font></font> tag and possibly not "visible" to the code outside the font tag.
Thanks for your suggestion though.
The variable was declared within a <font></font> tag and possibly not "visible" to the code outside the font tag.
Thanks for your suggestion though.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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