Ugh, my apologies; the second binding attempt in the previous example
didn't make any sense and would obviously not work.

Here is what I meant to say, and it still doesn't do what I expect. My
apologies for spamming the list with bogus SVG.

<svg
   xmlns="http://www.w3.org/2000/svg"; version="1.2"
   xmlns:xbl="http://www.w3.org/2004/xbl";
   xmlns:myNS="http://example.com";
   >
 <defs>
   <xbl:xbl>

     <xbl:definition element="myNS:no-label">
       <xbl:template>
         <text>
           <xbl:content />
         </text>
       </xbl:template>
     </xbl:definition>

     <xbl:definition element="myNS:has-label">
       <xbl:template>
         <text>
           <xbl:content includes="label"/>
         </text>
       </xbl:template>
     </xbl:definition>

   </xbl:xbl>
 </defs>

 <g font-size="14pt" font-family="Verdana" transform="translate(10, 35)">
   <myNS:no-label>
      This text isn't in a label element.
   </myNS:no-label>
 </g>

 <g font-size="14pt" font-family="Verdana" transform="translate(10, 65)">
   <myNS:has-label>
     <myNS:label>
         This text is within a label element!
     </myNS:label>
   </myNS:has-label>
 </g>

</svg>

--
Jason McIntosh
President and Founder
Volity Games
[EMAIL PROTECTED]
617-792-3829

Digital Games for Analog People.
http://volity.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to