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

 
 

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

Submitted by:  None
Submitted on:  Thu 18 Mar 2010 10:30:00 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ludovic Courtès <civodul>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 11 May 2010 09:54:08 PM UTC, comment #2:

Indeed, thanks!

Committed along with a test case:

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=df3f1090e8772a78206e6a5b65112fa66dbcd0af

Ludo'.

Ludovic Courtès <civodul>
Project AdministratorIn charge of this item.
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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 May 2010 09:54:08 PM UTCcivodulStatusNone=>Fixed
      Assigned toNone=>civodul
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1