Subjects
Home
Xalan extension functions
Fomatting question serializing DOM with pretty print
xalan with pull parser
Cannot find the declaration
Apache Xalan drop support to run on JRE 1 1 x
Why does Doctype change processing of a document
Node set to XML string via Java extensions in Xalan J: possible?
Templates/Transformers + thread safety???
Problem evaluating xpath with muliple prefix with different namespace
remove an arbitrary attribute from xsl output
Xalan3 XSLT 2 0 XPath 2 0 support?
Problem using compiled translets with Xalan !!
Xalan and jstl 1 1 problem with transform tag
NullPointer in DOM2DTM getLocalName
URIResolvers base parameter with xsltc and cascaded imports
Performance problem for Xalan J on intel dual core
Standard libraries in JAXP?
Serializing a DOM tree to XML file, customize entities replacement
Library Conflict Involving BCEL Library
A question on how users are using <xsl:message >
Kevin Cormier as a new Apache Xalan J committer
Struggling to iterate over tokenized string
Xalan count() trouble
Problem with recursive xpath
Error when switching to java 1 5
document( ' ')
Problem with Xalan2 7 0 transformation
cr/lf options
entity encoded XML
can xalan transform 2 xml using one xslt?
Xalan J JIRA defect review Monday October 16, 2006 from 2:00 to 3:30 pm ED
xsl transform with cdata section elements
xslt parameters not expanded
Weird behavior of XPath evaluate()
How to avoid <xsl:message > instruction prints stylesheet file informations ?
Cannot find SimpleTransform subdirectory after installing Xalan J
recover from document not found exceptions
jdk1 5 and Xalan jar differences?
Performance Issue
Error/Bug adding floating point numbers
XPathAPI: eval exp using nodes with default namespace
modifying xalan to output invalid XML
NullPointerException
mege two separate xml nodes into one
Is this a XALAN document identification bug?
is StylesheetRoot really java io Serializable ?
transform() fails for DOMSource but succeeds for StreamSource
Thoughts on Transformer parameter passing
HELP, Xalan and jstl 1 1 problem with transformer
Problem with XPath namespace axis?
string utils:replace deleting search string if replacement string is an HTML
help with enumeration values pls
xalan 2 5 1 vs 2 7 performance question
How to insert/update in XML document
HTML Serialization and Handling of Ampersands in HREF Attributes
XHTML link tag stripping
SystemId Unknown; Line #24; Column #49; java lang NullPointerException
xpath text() help
Apostrophe problem with xalan 2 7 0
How to set variables in XML document?
Links
Home
Oracle database error code ...
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
modifying xalan to output invalid XML

modifying xalan to output invalid XML

2007-05-21       - By Will Holcomb
Reply:     1     2     3  

On 5/21/07, keshlam@(protected) <keshlam@(protected)> wrote:
>
> First advice: DON'T output badly-formed documents. Set output mode to HTML
> (since that seems to be what you want to produce) and see if that gets you
> close enough. Then fix or replace whatever downsteam tool isn't accepting
> them.
>
I'm mostly wanting it for generating custom SVGs I wish that I could somehow
fix the broken downstream tool, but adding a new input format to the php
engine would take quite a bit of time if I could get them to agree to it in
the first place.

The actual purpose in using this preprocessor is I want to be able to do
automated verification and transformation of my documents before they turn
into php, since php requires writing invalid documents in certain
situations.

> If you can't take that advice:
>
> 1) Have Xalan output SAX, and plug its output into your own
> SAX-to-appropriately-broken-HTML serializer.
>
I don't think I can really do this, can I? I would get the startElement
event and then the processingInstruction event, but I couldn't distinguish
between:

<auth name="<?php print $test ?>" />

and

<auth name=""><?php print $test ?></auth>

> 2) Generate well-formed documents, then run some kind of text-based
> postprocessor that patches whatever the broken tool is unwilling ot accept.
>
I suppose this is what I need to do. I dislike php forces such a kludge, but
it has far and away the best install base at this point, so I really need to
generate it.

Thank you for your replies. It saved me several hours of wandering
confusedly through code trying to figure out what to do.

Will

On 5/21/07, <b class="gmail_sendername"><a href="mailto:keshlam@(protected)"
>keshlam@(protected)</a></b> &lt;<a href="mailto:keshlam@(protected)">keshlam@(protected)
.ibm.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class=
"gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt
0pt 0.8ex; padding-left: 1ex;">
<div>
<p>First advice: DON&#39;T output badly-formed documents. Set output mode to
HTML (since that seems to be what you want to produce) and see if that gets you
close enough.  Then fix or replace whatever downsteam tool isn&#39;t accepting
them.
</p></div></blockquote>I&#39;m mostly wanting it for generating custom SVGs I
wish that I could somehow fix the broken downstream tool, but adding a new
input format to the php engine would take quite a bit of time if I could get
them to agree to it in the first place.
<br><br>The actual purpose in using this preprocessor is I want to be able to
do automated verification and transformation of my documents before they turn
into php, since php requires writing invalid documents in certain situations.
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204,
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><p>
If you can&#39;t take that advice:<br>
<br>
1) Have Xalan output SAX, and plug its output into your own SAX-to
-appropriately-broken-HTML serializer.</p></div></blockquote><div>I don&#39;t
think I can really do this, can I? I would get the startElement event and then
the processingInstruction event, but I couldn&#39;t distinguish between:
<br><br>&nbsp;&lt;auth name=&quot;&lt;?php print $test ?&gt;&quot; /&gt;<br><br
>and<br><br>&lt;auth name=&quot;&quot;&gt;&lt;?php print $test ?&gt;&lt;/auth&gt
;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204
, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><p>2) Generate well-formed documents, then run some kind of text-based
postprocessor that patches whatever the broken tool is unwilling ot accept.</p>
</div></blockquote><div>I suppose this is what I need to do. I dislike php
forces such a kludge, but it has far and away the best install base at this
point, so I really need to generate it.
<br><br>Thank you for your replies. It saved me several hours of wandering
confusedly through code trying to figure out what to do.<br><br>Will</div></div
>