Click here to Skip to main content
16,006,475 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: transforming xml without a xslt file Pin
Tomas Petricek13-May-04 15:27
Tomas Petricek13-May-04 15:27 
GeneralRe: transforming xml without a xslt file Pin
Paul Wolfensberger15-May-04 3:01
Paul Wolfensberger15-May-04 3:01 
QuestionHow to use Amazon Web Services.. Pin
Sumit Kapoor11-May-04 2:49
Sumit Kapoor11-May-04 2:49 
AnswerRe: How to use Amazon Web Services.. Pin
Colin Angus Mackay11-May-04 2:59
Colin Angus Mackay11-May-04 2:59 
GeneralRe: How to use Amazon Web Services.. Pin
Paul Wolfensberger15-May-04 3:06
Paul Wolfensberger15-May-04 3:06 
GeneralRe: How to use Amazon Web Services.. Pin
Colin Angus Mackay15-May-04 4:47
Colin Angus Mackay15-May-04 4:47 
Generalproblem in generating html through xml Pin
junckjunck7-May-04 19:56
junckjunck7-May-04 19:56 
Generalsame scope, elements with the same name, but NOT the same type Pin
Michał Januszczyk7-May-04 6:50
sussMichał Januszczyk7-May-04 6:50 
Is it possible to define schema for the following element ? :

<processor>
<param>arial</param>
<param>3.5</param>
<param>50</param>
<param>95</param>
<param>some text</param>
</processor>


I want to enforce that exactly five 'param' elements can be specified, and I want
to enforce types for the elements (i.e. first element is xs:string, seconf xs:double,
... etc


I tried to create the following schema, but I get error when checking for validity


<xs:complexType name="processor_type">
<xs:sequence>
<xs:element name="param" type="xs:string"></xs:element>
<xs:element name="param" type="xs:double"></xs:element>
<xs:element name="param" type="xs:decimal"></xs:element>
<xs:element name="param" type="xs:decimal"></xs:element>
<xs:element name="param" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>



Error:
In the same scope, elements with the same name have to have the same type.


Is there any workaround for this, but without giving different names for current 'param'
elements

Thanks
Micha&#322; Januszczyk
QuestionHow to print an Organisation Chart (Tree Structure) Pin
BSRK6-May-04 23:51
BSRK6-May-04 23:51 
AnswerRe: How to print an Organisation Chart (Tree Structure) Pin
mauricexy7-May-04 3:43
mauricexy7-May-04 3:43 
GeneralRe: How to print an Organisation Chart (Tree Structure) Pin
Sameer Kulkarni26-Feb-09 23:27
Sameer Kulkarni26-Feb-09 23:27 
QuestionXSL newbie ? Pin
compbssn20035-May-04 7:48
compbssn20035-May-04 7:48 
GeneralSimple question Pin
bertcox5-May-04 3:17
bertcox5-May-04 3:17 
GeneralRe: Simple question Pin
Philip Fitzsimons7-May-04 3:06
Philip Fitzsimons7-May-04 3:06 
GeneralEMBEDDING SQL IN A VC++ DATABASE APPLICATION Pin
Wisdom20043-May-04 21:09
Wisdom20043-May-04 21:09 
GeneralACCESS A DATABASE USING MFC DIALOGUE BOXES Pin
Wisdom20043-May-04 21:03
Wisdom20043-May-04 21:03 
QuestionHow to use msxml4.dll in project? Pin
Anonymous3-May-04 7:12
Anonymous3-May-04 7:12 
AnswerRe: How to use msxml4.dll in project? Pin
Andrew Quinn AUS25-May-04 5:46
Andrew Quinn AUS25-May-04 5:46 
GeneralXSL Table view Pin
mauricexy3-May-04 4:21
mauricexy3-May-04 4:21 
GeneralRe: XSL Table view Pin
mauricexy4-May-04 3:52
mauricexy4-May-04 3:52 
Generalproblem with xslt! Pin
hassan azizi30-Apr-04 3:37
hassan azizi30-Apr-04 3:37 
Generalproblem with xslt! Pin
hassan azizi30-Apr-04 3:26
hassan azizi30-Apr-04 3:26 
GeneralNewbie XML/XSL question Pin
Anonymous29-Apr-04 16:15
Anonymous29-Apr-04 16:15 
GeneralRe: Newbie XML/XSL question Pin
Member 64272914-May-04 2:46
Member 64272914-May-04 2:46 
GeneralStoring XSLT files in SQL Server Pin
Member 116304929-Apr-04 12:29
Member 116304929-Apr-04 12:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.