[xslt] xsltproc docbook and user.header.navigation handling



I have a bunch of docbook files, plus a custom xsl stylesheet, and a 
makefile that is used to build the whole thing. In the xsl sheet i 
override the
<xsl:template name="user.header.navigation"> template. In this I have 
some header html wrapped in a CDATA tag. This all used to output 
flawlessly until I upgraded my cygwin install (which I beleive also 
upgraded xsltproc). Now the output has all the "<" characters 
transformed to "&lt;" and so on. Looking on google and this mailing list 
it appears that this is a feature that was added per the xml spec. If 
so, how can I get the output to resemble html again with the "<" 
characters intact?

This is a fragment of what I have in the stylsheet that used to work:
<xsl:template name="user.header.navigation">   
    <![CDATA[   
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="logoCell" width="400" height="80" valign="top">
   <table width="400" border="0" cellpadding="0" cellspacing="0">
    <tr>
......rest clipped
]]>
</xsl:template>

I used to get output like:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="logoCell" width="400" height="80" valign="top">
   <table width="400" border="0" cellpadding="0" cellspacing="0">
    <tr>
and so on.

Now I get :

&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
 &lt;tr&gt;

  &lt;td class=&quot;logoCell&quot; width=&quot;400&quot; height=&quot;80&quot; valign=&quot;top&quot;&gt;
   &lt;table width=&quot;400&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;

    &lt;tr&gt;

I didn't see (or understand, perhaps) how to solve this, apologies if this has been answered before.

Cheers

Jim










[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]