You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org> on 2010/01/24 13:48:17 UTC

[jira] Created: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
----------------------------------------------------------------------

                 Key: XERCESJ-1414
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
             Project: Xerces2-J
          Issue Type: New Feature
          Components: Samples
    Affects Versions: 2.10.0
            Reporter: Mukul Gandhi
            Assignee: Mukul Gandhi
             Fix For: 2.10.0


The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.

I'll be committing the changes for this shortly.

If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.

Kindly review this change, and let me know if anything is wrong.

Regards,
Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1414.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0

Resolving again now that the changes are in SVN.

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mukul Gandhi resolved XERCESJ-1414.
-----------------------------------

    Resolution: Fixed

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.10.0
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804896#action_12804896 ] 

Michael Glavassevich commented on XERCESJ-1414:
-----------------------------------------------

Hi Mukul,

I noticed in the most recent commit a dependency to org.apache.xerces.impl.Constants was introduced. Many users learn correct usage of the JAXP API from these samples. We certainly don't want them to start forming bad habits of relying on Xerces' internals and have been careful to keep these samples such that they can always compile with the JAXP API alone. I fixed this by inlining the value of the constant into the sample.

Otherwise the changes looked good.

Thanks.

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804361#action_12804361 ] 

Mukul Gandhi commented on XERCESJ-1414:
---------------------------------------

Hi Michael,
   When I given an option -l http://www.w3.org/2001/XMLSchema/v1.1 to jaxp.SourceValidator, I get an error message, "illegal argument".

It seems this URL is correct, for XSD 1.1. But we do not set the Schema factory, for XSD 1.1. Which I was doing with, System.setProperty().

Is using the new commons library the right way to solve this?

I leave the solution for this to you. If you want me to do something, please let me know.

Regards,
Mukul

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1414:
------------------------------------------

    Fix Version/s:     (was: 2.10.0)

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Reopened: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mukul Gandhi reopened XERCESJ-1414:
-----------------------------------


reopening the issue, after comments from Michael Glavassevich. reverting the changes back to SVN.

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804365#action_12804365 ] 

Michael Glavassevich commented on XERCESJ-1414:
-----------------------------------------------

Works for me. Turning on -Djaxp.debug=true I see:

JAXP: using thread context class loader (sun.misc.Launcher$AppClassLoader@581fc83a) for search
JAXP: Looking up system property 'javax.xml.validation.SchemaFactory:http://www.w3.org/XML/XMLSchema/v1.1'
JAXP: The property is undefined.
JAXP: found null in $java.home/jaxp.properties
JAXP: no META-INF/services/javax.xml.validation.SchemaFactory file was found
JAXP: attempting to use the platform default XML Schema 1.1 validator
JAXP: instanciating org.apache.xerces.jaxp.validation.XMLSchema11Factory
JAXP: loaded it from file:/D:/eclipse3.4.1/workspace/xerces-java-xml-schema-1.1-dev/bin/org/apache/xerces/jaxp/validation/XMLSchema11Factory.class
JAXP: factory 'org.apache.xerces.jaxp.validation.XMLSchema11Factory' was found for http://www.w3.org/XML/XMLSchema/v1.1

Try putting xml-apis.jar in the endorsed directory of your JDK.

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1414:
------------------------------------------

    Affects Version/s:     (was: 2.10.0)
                       2.9.1

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804271#action_12804271 ] 

Michael Glavassevich commented on XERCESJ-1414:
-----------------------------------------------

FYI: There was already a way for someone to specify this (i.e. -l http://www.w3.org/2001/XMLSchema/v1.1) before. Having a short name flag is convenient but we shouldn't be calling System.setProperty(). It interferes with the user's command line settings.

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804236#action_12804236 ] 

Mukul Gandhi commented on XERCESJ-1414:
---------------------------------------

just committed the change for this.

Regards,
Mukul

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.10.0
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>             Fix For: 2.10.0
>
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1414) Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language

Posted by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804876#action_12804876 ] 

Mukul Gandhi commented on XERCESJ-1414:
---------------------------------------

Hi Michael,
   The option -l http://www.w3.org/XML/XMLSchema/v1.1 now works for me, and it does XSD 1.1 validation fine. Thanks for the answers.

But I just did a commit, by adding -xsd11 option to this sample to serve as an alias, to option -l. As you wrote earlier, that this would be convenient to users. Now I've removed, System.setProperty() which you rightly pointed, that it's not needed. 

Could you kindly look at the committed change, that it's ok, and if any change is still needed.

Regards,
Mukul

> Enhancing the jaxp.SourceValidator sample, to support XSD 1.1 language
> ----------------------------------------------------------------------
>
>                 Key: XERCESJ-1414
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1414
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: Samples
>    Affects Versions: 2.9.1
>            Reporter: Mukul Gandhi
>            Assignee: Mukul Gandhi
>
> The jaxp.SourceValidator sample, currently doesn't support XSD 1.1 validation. I'm providing an enhancement for this.
> I'll be committing the changes for this shortly.
> If an option, -xsd11 is provided to this sample, Xerces validates the input document in XSD 1.1 mode. Otherwise, the XML document is validated in XSD 1.0 mode.
> Kindly review this change, and let me know if anything is wrong.
> Regards,
> Mukul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org