[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Fwd: xep namespace problem
This got no response on the XEP mailing list. I have some additional info to add to the forwarded message (below). If the xmlns="http://www.w3.org/1998/Math/MathML" attribute is manually removed from the inline SVG in my fo file, XEP stops complaining and the document renders properly. I tried to automatically remove the attribute by adding xmlns:mml="http://www.w3.org/1998/Math/MathML" exclude-result-prefixes="mml" attributes to the xsl:stylesheet root element in the adjustbase.xsl stylesheet that comes with SVGMath, which is run after transforming MathML to SVG so that it can baseline adjust the fo:instream-foreign-object. I believe the xmlns="http://www.w3.org/1998/Math/MathML" comes from SVGMath's Python script, not from adjustbase.xsl, the original version of which I have mirrored for your reference: http://test.chris.chiasson.name/.xep/adjustbase.xsl (keep in mind that Firefox doesn't display the attributes of the root node unless you View Source) How can I get rid of this attribute? Thanks. ---------- Forwarded message ---------- From: Chris Chiasson <chris@chiasson.name> Date: Jan 26, 2007 11:48 AM Subject: xep namespace problem To: xep-support@renderx.com After much teeth gnashing, I have isolated a problem with rendering pdfs in XEP Version 4.9 build 20070115 January 15th, 2007 down to this simple (modified) fo file: http://test.chris.chiasson.name/.xep/Untitled2.fo The snipped output of XEP is included at the end of this email. Notice the namespaces complaint: [xep] [Fatal Error] .data:3:116: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly. Since the document processes without errors when the inline foreign object is removed, I assume XEP is complaining about one of the attributes in: <svg:svg xmlns="http://www.w3.org/1998/Math/MathML" xmlns:svg="http://www.w3.org/2000/svg" xmlns:svgmath="http://www.grigoriev.ru/svgmath" height="14.611157pt" width="56.023438pt" viewBox="0 -11.192212 56.023438 14.611157"> Is that a legitimate complaint? XEP output: [xep] (document [xep] [system-id file:/C:/Documents and Settings/Chris/My Documents/workspace/engineering-optimization/EngineeringOptimization/Documentation/build/Engineering_Optimization/Engineering_Optimization.fo] [xep] (validate [xep] [validation OK] [xep] ) [xep] (compile [xep] (masters [xep] (sequence-master [xep] [master-name first] [xep] ) [xep] ) [xep] (sequence [xep] [master-reference first] [xep] (flow [xep] [flow-name xsl-region-body] [xep] [Fatal Error] .data:3:116: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly. [xep] [error] Failed to create image data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KCiAgICAgICAg [xep] ICAgICAgICAgICAgICAgICAgICA8c3ZnOnN2ZyB4bWxuczpzdmc9Imh0dHA6Ly93 <more lines of base 64 output snipped/> [xep] ICAgICAgICAg of type image/svg+xml [xep] [error] com.renderx.graphics.ImageFormatException: org.xml.sax.SAXParseException: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly. [xep] ) [xep] ) [xep] ) [xep] (format [xep] (sequence [xep] [master-reference first] [xep] (flow [xep] [1] [xep] [2] [xep] [3] [xep] [4] [xep] [5] [xep] [6] [xep] [7] [xep] ) [xep] (static-content [xep] [1] [xep] [2] [xep] [3] [xep] [4] [xep] [5] [xep] ) [xep] ) [xep] ) [xep] (generate [xep] [output-format pdf] [xep] [1] [xep] [2] [xep] [3] [xep] [4] [xep] [5] [xep] ) [xep] ) -- http://chris.chiasson.name/ -- http://chris.chiasson.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]