struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitc...@telocity.com>
Subject RE: XML Include for validation.xml
Date Mon, 25 Nov 2002 14:29:55 GMT
At the same level, have you tried:
<!ENTITY c SYSTEM "validation-c.xml">
                   ^


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -----Original Message-----
> From: Andreas Langmann [mailto:andreas.langmann@isb-ag.de]
> Sent: Monday, November 25, 2002 6:05 AM
> To: Struts User Mailingliste
> Subject: XML Include for validation.xml
>
>
> Hello,
>
> i tried the following:
>
> **************************
> <?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
>
> <!DOCTYPE validation
> [
>    <!ENTITY a SYSTEM
> "file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
> validation-a.xml">
>    <!ENTITY b SYSTEM
> "file://C:/Programme/eclipse/workspace/appl/build/webapp/WEB-INF/validation/
> validation-b.xml">
>    <!ENTITY c SYSTEM "/WEB-INF/validation/validation-c.xml">
> ]>
>
> <form-validation>
>   <formset>
>     &a;
>
>     &b;
>
>     &c;
>   </formset>
> </form-validation>
> *********************
>
> and it works... but how can i use relative url's for the included files?
> This example loads validation-a, and validation-b, but not c...
>
> I dont want to use "http://127.0.0.1/...xml" because i dont want to give the
> xml files to public http access....
>
> The same problem in struts-config xml for including form-bean-definitions
> was no problem... it works fine, but here i got problems with missing dtd if
> i use the header from struts-examples...
>
> tia
>
> Andreas
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message