Subject: RE: [xsl] How to style an XSD schema using a stylesheet? From: Sergio Rodriguez <srodriguez@xxxxxxxxx> Date: Fri, 23 Jan 2004 18:25:49 -0600 |
Hi, Mila. Mila wrote: > Would it be the same way that it is done for an XML document? Yes. A XSD file (a.k.a. W3C XML Schema) is in fact a XML document... so, you can treat it like an instance document of your XSD. Cheers, -----Original Message----- From: Mila Mitra [pmitra@xxxxxxxxxxxxxxxxx] To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Sent: 23/01/2004 06:06 p.m. Subject: [xsl] How to style an XSD schema using a stylesheet? Hello, I have a XSD schema which is a pretty standard one which gives the reuirements of a certain kind of document. The issue is that we would like these also to be styled so a user can use a browser to see what are the required fields etc. I am not sure what is the correct way to reference a stylesheet in the xsd header? Would it be the same way that it is done for an XML document? I know the way I would reference an XSL stylesheet (extract.xsl) in an XML document would be something like: <?xml version="1/0" encoding="ISO.."> <?xml-stylesheet type="text.xsl href="extract.xsl"> Thanks in advance, Mila Mitra pmitra@xxxxxxxxxxxxxxxxx ---------------------------------------------- Example XSD schema doc: <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns:xdb="http://xmlns.oracle.com/xdb"> <xs:element name="FIXES" xdb:defaultTable="FIX_TAB"> <xs:complexType> <xs:sequence> <xs:element name="RECORD"> <xs:complexType> <xs:sequence> <xs:element name="Spherical_X" type="xs:float" /> <xs:element name="Spherical_Y" type="xs:float" /> <xs:element name="Spherical_Z" type="xs:float" /> <xs:element name="Fix_ID" type="xs:string" /> <xs:element name="ICAO_Code" type="xs:string" /> <xs:element name="High_Power_VOR" type="xs:string" /> <xs:element name="Fix_Label" type="xs:string" /> <xs:element name="Fix_Type" type="xs:string" /> <xs:element name="Locally_defined" type="xs:string" /> <xs:element name="Magnetic_Declination" type="xs:float" /> <xs:element name="Inside_US" type="xs:string" /> <xs:element name="Host_Adapted_Fix" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> -- Mila (Patralekha) Mitra pmitra@xxxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to style an XSD schem, Robert Koberg | Thread | [xsl] how to embed this complicated, SANWAL, ABHISHEK (HP |
[xsl] How to style an XSD schema us, Mila Mitra [pmitra@x | Date | Re: [xsl] How to style an XSD schem, Robert Koberg |
Month |