You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andreas Langmann <an...@isb-ag.de> on 2002/11/25 12:04:48 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: XML Include for validation.xml
Posted by Andreas Langmann <an...@isb-ag.de>.
>At the same level, have you tried:
><!ENTITY c SYSTEM "validation-c.xml">
^
yes.... parser says something about relative uri not allowed without base
uri. think it's a bug in common-validation?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: XML Include for validation.xml
Posted by James Mitchell <jm...@telocity.com>.
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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>