You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Tracey Zellmann <tr...@comcast.net> on 2006/02/15 22:50:26 UTC

porblem running new fop-0.91

Now that I have fixed the problem with my classpath, I am tryign to run some examples that worked on the older fop-0.20.5 but don't seem to succeed when using the new version.

Specifically, I have an example tha comes with StyluStudio thate creates a catalog with text pictures. Using the new fop, I get this error:
(Location of error unknown)org.apache.fop.fo.expr.PropertyException: Border and padding for region "xsl-region-before" must be '0' (See 6.4.13 in XSL 1.0).

I believe the specific area in the style sheet that the error is referring to is this:

<!-- Define the contents of the header. -->

<fo:static-content flow-name="xsl-region-before">

<fo:block font-size="8.0pt" font-family="serif" padding-after="2.0pt"

space-before="4.0pt" text-align="center"

border-bottom-style="solid" border-bottom-width="1.0pt">

<xsl:text>Stylus Studio Multimedia Catalog of Video and Computer Books</xsl:text>

</fo:block>

</fo:static-content>

Any help or advice would be appreciated. I have tried to make some changes to the attributes, but I haven't been successful.

Re: porblem running new fop-0.91

Posted by Tracey Zellmann <tr...@comcast.net>.
I was able to fix it. I actually had an extraneous "I" as the third 
command-line argument, followed by catalog.pdf. That was the source of the 
problem. Once I cleaned that up, it worked fine.

Thanks again. Sorry to bother you with these small problems. Your replies 
have been good prompts.

----- Original Message ----- 
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <fo...@xmlgraphics.apache.org>
Sent: Thursday, February 16, 2006 10:25 AM
Subject: Re: porblem running new fop-0.91


> How do you actually run FOP? From within Stylus Studio? From the
> command-line? From Java code? If you run FOP from the command-line FOP
> doesn't simply create arbitrary files or something like that. There you
> specify the filename and that's where FOP writes to. Shrug.
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: porblem running new fop-0.91

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
How do you actually run FOP? From within Stylus Studio? From the
command-line? From Java code? If you run FOP from the command-line FOP
doesn't simply create arbitrary files or something like that. There you
specify the filename and that's where FOP writes to. Shrug.

On 16.02.2006 15:39:02 Tracey Zellmann wrote:
> Thanks again. I am making progress. I also emailed StylueStudio. They had 
> also seen the problem and sent me a corrected version of the xsl file. Now I 
> can get the application to run through to the success message. However, here 
> is a small problem. Normally, when I run this with the older fop (0.20.5), 
> the generated Adobe document is about 208 K. It is a catalog of videos, with 
> formatted text and gif images of the video covers. However, when I run it 
> with the new fop, I get an 8 K Adobe document, which fails when I try to 
> open it. In the output folder, I do get an application file, named I - a 210 
> K file with no extension. If I open that with Adobe, I get the actual 
> document. Any ideas what I can do about this?
> 
> I am using this example to wring out my process and give me some ideas on 
> how to format my document.
> 
> I am developing an application that will take several in-line svg files and 
> a variety of text elements, all included in an xml document. I will develop 
> an xsl sheet to format this, and my customer will use it to generate a pdf 
> document, which will be mailed to their survey participants. Personally, if 
> the file really was successful, I could just rename it, but my user wont be 
> able to do that, and I ought to get it right.
> 
> 
> ----- Original Message ----- 
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <fo...@xmlgraphics.apache.org>
> Sent: Wednesday, February 15, 2006 5:13 PM
> Subject: Re: porblem running new fop-0.91
> 
> 
> > Actually, this message refers to the fo:region-before element in the
> > single-page-master. The specification dictates that border and/or padding
> > must not be specified on a region-before which seems to be the case in
> > your example. Either remove the offending properties or disable "strict
> > validation" [1][2] (-r on the command-line). In the latter case, you
> > will still receive a warning but not an exception anymore. Have fun.
> >
> > [1] http://xmlgraphics.apache.org/fop/0.91/embedding.html#config-internal
> > [2] 
> > http://xmlgraphics.apache.org/fop/0.91/configuration.html#general-elements
> >
> > On 15.02.2006 22:50:26 Tracey Zellmann wrote:
> >> Now that I have fixed the problem with my classpath, I am tryign to run 
> >> some examples that worked on the older fop-0.20.5 but don't seem to 
> >> succeed when using the new version.
> >>
> >> Specifically, I have an example tha comes with StyluStudio thate creates 
> >> a catalog with text pictures. Using the new fop, I get this error:
> >> (Location of error unknown)org.apache.fop.fo.expr.PropertyException: 
> >> Border and padding for region "xsl-region-before" must be '0' (See 6.4.13 
> >> in XSL 1.0).
> >>
> >> I believe the specific area in the style sheet that the error is 
> >> referring to is this:
> >>
> >> <!-- Define the contents of the header. -->
> >>
> >> <fo:static-content flow-name="xsl-region-before">
> >>
> >> <fo:block font-size="8.0pt" font-family="serif" padding-after="2.0pt"
> >>
> >> space-before="4.0pt" text-align="center"
> >>
> >> border-bottom-style="solid" border-bottom-width="1.0pt">
> >>
> >> <xsl:text>Stylus Studio Multimedia Catalog of Video and Computer 
> >> Books</xsl:text>
> >>
> >> </fo:block>
> >>
> >> </fo:static-content>
> >>
> >> Any help or advice would be appreciated. I have tried to make some 
> >> changes to the attributes, but I haven't been successful.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: porblem running new fop-0.91

Posted by Tracey Zellmann <tr...@comcast.net>.
Thanks again. I am making progress. I also emailed StylueStudio. They had 
also seen the problem and sent me a corrected version of the xsl file. Now I 
can get the application to run through to the success message. However, here 
is a small problem. Normally, when I run this with the older fop (0.20.5), 
the generated Adobe document is about 208 K. It is a catalog of videos, with 
formatted text and gif images of the video covers. However, when I run it 
with the new fop, I get an 8 K Adobe document, which fails when I try to 
open it. In the output folder, I do get an application file, named I - a 210 
K file with no extension. If I open that with Adobe, I get the actual 
document. Any ideas what I can do about this?

I am using this example to wring out my process and give me some ideas on 
how to format my document.

I am developing an application that will take several in-line svg files and 
a variety of text elements, all included in an xml document. I will develop 
an xsl sheet to format this, and my customer will use it to generate a pdf 
document, which will be mailed to their survey participants. Personally, if 
the file really was successful, I could just rename it, but my user wont be 
able to do that, and I ought to get it right.


----- Original Message ----- 
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, February 15, 2006 5:13 PM
Subject: Re: porblem running new fop-0.91


> Actually, this message refers to the fo:region-before element in the
> single-page-master. The specification dictates that border and/or padding
> must not be specified on a region-before which seems to be the case in
> your example. Either remove the offending properties or disable "strict
> validation" [1][2] (-r on the command-line). In the latter case, you
> will still receive a warning but not an exception anymore. Have fun.
>
> [1] http://xmlgraphics.apache.org/fop/0.91/embedding.html#config-internal
> [2] 
> http://xmlgraphics.apache.org/fop/0.91/configuration.html#general-elements
>
> On 15.02.2006 22:50:26 Tracey Zellmann wrote:
>> Now that I have fixed the problem with my classpath, I am tryign to run 
>> some examples that worked on the older fop-0.20.5 but don't seem to 
>> succeed when using the new version.
>>
>> Specifically, I have an example tha comes with StyluStudio thate creates 
>> a catalog with text pictures. Using the new fop, I get this error:
>> (Location of error unknown)org.apache.fop.fo.expr.PropertyException: 
>> Border and padding for region "xsl-region-before" must be '0' (See 6.4.13 
>> in XSL 1.0).
>>
>> I believe the specific area in the style sheet that the error is 
>> referring to is this:
>>
>> <!-- Define the contents of the header. -->
>>
>> <fo:static-content flow-name="xsl-region-before">
>>
>> <fo:block font-size="8.0pt" font-family="serif" padding-after="2.0pt"
>>
>> space-before="4.0pt" text-align="center"
>>
>> border-bottom-style="solid" border-bottom-width="1.0pt">
>>
>> <xsl:text>Stylus Studio Multimedia Catalog of Video and Computer 
>> Books</xsl:text>
>>
>> </fo:block>
>>
>> </fo:static-content>
>>
>> Any help or advice would be appreciated. I have tried to make some 
>> changes to the attributes, but I haven't been successful.
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: porblem running new fop-0.91

