Click here to Skip to main content
15,921,837 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: confused Pin
Anonymous21-Jun-05 3:47
Anonymous21-Jun-05 3:47 
Questionhow to contract empty tag <col></col> to <col/> in XSLT Pin
Lyteck21-Jun-05 1:54
Lyteck21-Jun-05 1:54 
AnswerRe: how to contract empty tag <col></col> to <col/> in XSLT Pin
Javier Lozano22-Jun-05 11:48
Javier Lozano22-Jun-05 11:48 
GeneralRe: how to contract empty tag <col></col> to <col/> in XSLT Pin
Lyteck27-Jun-05 3:13
Lyteck27-Jun-05 3:13 
GeneralLoading custom control from XSLT Pin
randomnumber21-Jun-05 0:59
randomnumber21-Jun-05 0:59 
GeneralXSD Problem Pin
matt cole20-Jun-05 16:06
matt cole20-Jun-05 16:06 
GeneralXSD Problem Pin
Chetan Ranpariya13-Jul-05 22:29
Chetan Ranpariya13-Jul-05 22:29 
GeneralProblem creating working XSD with restrictions Pin
clatten20-Jun-05 1:42
clatten20-Jun-05 1:42 
I have a couple of xml files I'd like to create xsd schemas for. This is not so difficult but the problem is that the strcuture of the xml file (something I can't easily influence) is strange.

The files problem section look like this:


<applications>

<version>1.0</version>
<application name="Imager" custom="SlasHas AB">
<device Merge="Yes">
<section name="apsect dependency" default="false">
<key name="defaultImageType">.jpg</key>
<key name="imageHeight">128</key>
<key name="imageWidth">128</key>
<key name="imageColours">65536</key>
<key name="modelGroupName">X Model</key>
<key name="modelSeriesName">X</key>
<key name="modelNames">
<model>X1</model>
<model>7592597B-E087-4565-9BAC-596C096EBB2C</model>
<model>X2</model>
<model>523DC659-B6F8-4b38-8EEB-B19E7AC7F2E3</model></key>
<key name="aspectID">1:1</key>
<key name="transferMode">TCFILETRANSFER</key>
<key name="hidden">1</key>
<key name="defaultImageFolderName">\\</key>
</section>
</device>
</application>
</applications>

My problem is not that I can create a working schema. It is that I'd like to have restrictions on all key elements which I cannot figure out how to do since they are all of different types. For example
key name="defaultImageType" has a string as value and i'd like to have a restriction xs:enumeration value=".jpg | .bmp | .gif"
but I also want to have key name="imageHeight with type xs:positiveInteger and so on.

Is this possible, to have different types on elements with same name? Apparently the xml file works.
And if it is allowed how can I do the schema?

/Clatten
GeneralProblem Creating XML [SOLVED] Pin
Paolo Ponzano20-Jun-05 0:16
Paolo Ponzano20-Jun-05 0:16 
QuestionWhy do i allways get the same value? Pin
shapper18-Jun-05 12:57
shapper18-Jun-05 12:57 
QuestionIs this possible ? Pin
Wilbur J. Pereira18-Jun-05 0:38
Wilbur J. Pereira18-Jun-05 0:38 
GeneralXML As Database Pin
Gaurang Desai17-Jun-05 22:45
Gaurang Desai17-Jun-05 22:45 
GeneralRe: XML As Database Pin
Ahmed Galal22-Jun-05 12:57
Ahmed Galal22-Jun-05 12:57 
Generalsetting the parameter value based on condition Pin
D.Sridhar17-Jun-05 10:38
D.Sridhar17-Jun-05 10:38 
GeneralSuitability of XML Pin
Anonymous17-Jun-05 5:50
Anonymous17-Jun-05 5:50 
GeneralRe: Suitability of XML Pin
DavidNohejl17-Jun-05 5:58
DavidNohejl17-Jun-05 5:58 
QuestionHow to improve my code? Thank You. Pin
shapper17-Jun-05 5:31
shapper17-Jun-05 5:31 
Generalcreating nested comparison through the xml property Pin
Member 205376617-Jun-05 4:20
Member 205376617-Jun-05 4:20 
QuestionHow to format this date? Pin
shapper16-Jun-05 14:01
shapper16-Jun-05 14:01 
AnswerRe: How to format this date? Pin
Christian Graus16-Jun-05 14:09
protectorChristian Graus16-Jun-05 14:09 
GeneralRe: How to format this date? Pin
shapper16-Jun-05 14:32
shapper16-Jun-05 14:32 
GeneralRe: How to format this date? Pin
Christian Graus16-Jun-05 14:36
protectorChristian Graus16-Jun-05 14:36 
GeneralHelp how to show this xml file in dataGrid Pin
manojsoni_dims16-Jun-05 2:50
manojsoni_dims16-Jun-05 2:50 
GeneralHelp I can't show the XML IN DATAGRID Pin
manojsoni_dims16-Jun-05 2:43
manojsoni_dims16-Jun-05 2:43 
GeneralMSXML2::IXMLDOMDocument::save a xml doc Pin
Saurabh_Delhi13-Jun-05 17:24
Saurabh_Delhi13-Jun-05 17:24 

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.