Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT question

Status
Not open for further replies.

vladibo

Programmer
Sep 14, 2003
161
CA
How can I define in XSLT schema that one attribute is required and another is optional?

There is no "required" or "minOccurs" parameter here
Code:
<xs:attribute name="Name" type="xs:string" />
 
By default, attributes are optional. If you want to make one required, use the following syntax:
Code:
<xs:attribute name="Name" type="xs:string" use="required" />
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top