You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Mitch Christensen <mi...@centegy.com> on 2000/07/27 21:15:52 UTC

-VALIDATE

Hi,

Forgive me if this is inappropriate for this mailing list, but I have a
pressing question, and I can't find the answer in any of the
documentation, and the archive server is "experiencing disk problems".

I am processing an xml document with and xsl stylesheet which generates
XHTML.  I want to validate the source document so I added the -VALIDATE
command line option.  The problem is that I get numerous validation
errors from the xsl script.  Is there any way to only validate the
source document, not the xsl script?

I've included my command line and the resultant HTML in case it helps.

Any help would be greatly appreciated.

Thanks,
Mitch Christensen



----- samples below -----


----- command line...
d:\>java org.apache.xalan.xslt.Process -VALIDATE -IN Document.xml -XSL
Requirements.xsl > Requirements.html
java org.apache.xalan.xslt.Process -VALIDATE -IN Document.xml -XSL
Requirements.xsl > Requirements.html
========= Parsing file:d:/Program Files/Rational/Rose/Requirements.xsl
==========
Parse of file:d:/Program Files/Rational/Rose/Requirements.xsl took 2474
milliseconds
========= Parsing Document.xml ==========
Parse of Document.xml took 330 milliseconds
=============================
Transforming...
transform took 611 milliseconds
XSLProcessor: done

d:\>


----- result...
Parser error: The content of element type "body" must match
"(p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquote|address|fieldset|table|form|ins|del|script|noscript)*".
Parser error: Element
type "P" must be declared. Parser error: The content of element type
"dl" must match "(dt|dd)+". Parser error: The content of
element type "dl" must match "(dt|dd)+". Parser error: The content of
element type "xsl:template" must match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body|xsl:param)*".

Parser error: The content of element type "p" must match
"(#PCDATA|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "dl" must match "(dt|dd)+".
Parser error: The content of element type "xsl:template"
must match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body|xsl:param)*".

Parser error: The content of element type "b" must match
"(#PCDATA|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "li" must match
"(#PCDATA|p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquote|address|fieldset|table|form|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "dd" must match
"(#PCDATA|p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquote|address|fieldset|table|form|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "ul" must match "(li)+".
Parser error: The content of element type "xsl:template" must
match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body|xsl:param)*".

Parser error: The content of element type "li" must match
"(#PCDATA|p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquote|address|fieldset|table|form|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "xsl:for-each" must match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body|xsl:sort)*".

Parser error: The content of element type "ul" must match "(li)+".
Parser error: The content of element type "p" must match
"(#PCDATA|a|br|span|bdo|object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|noscript)*".

Parser error: The content of element type "xsl:if" must match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body)*".

Parser error: The content of element type "xsl:template" must match
"(#PCDATA|xsl:apply-templates|xsl:call-template|xsl:apply-imports|xsl:for-each|xsl:value-of|xsl:copy-of|xsl:number|xsl:choose|xsl:if|xsl:text|xsl:copy|xsl:variable|xsl:message|xsl:fallback|xsl:processing-instruction|xsl:comment|xsl:element|xsl:attribute|html|head|body|xsl:param)*".

                    Centegy Integration Framework

                             Requirments Documentation



Use Case View

Business Logic Agent

Host Adapter Interaction

Host Event Processing


Missing characters on Redirect

Posted by Mitch Christensen <mi...@centegy.com>.
Hi,

I'm using Xalan as a servlet to process an XSLT script which writes
multiple files to disk using the Redirect extension.  Whenever I run the
script from the command line, everything is fine.  When I incorporate it
into a Servlet, and execute it from a URL, the first two characters from
the first output file are messed up. (wierd, I know!)

The first output file is a large HTML file, the subsequent ones (which
output fine) are smaller ones.  When you look at the first generated
file you see a newline followed by 'tml>' on a line by intself followed
by the rest of the document intact.  Obviously, this should just be
<html> (no preceeding newline).

I am using Xalan-j 1.2.D01 with JDK 1.3.

Any suggestions?

Thanks,
Mitch