Home » Developer & Programmer » JDeveloper, Java & XML » How to use "if" in XML?
How to use "if" in XML? [message #341126] Sat, 16 August 2008 20:11 Go to next message
vitas_haiyi
Messages: 36
Registered: April 2007
Member
I maked a XML Publisher Report, in my template file aaa.rtf,
there is a formfield ,I coding
<?if:ACCOUNT_ID >1000 and :ACCOUNT_ID <2000 ?>
But showed wrong when it runing.
How to use "if" in XML?
Re: How to use "if" in XML? [message #341147 is a reply to message #341126] Sun, 17 August 2008 02:31 Go to previous messageGo to next message
Frank
Messages: 7877
Registered: March 2000
Senior Member
I don't know about Publisher Report, so I have no idea if what you try is possible, but read your code again.
How would the XML-parser ever be able to distinguish between a "greater than" and a closing tag? You use > for both.
Re: How to use "if" in XML? [message #344696 is a reply to message #341126] Mon, 01 September 2008 01:14 Go to previous message
ashokt
Messages: 7
Registered: August 2008
Junior Member
Hi,

<?if: ACCOUNT_ID >1000 and ACCOUNT_ID <2000 ?>

use this one and let me know the result otherwise
send your Template and data file

ashok.
Previous Topic: Unique Number
Next Topic: Extract Attribute Values?
Goto Forum:
  


Current Time: Tue Jul 22 12:45:10 CDT 2014

Total time taken to generate the page: 0.11454 seconds