Re: [xsl] XSD Question

Subject: Re: [xsl] XSD Question
From: Steve <subsume@xxxxxxxxx>
Date: Wed, 18 Apr 2007 15:00:27 -0400
Remind me not to type and toke.

-S

On 4/18/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
errr, Steve..., there is no template at all, it is (was) about XSD...

Steve wrote:
> Why don't you try simply doing an apply-template select="/" and see if
> you get output.
>
> My first guess would be that your templates aren't really matching
> anything.
>
> -S
>
> On 4/18/07, Hunt, James A (GE, Corporate, consultant)
> <james.a.hunt@xxxxxx> wrote:
>> Thanks Abel...I know this is not a XSD forum but I figured you guys
>> would easily be able to answer this question.
>>
>> Thanks again!
>>
>>
>> -----Original Message-----
>> From: Abel Braaksma [mailto:abel.online@xxxxxxxxx]
>> Sent: Wednesday, April 18, 2007 2:35 PM
>> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>> Subject: Re: [xsl] XSD Question
>>
>> Hunt, James A (GE, Corporate, consultant) wrote:
>> > Hi Everyone!
>> >
>> > Can you tell me how to make this field required using this XSD?
>> >
>>
>>   1. This is an XSLT list, I fail to see the connection....
>>   2. What does "this field" refer to?
>>
>> Nevertheless, here's a rough guide:
>>
>>  a) Making an element required in XSD can be done by *not* setting the
>> minOccurs attribute, or setting it to "1".
>>  b) Making an attribute required in an XSD is done by setting it's "use"
>>
>> attribute to "required". The default is optional.
>>
>> Cheers,
>> -- Abel
>> > <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?>
>> > <xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema";
>> > elementFormDefault=3D"qualified">
>> >       <xs:element name=3D"assignedto">
>> >               <xs:simpleType>
>> >                       <xs:restriction base=3D"xs:string"/>
>> >               </xs:simpleType>
>> >       </xs:element>
>> >       <xs:element name=3D"request">
>> >               <xs:complexType>
>> >                       <xs:choice maxOccurs=3D"unbounded">
>> >                               <xs:element ref=3D"assignedto"/>
>> >
>> >                       </xs:choice>
>> >               </xs:complexType>
>> >       </xs:element>
>> >       <xs:element name=3D"requests">
>> >               <xs:complexType>
>> >                       <xs:sequence>
>> >                               <xs:element ref=3D"request"
>> > maxOccurs=3D"unbounded"/>
>> >                       </xs:sequence>=09
>> >               </xs:complexType>
>> >       </xs:element>
>> > </xs:schema>
>> >
>> > Thanks!
>> > James

Current Thread