From: G. Ken Holman (gkholman@CraneSoftwrights.com)
Date: Thu Dec 19 2002 - 07:32:27 PST
Hello once again!
According to 2.2 "An element from the XSL namespace may have any attribute
not from the XSL namespace, provided that the expanded-name of the
attribute has a non-null namespace URI.".
The test below gives me an warning when I turn validate to false ... I
think the message is misleading because it doesn't include the full name of
the attribute, and I think the warning is misleading since foreign
attributes are allowed.
I hope this helps.
................. Ken
Y:\samp>type testns.fo
<?xml version="1.0" encoding="utf-8"?><!--raw.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
xmlns:junk="junk"
font-family="Times" font-size="20pt">
<layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="frame">
<flow flow-name="frame-body">
<block junk:abc="def">This is a test</block>
</flow>
</page-sequence>
</root>
Y:\samp>y:\xepsun\run testns.fo
[input testns.fo]
[output testns.pdf]
(document
(validate
{!file:/Y:/samp/testns.fo: line 17: [error] Attribute 'abc' cannot occur at
elem
ent 'block'. }
[validation total: 1 error])
{!Invalid XSL FO source 'file:/Y:/samp/testns.fo': 1 error(s) found}
-----
done
Y:\samp>
Y:\samp>y:\xepsun\runnv testns.fo
[input testns.fo]
[output testns.pdf]
(document
[system-id file:/Y:/samp/testns.fo]
(compile (masters (sequence-master [master-name frame]))
(sequence [master-reference frame](flow [flow-name frame-body]
{?Attribute ignored: illegal attribute name: abc}
)))
(format
(sequence [master-reference frame](flow [page-number 1])
(static-content [page-number 1])
))
(generate [output-format pdf][page-number 1]))
-----
done
Y:\samp>
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/m/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Next conference training: 2003-03-03,06 ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Thu Dec 19 2002 - 07:27:43 PST