[xep-support] Namespace issue?

From: G. Ken Holman (gkholman@CraneSoftwrights.com)
Date: Thu Dec 19 2002 - 07:32:27 PST

  • Next message: G. Ken Holman: "[xep-support] Indenting in table cells"

    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"
           font-family="Times" font-size="20pt">

         <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"/>

       <page-sequence master-reference="frame">
         <flow flow-name="frame-body">
           <block junk:abc="def">This is a test</block>
    Y:\samp>y:\xepsun\run testns.fo
    [input testns.fo]
    [output testns.pdf]
    {!file:/Y:/samp/testns.fo: line 17: [error] Attribute 'abc' cannot occur at
    ent 'block'. }
    [validation total: 1 error])

    {!Invalid XSL FO source 'file:/Y:/samp/testns.fo': 1 error(s) found}



    Y:\samp>y:\xepsun\runnv testns.fo
    [input testns.fo]
    [output testns.pdf]
    [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}
    (sequence [master-reference frame](flow [page-number 1])
    (static-content [page-number 1])
    (generate [output-format pdf][page-number 1]))



    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