Search the web
Sign In
New User? Sign Up
xrules · XRules & DynamicDOM
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Need help about XMLAttribute   Message List  
Reply | Forward Message #53 of 74 |
Hi,

Thank you about XRule,It is so usefull Rule Management.
I have problem with XmlAttribute like this:
<FLN ID="F051601004" SUM="">
<CFLN ID="1">10</CFLN>
<CFLN ID="2">2</CFLN>
<CFLN ID="3">4</CFLN>
</FLN>

I want to calculate sum of CFLN and set it into SUM attribute.

<?xml version="1.0" encoding="utf-16"?>
<xr:rules xmlns:xr="http://www.xrules.org/2003/11">
<xr:ruleset context="/FLN">
<xr:calculate target="SUM">
<xr:value>sum(CFLN)</xr:value>
</xr:calculate>
</xr:ruleset>
</xr:rules>

But when I use this XRule, I get error "Not found SUM,You can use
CreateNode Attribute ...."

How can I set <SUM> XMlAttribute in my XML file.




Sat Jan 13, 2007 10:17 pm

radobject
Offline Offline
Send Email Send Email

Forward
Message #53 of 74 |
Expand Messages Author Sort by Date

Hi, Thank you about XRule,It is so usefull Rule Management. I have problem with XmlAttribute like this: <FLN ID="F051601004" SUM=""> <CFLN ID="1">10</CFLN> ...
radobject
Offline Send Email
Jan 14, 2007
3:30 am

It seems that you're missing the "@" before the attribute name. This should fix the problem: <xr:rules xmlns:xr="http://www.xrules.org/2003/11"> <xr:ruleset...
Waleed K. Abdulla
waleed_ka
Offline Send Email
Jan 14, 2007
5:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help