Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSL <> converted into < and > in final HTML

From: Donald Firesmith <donald_firesmith@-------.--->
To: NULL
Date: 1/4/2005 3:46:00 PM
I am having trouble having Google Adsense code stored in XSL converted 
properly into HTML.  The <> unfortunately become &lt; and &gt; and then 
no longer work.

XSL code is:

   <script type="text/javascript">
   <![CDATA[
<!--
    google_ad_client = "pub-5065036055322567";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_channel ="";
    google_page_url = document.location;
    google_color_border = "0000FF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "0000FF";
    google_color_text = "000000";
   //-->
   ]]>
   </script>
   <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
   </script>

Resulting HTML code is:

<script type="text/javascript">
&lt;!--
    google_ad_client = "pub-5065036055322567";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_channel ="";
    google_page_url = document.location;
    google_color_border = "0000FF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "0000FF";
    google_color_text = "000000";
   //--&gt;
   </script>
<script type="text/javascript" 
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

How do I fix this?

I get a similar problem when I try to have an XML description containing 
html tags properly included into the meta description:

XML:
   <meta name="description">
    <xsl:attribute name="content">
     <xsl:value-of select="definition"/>
    </xsl:attribute>
   </meta>
   </meta>
XSL:
   <meta name="description">
    <xsl:attribute name="content">
     <xsl:value-of select="definition"/>
    </xsl:attribute>
   </meta>
Results in HTML:
<meta name="description" content="&#xA;  the &lt;a 
href=&quot;../Activities.html&quot;&gt;activity&lt;/a&gt; consisting of 
the cohesive collection of all&#xA;  &lt;a 
href=&quot;../../Tasks/Tasks.html&quot;&gt;tasks&lt;/a&gt; that are 
primarily performed to produce the&#xA;  &lt;a 
href=&quot;../../../WorkProducts/RequirementsSet/Requirements/Requirements.html&quot;&gt;requirements&lt;/a&gt; 
and other&#xA;  &lt;a 
href=&quot;../../../WorkProducts/RequirementsSet/RequirementsSet.html&quot;&gt;requirements 
work products&lt;/a&gt; for an&#xA;  &lt;a 
href=&quot;../../../Endeavors/Endeavors.html&quot;&gt;endeavor&#xA; 
&lt;/a&gt;"/>

How do I fix this so that it is properly included?



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent