Example

In an XML Schema, you might have a comment node such as the following:

<xsd:schema ...>
               

              
<!-- The following element is .... -->
                   
<xsd:element name="..."/>
                   

                

The contents of a comment node have meaning only when a person reads them. However, the contents of annotation nodes can be operated on. For example:

<xsd:schema ... > 
               

              
<xsd:element name="foo"> 
                   
<xsd:annotation> 
                   

                
<xsd:documentation language="en"> This is a <b>foo</b> element. Use it for ... </xsd:documentation> <xsd:documentation language="jp"> xksnjgfyre fvhfdbvhjds </xsd:documentation>
</xsd:annotation> 
                   
</xsd:element> 
                   
...
                   

                

You can apply an XSLT stylesheet to this XML Schema document. The stylesheet could generate an HTML manual by extracting the Documentation nodes in the desired language:

<xsl:stylesheet ... > 
               

              
<xsl:template match="xsd:element"> 
                   
<xsl:apply-templates select=
                   

                
"xsd:annotation/xsd:documentation[@language='en']"/>
</xsl:template> 
                   
... 
                   

                

Supported XML Technologies

Learning XML is easy with Stylus Studio, the only XML IDE to support all official W3C XML technologies! Learn more about Stylus Studio's tools and support for XML and related W3C technologies.

Telecommunications Companies That Use Stylus Studio

Can you here me now? When it comes to telecommunications and XML it can get a little fuzzy. That's why these top telecommunication companies turn to Stylus Studio to connect them to their XML needs.

XML Well-Formedness Checker & XML Indenter

Tidy up your XML documents with powerful integrated XML editing utilities including a single-click XML formatter, pretty printer, XML indenter and XML well formedness checker.

Export HTML to XML

Export HTML to XML with the click of a button - simplify migration of legacy HTML code to industry standard XML technologies with Stylus Studio.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member