Project

Profile

Help

Support #5255

closed

XPathException <fo:external-graphic allowed-width-scale="150% 50% 25%" />

Added by Dansker Dave almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-01-30
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Mike,

I promised a week ago on StackOverflow to report this.

I suspect it's an Apache FOP problem & it's also not the slightest bit important as I found how to position the Graphic Bottom-Right anyway.

But I did promise, so here you are, just in case...

The following yielded a net.sf.saxon.trans.XPathException:

<fo:block-container position="absolute" width="55mm">
	<fo:block text-align="right" max-height="15mm" font-size="0">
		<fo:external-graphic allowed-width-scale="150% 50% 25%" border-style="none" content-height="15mm" src="image/dark-logo.png"/>
	</fo:block>
</fo:block-container>

Stacktrace enclosed.

All the best,
Dave


Files

SaxonXPathException.txt (4.47 KB) SaxonXPathException.txt Stacktrace Dansker Dave, 2022-01-30 18:18
Actions #1

Updated by Michael Kay almost 3 years ago

Saxon is merely the messenger here, passing on the bad news from FOP.

I'm afraid we're not experts in XSL-FO or FOP, so I've no idea why it considers this attribute to be invalid.

Actions #2

Updated by Johan Gheys almost 3 years ago

allowed-height-scale and allowed-width-scale are not supported by Apache FOP (see https://xmlgraphics.apache.org/fop/compliance.html)

Actions #3

Updated by Michael Kay almost 3 years ago

  • Status changed from New to Closed

Thanks. So it's a FOP restriction, reported via Saxon.

Closing.

Please register to edit this issue

Also available in: Atom PDF