You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/03/12 16:41:50 UTC

DO NOT REPLY [Bug 52888] New: having a xsi:schemaLocation on fo:root throws a ValidationException

https://issues.apache.org/bugzilla/show_bug.cgi?id=52888

             Bug #: 52888
           Summary: having a xsi:schemaLocation on fo:root throws a
                    ValidationException
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: xdury@hotmail.com
    Classification: Unclassified


Hi, I'm developping a FOP extension and I would like to use a schema to
indicate which attributes/elements are optional/mandatory but as soon as I
specify a xsi:schemaLocation on my fo:root, I get the following exception:

org.apache.fop.fo.ValidationException: Invalid property encountered on
"fo:root": xsi:schemaLocation (See position 4:143)
    at
org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
    at
org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54)
    at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
    at $Proxy4.invalidProperty(Unknown Source)
    at
org.apache.fop.fo.PropertyList.handleInvalidProperty(PropertyList.java:470)
    at
org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:334)
    at org.apache.fop.fo.FObj.processNode(FObj.java:119)
    at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:282)
    at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)



[fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:my-extension="urn:fop-ext:my-extension"    
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:fop-ext:my-extension my-extension.xsd"]...[/fo:root]

Regards,

Xavier

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52888] having a xsi:schemaLocation on fo:root throws a ValidationException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52888

--- Comment #1 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:44:39 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52888] having a xsi:schemaLocation on fo:root throws a ValidationException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52888

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52888] having a xsi:schemaLocation on fo:root throws a ValidationException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52888

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-08 04:17:46 UTC ---
not a bug; if you want to ignore attributes with a specific namespace, then use
FopFactory.ignoreNamespace();

if you feel there should be another way to specify namespaces to ignore, e.g.,
by a configuration file or command line option, then file an enhancement bug
requesting the addition of such a feature;

even better, submit a patch that implements such a feature along with such an
enhancement request;

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 52888] having a xsi:schemaLocation on fo:root throws a ValidationException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52888

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #3 from Glenn Adams <ga...@apache.org> ---
batch transition resolved+invalid to closed+invalid

-- 
You are receiving this mail because:
You are the assignee for the bug.