diff options
author | Simon Pepping <spepping@apache.org> | 2006-01-12 20:40:08 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2006-01-12 20:40:08 +0000 |
commit | 35057a6f4b1faa330c5973bd7ea0608b844939f3 (patch) | |
tree | 682abeba6c08d93d7bb22c56d6cdfedd98dbe887 /test/fotree | |
parent | 5fca3a38d09389a5aeae503806d29ecfdd520673 (diff) | |
download | xmlgraphics-fop-35057a6f4b1faa330c5973bd7ea0608b844939f3.tar.gz xmlgraphics-fop-35057a6f4b1faa330c5973bd7ea0608b844939f3.zip |
Allow some xsl-function calls with omitted args, patch contributed by
Gerhard Oettl, bug 38098.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@368462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/fotree')
-rw-r--r-- | test/fotree/testcases/properties_omitted_propertyname.fo | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/test/fotree/testcases/properties_omitted_propertyname.fo b/test/fotree/testcases/properties_omitted_propertyname.fo new file mode 100644 index 000000000..3ded0a105 --- /dev/null +++ b/test/fotree/testcases/properties_omitted_propertyname.fo @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2006 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<!-- This test verifies the addition of the property name for which the + function is called to the parameter list of the function if the + last parameter is omitted. (Only for currently implemented functions). +--> +<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:test="http://xmlgraphics.apache.org/fop/test"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal"> + <fo:flow flow-name="xsl-region-body"> + <!-- system-font (not implemented) --> + <!-- inherited-property-value --> + <fo:block font-size="13pt"> + Top Level Block: font-size="13pt" background-color="#00ff00" + <fo:block font-size="inherited-property-value() + 3pt"> + <test:assert property="font-size" expected="16000mpt"/> + Nested Block: font-size="inherited-property-value() + 3pt" + (calculate with an inherited value) + </fo:block> + </fo:block> + <!-- from-parent --> + <fo:block font-size="24pt" background-color="#ff0000"> + Top Level Block: font-size="24pt" background-color="#ff0000" + <fo:block font-size="from-parent() + 2pt" + background-color="from-parent()"> + <test:assert property="font-size" expected="26000mpt"/> + <test:assert property="background-color" expected="#ff0000"/> + Nested Block: + font-size="from-parent() + 2pt"(inherited value and calculate) + background-color="from-parent()" (calculate with an inherited value) + </fo:block> + </fo:block> + <!-- from-nearest-specified-value --> + <fo:block background-color="#0000ff"> + Top Level Block: font-size="24pt" background-color="#0000ff" + <fo:block> + <test:assert property="background-color" expected="#000000"/> + Nested Block: background-color=default + <fo:block background-color="from-nearest-specified-value()"> + <test:assert property="background-color" expected="#0000ff"/> + Nested Block: background-color="from-nearest-specified-value()" + </fo:block> + </fo:block> + </fo:block> + <!-- from-table-column (not implemented) --> + <!-- merge-property-value (not implemented) --> + </fo:flow> + </fo:page-sequence> +</fo:root> + |