Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tag tld declaration

 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

How can i declare the custom tag tld declaration for attribute.
Condition like follow

consider a tag test its has 2 attributes key and dependent.
if key is precent dependent should not precent, same like if dependent attribute is precent key shound not precent. and either one must be precent.

example

<pref:test key="mykey"> -->correct
<pref:test dependent ="mydependent"> -->correct


<pref:test key="mykey" dependent ="mydependent"> --> in correct
<pref:test> -->incorrect

How can i define a tld for this.

Thanks in advance
Sundar
 
MI Mohammed
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sundar,
I can't really get your question right, but i tried to quess.
To declare more than one attribute for for a tag in TLD.

the whole stuff about the name, uri and so follows. But the you need to take care are;

<attribute>
<name>
<require>
<rtexprvalue>
</attribute>

You should have this for each attribute.
I hope it helps.

SCJA SCJP 1.4 SCWCD Pro.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic