The <x> tag does not itself generate a HTML tag but instead inserts textual content into the parent tag. Returns: None

Return TypeFunction nameArguments
voidhdsXtag::Generate(hzChain&,hzHttpEvent*,uint32_t&,)

Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp

Function Logic:

0:START 1:unknown 2:items 3:unknown 4:items 5:nLine 6:unknown 7:unknown 8:S 9:unknown 10:items 11:items 12:items 13:unknown 14:S 15:unknown 16:items 17:items 18: No text

Function body:

void hdsXtag::Generate (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, 
{
   //  The <x> tag does not itself generate a HTML tag but instead inserts textual content into the parent tag.
   //  
   //  Arguments: 1) C  The HTML output chain
   //     2) pE  The HTTP event being responded to
   //     3) nLine Line number tracker (controls NL printing)
   //  
   //  Returns: None
   _hzfunc("hdsHtag::Generate") ;
   hdsVE*      pVE ;       //  For processing subtags
   hzString    S ;         //  Temp string
   uint32_t    n ;         //  Tab counter
   //  Write out newline and tabs if the current tag's line is greater than the supplied line
   if (m_Line != nLine)
   {
       C.AddByte(CHAR_NL) ;
       for (n = m_Indent ; n ; n--)
           C.AddByte(CHAR_TAB) ;
       nLine = m_Line ;
   }
   //  Now for each subtag, output first the pretext (part of this tag's content) and then call Display on the subtag
   for (pVE = Children() ; pVE ; pVE = pVE->Sibling())
   {
       if (pVE->m_strPretext)
       {
           S = pVE->m_strPretext ;
           if (pE && (pVE->m_flagVE & VE_PT_ACTIVE))
               C << m_pApp->ConvertText(S, pE) ;
           else
               C << S ;
       }
       pVE->Generate(C, pE, nLine) ;
   }
   //  Now write out the content
   if (m_strContent)
   {
       S = m_strContent ;
       if (pE && m_flagVE & VE_CT_ACTIVE)
           C << m_pApp->ConvertText(S, pE) ;
       else
           C << S ;
   }
}