Subject: RE: RE: [xsl] running a transform of xsd From: cknell@xxxxxxxxxx Date: Tue, 22 Oct 2002 10:53:46 -0400 |
You use standard XSLT techniques. For example, you will want a template to match xs:enumeration, for example: <template match="xs:enumeration"> <div>The value of match is <xsl:value-of select="@value" /></div> <div>The annotation text is <xsl:value-of select="xs:documentation/xs:annotation" /></div> </template> When you apply templates, this template will be called for every xs:enumeration element and output the value of the value attribute and all the text node children of all of its xs:annotation children in HTML format. Is this clear enough or do you need more background? -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: "Blaise, Isaac J" <iblaise@xxxxxxxxxxxxx> Sent: Mon, 21 Oct 2002 18:07:42 -0400 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] running a transform of xsd I realize it was somewhat of a newbie question... I was looking for a tutorial of some kind that would show me how to parse values from a XSD file and use them for translation into xml and/or html. example... <xs:enumeration value="MAX"> <xs:documentation> <xs:annotation>All values in this aggregate function are checked and the maximum value is passed back. </xs:annotation> </xs:documentation> </xs:enumeration> so here, I want to get the context of the annotation and the value of the enumeration. thanks in advance, Isaac iblaise@xxxxxxxxxxxxx -----Original Message----- From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] Sent: Monday, October 21, 2002 5:32 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] running a transform of xsd O.K., I'm confused, an XML schema file IS an XML file, per se. What is it that you want to do? -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: "Blaise, Isaac J" <iblaise@xxxxxxxxxxxxx> Sent: Mon, 21 Oct 2002 17:14:47 -0400 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] running a transform of xsd hi, could you possibly point me to any tutorials that can help me run a transformation of a XML Schema (*.xsd) into a XML file? I consider myself a fair xslt programmer, but this is a totally new concept for me. thanks, Isaac iblaise@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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] running a transform of xs, Blaise, Isaac J | Thread | [xsl] XML in IE6, Mike Ferrando |
[xsl] ?group? but keep order of ele, Naraschewski, E. | Date | RE: [xsl] XLST newbie needs help, NIENKE, Bill P. - AC |
Month |