Posted by Glen Mazza <gm...@apache.org>.
Jeremias Maerki wrote:

> Actually, this message refers to the fo:region-before element in the
> single-page-master. The specification dictates that border and/or padding
> must not be specified on a region-before which seems to be the case in
> your example. 

Well, technically you can specify any property on any formatting object:

For 1.1, First sentence of chapter #5 here: 
http://www.w3.org/TR/xsl11/#refinement

For 1.0, Search on "Although every formatting property":
http://www.w3.org/TR/2001/REC-xsl-20011015/slice1.html#section-N639-Processing-a-Stylesheet

>>Specifically, I have an example tha comes with StyluStudio thate creates a catalog with text pictures. Using the new fop, I get this error:
>>(Location of error unknown)org.apache.fop.fo.expr.PropertyException: Border and padding for region "xsl-region-before" must be '0' (See 6.4.13 in XSL 1.0).
>>

The specification is unfortunately vague here by which "value" it is 
referring to that must be zero, but I would be inclined to think 6.4.13 
means the *computed value* or *actual value* must be zero, not the 
(user-)specified value.  If so, they would be welcome to put anything 
they want there.  Even the spec, in 5.1.2 "computed values", mentions 
properties being forced to be set to "0pt" regardless of the specified 
value.  Perhaps it would be better to just have this as a warning in 
both the strictly validating and relaxed validation versions.

http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#speccomact

Glen

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: porblem running new fop-0.91

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Actually, this message refers to the fo:region-before element in the
single-page-master. The specification dictates that border and/or padding
must not be specified on a region-before which seems to be the case in
your example. Either remove the offending properties or disable "strict
validation" [1][2] (-r on the command-line). In the latter case, you
will still receive a warning but not an exception anymore. Have fun.

[1] http://xmlgraphics.apache.org/fop/0.91/embedding.html#config-internal
[2] http://xmlgraphics.apache.org/fop/0.91/configuration.html#general-elements

On 15.02.2006 22:50:26 Tracey Zellmann wrote:
> Now that I have fixed the problem with my classpath, I am tryign to run some examples that worked on the older fop-0.20.5 but don't seem to succeed when using the new version.
> 
> Specifically, I have an example tha comes with StyluStudio thate creates a catalog with text pictures. Using the new fop, I get this error:
> (Location of error unknown)org.apache.fop.fo.expr.PropertyException: Border and padding for region "xsl-region-before" must be '0' (See 6.4.13 in XSL 1.0).
> 
> I believe the specific area in the style sheet that the error is referring to is this:
> 
> <!-- Define the contents of the header. -->
> 
> <fo:static-content flow-name="xsl-region-before">
> 
> <fo:block font-size="8.0pt" font-family="serif" padding-after="2.0pt"
> 
> space-before="4.0pt" text-align="center"
> 
> border-bottom-style="solid" border-bottom-width="1.0pt">
> 
> <xsl:text>Stylus Studio Multimedia Catalog of Video and Computer Books</xsl:text>
> 
> </fo:block>
> 
> </fo:static-content>
> 
> Any help or advice would be appreciated. I have tried to make some changes to the attributes, but I haven't been successful.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org