Re: [xslt] newline in attr value



On Thu, Feb 07, 2002 at 12:18:39AM -0800, Madhu Gopinathan wrote:
> Hi,
> I would really appreciate your help on this.
> 
> I want to get the newlines in my
> attribute values (set using xmlSetProp
> while populating an XML tree) appear
> as 
 after transformation through
> an XSL (in HTML output mode). Is this
> possible? Right now this appears as \n
> which is not good for me because I want
> to display the newline in the browser.
> 
> I also noticed that GNOME
> does not transform attribute values with
> newlines properly in xml output method. Is there
> a fix available for this?

  That's a bug in libxml serializer(s)
it has been in libxml2 TODO list for a while:
--------
- Fix output of <tst val="x&#xA;y"/>
--------

  I would need to write a specific escaping function for attributes
but didn't do it yet.
  Could you register it as a bug in Bugzilla, I will try to get it
fixed before the next release (but work to do is piling up :-\).

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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