Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using custom tag from the other custom tag

 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to wrap existing custom tag with another custom tag. Like this:
<originalTag />
Output original

<extendedTag />
Output original
Some other output from extended tag
But! I dont want to do:
<extendedTag>
<originalTag />
</extendedTag>
Thank you
 
brad balmer
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at your syntax ...
You say

By writing the original as <originalTag/> you CANNOT specify any body for the tag and that tag effectly ends there because you end it with />.
The only way to embed one tag in another would be:
<originalTag>
<extendedTag/>
</originalTag>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic