I have a component with a rich text field.
In the Source tab I type the following code.
then I switch to the Design tab and then I switch to the Source tab and
The HTML tag (<head>, <html>, <meta>, <title>, <body>, <link>
) is disappeared and added <![CDATA[]]>
sign.
(Please refer to the following image.)
But I want to permit any HTML Tag. (I don't strict any HTML Tag.)
The configuration of rich text field is described below.
Document Type: Transitional
Accessibility Level: None
Filtering XSLT is described below.
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0">
<output omit-xml-declaration="yes" indent="yes"></output>
<strip-space elements="*"></strip-space>
<template match="node()|@*">
<copy>
<apply-templates select="node()|@*"></apply-templates>
</copy>
</template>
I think that the above Filtering XSLT configuration is wrong, maybe.
But I don't know where is wrong.
So, please tell me how to configurate the Filtering XSLT.
UPDATE
I modify the above Filtering XSLT configuration as described below. But my problem is not soloved.
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0">
<output omit-xml-declaration="yes" method="xml" cdata-section-elements="script"></output>
<template match="html">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="body">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="head">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="title">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="meta">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="link">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="script">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="body">
<apply-templates select="node() | @*"></apply-templates>
</template>
<template match="/ | node() | @*">
<copy>
<apply-templates select="node() | @*"></apply-templates>
</copy>
</template>
<template match="*[ (self::br or self::p or self::div) and normalize-space(translate(., ' ', '')) = '' and not(@*) and not(processing-instruction()) and not(comment()) and not(*[not(self::br) or @* or * or node()]) and not(following::node()[not( (self::text() or self::br or self::p or self::div) and normalize-space(translate(., ' ', '')) = '' and not(@*) and not(processing-instruction()) and not(comment()) and not(*[not(self::br) or @* or * or node()]) )]) ]">
<!-- ignore all paragraphs and line-breaks at the end that have nothing but (non-breaking) spaces and line breaks -->
</template>
<template match="br[parent::div and not(preceding-sibling::node()) and not(following-sibling::node())]">
<!-- Chrome generates <div><br/></div>. Renders differently in different browsers. Replace it with a non-breaking space -->
<text> </text>
</template>