P
Phil Jarvis
I have an XML Schema with regular expressions.
e.g. <xsdattern 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:
<xsdattern 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. <xsdattern 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:
<xsdattern 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