XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Michael ZellmannSubject: create j2ee deploymeny descriptors
Author: Michael Zellmann
Date: 10 Aug 2006 11:58 AM
I am trying to use Stylus Studio to cerate j2ee web.xml deployment desriptors. I can create ones that work, but they won't validate within Stylus Studio, and I don't seem to get the benefit of intelligent prompting on the choices at each step.

I start with this beginning to the document, copied form another source.

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

When I do try to validate, I get a FATAL ERROR, mentioning that the schemaLocation attribute does not contain pairs of values.

I must be doing something wrong and would appreciate any guidance.

Postnext
Minollo I.Subject: create j2ee deploymeny descriptors
Author: Minollo I.
Date: 10 Aug 2006 01:06 PM
As the error suggests, the schemaLocation attribute needs two parts: namespace URI and location of the schema that covers that namespace.

You can try:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

Posttop
Michael ZellmannSubject: create j2ee deploymeny descriptors
Author: Michael Zellmann
Date: 10 Aug 2006 02:35 PM
Perfect! Thank you.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.