RE: [xsl] Disable Output Esacping Problems

Subject: RE: [xsl] Disable Output Esacping Problems
From: "Schwartz, Rechell R, ALCAS" <rrschwartz@xxxxxxx>
Date: Wed, 6 Nov 2002 23:00:02 -0500
To Jeorg and others who responded to this question,

Thank you for the solution. I grasp the concept now!

Thanks again,
Rechell

-----Original Message-----
From: Joerg Heinicke [mailto:joerg.heinicke@xxxxxx] 
Sent: Wednesday, November 06, 2002 4:33 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Disable Output Esacping Problems

Of course, the parser complains - me too ;-)

You must change the way you create the output. You should create XML 
elements and not text. Again, please try the solution at the given url.

Joerg

Schwartz, Rechell R, ALCAS wrote:
> Jeorg,
> 
> I don't understand what alternative I have. The parser complains if I
> don't use it.
> 
> Rechell
> 
> -----Original Message-----
> From: Joerg Heinicke [mailto:joerg.heinicke@xxxxxx]
> Sent: Wednesday, November 06, 2002 3:54 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Disable Output Esacping Problems
> 
> 
> Hello Rechell,
> 
> what about my last mail? I suggested a solution (I hope so). And I
said 
> "Don't use disable-output-escaping!" See 
> http://aspn.activestate.com/ASPN/Mail/Message/XSL-List/1422654.
> 
> 
> Does anybody what's up with archive at sources.redhat.com??
> 
> Regards,
> 
> Joerg
> 
> Schwartz, Rechell R, ALCAS wrote:
> 
>>All,
>>
>>I am trying to generate an HTML file that will really be generated as
> 
> an XML file and then be used as input to another XSL stylesheet (for
> styling purposes) where it will then be converted to a new HTML file
for
> display in the browser. In the second XSLT file, the program goes
> through each <TR> and <TD> tag and adds an appropriate atribute for
> styling.
> 
>>In the first XSLT file I need (or I think I need) to disable output
> 
> esacping because I need to generate non-symmetrical XML tags. The
> disabling of output esacping generates the expected output, but the
> second XSLT file doesn't seem to recognize the <TD> and <TR> tags
whose
> output was escaped and fails to apply the appropriate styling to these
> tags.
> 
>>Here is the code:
>>
>><xsl:template match="Side Dish">
>><xsl:if test="position() = 1">
>>	<xsl:text disable-output-escaping="yes"><![CDATA[<tr><td>Side
> 
> Dish:</td><td>]]></xsl:text>
> 
>></xsl:if>
>>      <xsl:value-of select="."/>
>><xsl:choose>
>>	<xsl:when test="position() != last()">
>> 		<xsl:text>, </xsl:text>
>>	</xsl:when>
>>	<xsl:otherwise>
>>		<xsl:text
> 
> disable-output-escaping="yes"><![CDATA[</td></tr>]]></xsl:text>
> 
>>	</xsl:otherwise>
>></xsl:choose>
>></xsl:template>
>>
>>Any help would be greatly apprecited.
>>
>>Thanks,
>>Rechell
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread