Phil Jarvis
Usenet Archive
- Joined
- Apr 2, 2004
- Messages
- 6
- Reaction score
- 0
I have an XML Schema with regular expressions.
e.g. <xsd
attern value="[a-zA-Z]{1}[a-zA-Z0-9._=+-]*"/>
I have other patterns in the same schema document which share regular expression substructure, like the string "[a-zA-Z0-9._=+-]"
I'd like to do something like:
<!ENTITY substring_pattern "[a-zA-Z0-9._=+-]">
And revise my xml schema to look like:
<xsd
attern value="[a-zA-Z]{1}&substring_pattern;*"/>
I can't figure out how to generate a reusable literal that can be embedded in attribute values within an XML schema document.
<!ENTITY> isn't valid xml in an XML schema, at least not as far as my tests have shown in attempting to validate with a schema using such declarations.
HELP!
Signed,
cut-and-pasting-for-now-but-tired-of-it
e.g. <xsd
I have other patterns in the same schema document which share regular expression substructure, like the string "[a-zA-Z0-9._=+-]"
I'd like to do something like:
<!ENTITY substring_pattern "[a-zA-Z0-9._=+-]">
And revise my xml schema to look like:
<xsd
I can't figure out how to generate a reusable literal that can be embedded in attribute values within an XML schema document.
<!ENTITY> isn't valid xml in an XML schema, at least not as far as my tests have shown in attempting to validate with a schema using such declarations.
HELP!
Signed,
cut-and-pasting-for-now-but-tired-of-it