Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2002 03:37:22 -0700 (PDT)
From:      Iouri Ivliev <yury@black.cat.kazan.su>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/43325: disable-output-escaping attribte of xsl:value-of element doesn't work properly for html output method
Message-ID:  <200209241037.g8OAbMV3029630@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         43325
>Category:       ports
>Synopsis:       disable-output-escaping attribte of xsl:value-of element doesn't work properly for html output method
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 24 03:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Iouri Ivliev
>Release:        4.6.2-RELEASE
>Organization:
EsterDev
>Environment:
FreeBSD shelob.anysoft.ru 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Sat Aug 31 01:22:39 MSD 2002 root@shelob.anysoft.ru:/usr/obj/usr/src/sys/SHELOB i386
>Description:
ports installed:
  libxml2-nopython-2.4.24 Xml parser library for GNOME
  libxslt-nopython-1.0.20 The XSLT C library for GNOME
when use xsltproc utility to generate html output from xml document 
containing &lt;, &gt;, &amp;nbsp; &amp;copy; or some else element values
using xsl:value-of element with disable-output-escaping="yes" 
result contains escaped values insted nonescaped.
>How-To-Repeat:
Script:
cat >test.xml <<XML
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<root>&lt;</root>
XML

cat >test.xsl <<XSL
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">;
<xsl:output method="html" version="4.01" indent="no"/>
<xsl:template match="/root">
  <xsl:value-of disable-output-escaping="yes" select="."/>
  <xsl:value-of disable-output-escaping="no" select="."/>
  <xsl:text disable-output-escaping="yes">&lt;</xsl:text>
  <xsl:text disable-output-escaping="no">&lt;</xsl:text>
</xsl:template>
</xsl:stylesheet>
XSL

xsltproc test.xml

Output:
&lt;&lt;<&lt;

Should be:
<&lt;<&lt;

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209241037.g8OAbMV3029630>