XML transformation
Posted: Wed Aug 20, 2014 6:46 am
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.