#1 Creating XML Schema jspx.xsd

closed-accepted
None
7
2008-12-26
2008-12-23
amr eladawy
No

In order to improve the productivity of developing with JSPX, we need to add XML Schema jspx.xsd file. and any development of the JSPX pages may import this schema to help IDEs such as eclipse to afford intellisense.

Discussion

  • Mohamed Marzouk

    Mohamed Marzouk - 2008-12-23

    The main feature of using a schema is enabling the IDE's (specially
    Eclipse) to offer intellisense.

    In order to enjoy this feature, please do the following:

    1 - add the following two attributes into the page root element

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jspx-bay.sourceforge.net/jspx.xsd"

    example:

    --------------------------------------------------------------------------------------------------------------------------------------------
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jspx-bay.sourceforge.net/jspx.xsd">
    </page>
    --------------------------------------------------------------------------------------------------------------------------------------------

    2- Open the page as an XML document.

     
  • Mohamed Marzouk

    Mohamed Marzouk - 2008-12-23
    • status: open --> closed
     
  • amr eladawy

    amr eladawy - 2008-12-26
    • status: closed --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks