You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2003/06/03 17:42:35 UTC

DO NOT REPLY [Bug 20453] New: - FOP ends with error when xsl:include tag used in xsl

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20453>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20453

FOP ends with error when xsl:include tag used in xsl

           Summary: FOP ends with error when xsl:include tag used in xsl
           Product: Fop
           Version: 0.20.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: pdf renderer
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: petr.marek@sybase.cz


When I put <xsl:include href="testinclude.xsl"> tag in xsl stylesheet, fop ends 
with following error:

[INFO] FOP 0.20.4
[ERROR] null

Fop is used from command prompt:
fop  -xml test.xml -xsl test.xsl -pdf test.pdf

I can send complete examples of test.xsd, if needed.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:nsdc="http://www.rtf2fo.com/NSDC" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template 
match="nsdc:data">
<fo:root>
....
</fo:root>
</xsl:template>
<xsl:include href="testempty.xsl">
</xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: DO NOT REPLY [Bug 20453] New: - FOP ends with error when xsl:include tag used in xsl

Posted by Clay Leeds <cl...@medata.com>.
Jeremias,

Thanks for the note! I'll POST it... BTW...

On 6/3/2003 9:09 AM, Jeremias Maerki wrote:
> BTW, it's funny. I also wondered if the xsl:include shouldn't be
> top-level. But after I made his text.xsl well-formed (!) the FO got
> generated just fine on my machine. Strange.

I'm guessing, that it was "well-formed" however, it probably did not 
"validate"... at least not if he used a DTD or "proper"(?) SCHEMA which 
had "xsl:include" in the proper place (at the top level of xsl:stylseheet).

[OT] This type of well-formed-ness/valid issue bit me in the rear, as I 
was under the impression Internet Explorer validated XML files if a DTD 
were attached. It does *not* (one beta version of 5--or was it 
5.5?--did, but they ended up shipping versions of IE 5+ checking only 
for well-formedness). I ended up getting our programmers (who write the 
code which output the XML which I apply XSL-FO stylesheets to generate 
PDF & print, etc.) to install XMLValidator on their Windows boxen:

http://www.uni-giessen.de/club/misc/xmlvalid101/xmlvalid.html

I could've had them use xalan or some other JAVA tool, but opted for 
this tool as an alternative to my Windows running brethren...
-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: DO NOT REPLY [Bug 20453] New: - FOP ends with error when xsl:include tag used in xsl

Posted by Jeremias Maerki <de...@greenmail.ch>.
Clay,

you need to consider that this guy may not see your answer if he isn't
subscribed to fop-dev. You need post answers in bugzilla which will
automatically send a natification to the reporter.

BTW, it's funny. I also wondered if the xsl:include shouldn't be
top-level. But after I made his text.xsl well-formed (!) the FO got
generated just fine on my machine. Strange.

On 03.06.2003 18:02:11 Clay Leeds wrote:
<snip/>

> Actually, I believe (respectfully) that the bug is in your XSL. First of 
> all, the xsl:include tag is not closed (although that may be just a 
> typo). 2ndly, according to everywhere I've read, (XML Bible, the XSL 
> spec, etc.):
> 
>    The xsl:include element is only allowed as a top-level element.

<snip/>


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: DO NOT REPLY [Bug 20453] New: - FOP ends with error when xsl:include tag used in xsl

Posted by Clay Leeds <cl...@medata.com>.
Howdy!

On 6/3/2003 8:42 AM, bugzilla@apache.org wrote:
> [INFO] FOP 0.20.4
> [ERROR] null

[..]

> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" 
> xmlns:nsdc="http://www.rtf2fo.com/NSDC" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template 
> match="nsdc:data">
> <fo:root>
> ....
> </fo:root>
> </xsl:template>
> <xsl:include href="testempty.xsl">
> </xsl:stylesheet>

Actually, I believe (respectfully) that the bug is in your XSL. First of 
all, the xsl:include tag is not closed (although that may be just a 
typo). 2ndly, according to everywhere I've read, (XML Bible, the XSL 
spec, etc.):

   The xsl:include element is only allowed as a top-level element.

That means it should be something like this:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:nsdc="http://www.rtf2fo.com/NSDC" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="testempty.xsl"/>
<xsl:template  match="nsdc:data">
<fo:root>
....
</fo:root>
</xsl:template>
</xsl:stylesheet>

Hope this helps!

Web Maestro Clay
-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org