defremovecdata Tag

Format: <defremovecdata >

Context: defremovecdata must be used inside a defenv tag (after a inherit tag if present).

Purpose:

The XML feature CDATA is used to escape literal text. Normally heitml as a preprocessor totally ignores CDATA and copies it to the output unchanged. Directly inside an environment declared with defremovecdata however heitml works differently: the strings '<![CDATA[' and ']]>' are removed from the output.

This is useful if the CDATA feature is used to escape scripts (e.g. heitml or JavaScript) contained inside XML files.

Example:

heitml DefinitionWell formed XML
(heitml input)
resulting output
(HTML send to the browser)
<defenv js; defremovecdata>
<script type="text/javascript"><!--
<defbody>
//-->
</script>
</defenv>
<js><![CDATA[

open("Test","/mypage");

]]></js>
<script type="text/javascript" >

<!--
open("Test","/mypage");
//-->

</script>

The js-Tag is defined like this in the "javasc.hei" library in order to embed java scripts into heitml pages in an XML compatible way. The definition of the heitmlprog and heitmlparaprog components use in order to embed heitml programs in an XML compatible way. See Programming for examples.


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2017 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
      ? Tag
      assign Tag
      break Tag
      callenv Tag
      dbdatabase Tag
      dbquery Tag
      dbupdate Tag
      def Tag
      defautoclose Tag
      defbody Tag
      defclass Tag
      defcontpara Tag
      defenv Tag
      defhtml Tag
      definpara Tag
      defpara Tag
      defremovecdata Tag
      deftranspara Tag
      defwysiwyg Tag
      for Tag
      forin Tag
      forsep Tag
      if Tag
      elsif Tag
      else Tag
      include Tag
      includeonce Tag
      inherit Tag
      let Tag
      mail Tag
      return Tag
      shell Tag
      while Tag
      writefile Tag
      \ Tag
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tryout Form
  Tutorial
  New Features
  heitml 1
User Guide
FAQ
Mailinglist
Discussion Group
Services
Pricing/Register
Download
Frame
 
Contact
 
 
 
Search: