Click here to Skip to main content
15,891,749 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Numbering in XSLT Pin
led mike10-Jun-08 9:43
led mike10-Jun-08 9:43 
AnswerRe: [Message Deleted] Pin
led mike11-Jun-08 4:50
led mike11-Jun-08 4:50 
QuestionCreate multiple pages Pin
Nishad S10-Jun-08 1:00
Nishad S10-Jun-08 1:00 
AnswerRe: Create multiple pages Pin
led mike10-Jun-08 5:08
led mike10-Jun-08 5:08 
GeneralRe: Create multiple pages Pin
Nishad S10-Jun-08 18:32
Nishad S10-Jun-08 18:32 
GeneralRe: Create multiple pages Pin
led mike11-Jun-08 4:51
led mike11-Jun-08 4:51 
GeneralRe: Create multiple pages Pin
Nishad S11-Jun-08 18:20
Nishad S11-Jun-08 18:20 
QuestionValidation of unknown subclass [modified] Pin
hase24078-Jun-08 22:46
hase24078-Jun-08 22:46 
Hi,

I have a problem with validation a list of different subclasses. The are all derived from one base class(ElementBase).
I want to make the schema future-proof by adding a placeholder.

Here a short example
< xs:element name="Elements">
 < xs:complextype>
  < xs:choice minoccurs="0" maxoccurs="unbounded">
   < xs:element name="BaseElement" type="ElementBase" />
   < xs:element name="Sphere" type="ElementSphere" />
   < xs:element name="Cone" type="ElementCone" />
   < xs:element name="Cylinder" type="ElementCylinder" />
    HERE I need a placeholder
  < /xs:choice>         
 < /xs:complextype>
< /xs:element>


My idea was to make another complex type with an any Parameter like followed.
< xs:complextype name="FurtherElements">
    < xs:complexcontent>
      < xs:extension base="ElementBase">
        < xs:sequence>
          < xs:any minoccurs="0" maxoccurs="unbounded" />
        < /xs:sequence>
      < /xs:extension>
    < /xs:complexcontent>
  < /xs:complextype>


But how do I put this into the choise statement? I still don't know the name of the future elements (but xs:element needs one: < xs:element name="" type ="FurtherElements"/>). Is there any workaround to solve this problem?

Thanks a lot

modified on Monday, June 9, 2008 4:53 AM

QuestionXML and old ASP(not ASP.NET) Pin
LeilaBayat7-Jun-08 23:22
LeilaBayat7-Jun-08 23:22 
QuestionBest practices for programmatically creating XML storage files Pin
jesarg6-Jun-08 9:43
jesarg6-Jun-08 9:43 
AnswerRe: Best practices for programmatically creating XML storage files Pin
PIEBALDconsult6-Jun-08 10:29
mvePIEBALDconsult6-Jun-08 10:29 
AnswerRe: Best practices for programmatically creating XML storage files Pin
led mike10-Jun-08 4:57
led mike10-Jun-08 4:57 
QuestionCreate custom schema for xml Pin
CandyMe5-Jun-08 0:35
CandyMe5-Jun-08 0:35 
AnswerRe: Create custom schema for xml Pin
led mike6-Jun-08 4:38
led mike6-Jun-08 4:38 
Questionxsl:for-each question Pin
Dewald4-Jun-08 3:59
Dewald4-Jun-08 3:59 
AnswerRe: xsl:for-each question Pin
George L. Jackson4-Jun-08 15:35
George L. Jackson4-Jun-08 15:35 
GeneralRe: xsl:for-each question Pin
Dewald4-Jun-08 21:32
Dewald4-Jun-08 21:32 
QuestionXSD:PATTERN question Pin
Andy H3-Jun-08 22:49
Andy H3-Jun-08 22:49 
QuestionGenerating XML Schema of SQL Server 2005 Database Pin
Rocky#2-Jun-08 18:51
Rocky#2-Jun-08 18:51 
AnswerRe: Generating XML Schema of SQL Server 2005 Database Pin
led mike3-Jun-08 5:12
led mike3-Jun-08 5:12 
GeneralRe: Generating XML Schema of SQL Server 2005 Database Pin
Rocky#3-Jun-08 5:17
Rocky#3-Jun-08 5:17 
QuestionHow to convert c++ classes into xsd format Pin
cutecutemouse1-Jun-08 22:48
cutecutemouse1-Jun-08 22:48 
QuestionSpecial character for the enum type in DTD Schema Pin
Nacho Chip30-May-08 16:33
Nacho Chip30-May-08 16:33 
QuestionTrouble with VB.NET and XPath Pin
Dominick Marciano29-May-08 6:52
professionalDominick Marciano29-May-08 6:52 
AnswerRe: Trouble with VB.NET and XPath Pin
George L. Jackson1-Jun-08 15:45
George L. Jackson1-Jun-08 15:45 

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.