bugGuile - Bugs: bug #29260, sxml->xml can't use output from...

 
 

bug #29260: sxml->xml can't use output from xml->sxml

Submitter:  None
Submitted:  Thu 18 Mar 2010 10:30:00 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  civodul
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 11 May 2010 09:54:08 PM UTC, comment #2: 
Ludovic Courtès <civodul>
Group administrator
Wed 14 Apr 2010 09:01:02 AM UTC, comment #1: 

When I added
(TOP       . ,(lambda (tag . xml) xml))

to  (define universal-sxslt-rules ...) in module/sxml/simple.scm
the issue seams to be corrected.

Stefan Israelsson Tampe <tampe>
Group Member
Thu 18 Mar 2010 10:30:00 PM UTC, original submission:  

Basically, sxml->xml doesn't like the TOP that xml->sxml returns in the result.


$ git describe
release_1-9-8-116-gef7e4ba

dsmith@CLE-ENG-04:~$ guile
Guile Scheme interpreter 0.5 on Guile 1.9.8
Copyright (C) 2001-2008 Free Software Foundation, Inc.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (sxml simple))
scheme@(guile-user)>  (sxml->xml (with-input-from-file "foo.xml" xml->sxml))
Throw to key `misc-error':
ERROR: Invalid name starting character "*TOP*" TOP
Entering the debugger. Type `bt' for a backtrace or `c' to continue.

  1. debug> c
  2. debug> 0 debug>

Backtrace:
In ice-9/boot-9.scm:
1041: 8 [#<procedure fca600 ()>]
  60: 7 [call-with-prompt prompt0 #<procedure d3eee0 ()> ...]
In ice-9/r4rs.scm:
 174: 6 [with-output-to-port #<variable b3ca90 value: #<output: standard output /dev/pts/5>> ...]
In sxml/simple.scm:
  64: 5 [#<procedure d415c0 at sxml/simple.scm:61:4 ()>]
  53: 4 [#<procedure d16260 at sxml/simple.scm:52:20 (tag . elems)> TOP # #]
 107: 3 [entag TOP]
In unknown file:
   ?: 2 [for-each #<procedure d43e60 at sxml/simple.scm:93:5 (s)> ("*TOP*" #f)]
In sxml/simple.scm:
  97: 1 [#<procedure d43e60 at sxml/simple.scm:93:5 (s)> "*TOP*"]
In ice-9/boot-9.scm:
 847: 0 [error "Invalid name starting character" "*TOP*" TOP]

ERROR: Invalid name starting character "*TOP*" TOP
scheme@(guile-user)>

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by civodul (Posted a comment)
  • -email is unavailable- added by tampe (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-11 civodul StatusNone Fixed
        Assigned toNone civodul
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code