Comparing Variables
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Tue Apr 01, 2014 8:13 pm
Comparing Variables
Post by mchowdhury »
I am trying to compare xsl variable but its not printing anything out.
Code: Select all
<tr>
<td class="gpl">Applied</td>
<td class="gl">
<xsl:variable name="vGRAD" select="/Rpt/Dg/Cust[@Code='GRADMJ']"/>
<xsl:variable name="vMAJ" select="/Rpt/Fop/Gl[@Code='MAJ']"/>
<xsl:choose>
<xsl:when test="$vGRAD = $vMAJ">YES</xsl:when>
<xsl:when test="$vGRAD != $vMAJ">NO</xsl:when>
</xsl:choose>
</td>
</tr>
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Comparing Variables
Hi,
The XSL seems fine, but it depends on what you have in the XML source. Check for namespaces, it's a common problem.
Regards,
Adrian
The XSL seems fine, but it depends on what you have in the XML source. Check for namespaces, it's a common problem.
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: 99
- Joined: Thu Oct 23, 2008 6:29 am
Re: Comparing Variables
There really is not enough information to identify the issue. Try adding a sample of your XML document to this thread. A small mock-up will do fine.mchowdhury wrote:I am trying to compare xsl variable but its not printing anything out.
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