Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
REXML (1.8.6 p111) Document.write fails - "undefined local"
Wes Gamble
1/25/2008 11:27:00 PM
All,
Windows One-Click installer Ruby 1.8.6 patchlevel 111.
I have code that uses REXML to emit an XML document and when I run it on
1.8.6 (upgraded) from 1.8.4, I see the error "undefined local variable".
Sure enough,
if I look in the Document.write method, I see a variable "transitive"
that should be named "trans".
def write( output=$stdout, indent=-1, trans=false, ie_hack=false )
if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
output = Output.new( output, xml_decl.encoding )
end
formatter = if indent > -1
if transitive
REXML::Formatters::Transitive.new( indent, ie_hack )
else
REXML::Formatters::Pretty.new( indent, ie_hack )
end
else
REXML::Formatters::Default.new( ie_hack )
end
formatter.write( self, output )
end
This is also referenced in this thread from last October:
http://www.ruby-...
to...
Is there an updated set of REXML standard library files that I can
download. I assume that this is fixed already in the standard lib
trunk.
What is the best way to resolve this?
Thanks,
Wes
--
Posted via
http://www.ruby-...
.
1 Answer
Wes Gamble
1/30/2008 5:58:00 AM
0
Current solution is to simply fix the name of the variable. Whatever
problem this was causing resolved itself.
Wes
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
REXML (1.8.6 p111) Document.write fails - "undefined local"
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password