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(_at_)onebox(_dot_)com - email
-----Original Message-----
From: "Blaise, Isaac J" <iblaise(_at_)info1team(_dot_)com>
Sent: Mon, 21 Oct 2002 18:07:42 -0400
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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(_at_)info1team(_dot_)com
-----Original Message-----
From: cknell(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com]
Sent: Monday, October 21, 2002 5:32 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)onebox(_dot_)com - email
-----Original Message-----
From: "Blaise, Isaac J" <iblaise(_at_)info1team(_dot_)com>
Sent: Mon, 21 Oct 2002 17:14:47 -0400
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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(_at_)info1team(_dot_)com
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