XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
clare EmmaSubject: Using XSLT to wite a schema
Author: clare Emma
Date: 20 Aug 2005 01:32 PM
Hi,

I am trying to create specialised schemas using XSLT but I'm sure how to ouput the < and > characters. If I write out say "<xs:element name="book">" in order for that text to be copied across then it conmplains that it doesn't know what it is and if I use &lt; and &gt; then that is exactly what gets printed in my schema.

Thanks in advance,
Emma

Posttop
Ivan PedruzziSubject: Using XSLT to wite a schema
Author: Ivan Pedruzzi
Date: 21 Aug 2005 08:54 PM

Here is a basic example that generates a static schema


<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="name" type="xsd:string"/>
</xsd:schema>
</xsl:template>

</xsl:stylesheet>

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.