[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] How to style an XSD schema using a stylesheet?

Subject: [xsl] How to style an XSD schema using a stylesheet?
From: "Mila Mitra [pmitra@xxxxxxxxxxxxxxxxx]" <pmitra@xxxxxxxxxxxxxxxxx>
Date: Fri, 23 Jan 2004 18:06:22 -0600

   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

Example XSD schema doc:
<xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema

<xs:element name="FIXES" xdb:defaultTable="FIX_TAB">

<xs:element name="RECORD">
<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" />
Mila (Patralekha) Mitra	               pmitra@xxxxxxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread