Subject:Schema Author:TL W Date:07 Mar 2006 06:14 PM
Hi,
Im starting to really get into XML and XSLT recently. Ive created a photography site using XML and XSLT but I haven’t created a schema and I don’t understand why you need one?
Does the Stylus Studio software provide a way where you can generate a schema through an XML file?
Subject:Schema Author:Minollo I. Date:07 Mar 2006 06:41 PM
I'm not sure why you are forced to create an XML Schema; but, yes, you can open an XML document in Stylus Studio and then choose "XML > Create Schema from Content"; that will create a schema consistent with the XML document structure. In addition to that you can also use the XML to XML Schema document wizard (File > Document Wizards...).
Subject:Schema Author:TL W Date:07 Mar 2006 06:52 PM
Thanks, i am able to do this in the trial version?
I take it if i create an XML schema it will define what data will be in my xml text file. So it will know ahead of time what data is coming, what it should look like.
As i have files index.xml and photos.xml does that mean i need to create two schemas?
Subject:Schema Author:Minollo I. Date:07 Mar 2006 08:21 PM
Yes, you'll be able to do that using the trial version...
You'll need to create one schema for each "type" of document; but nothing prevents you from merging the two schemas together at a later point, assuming you have no conflicts.