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
Karthik SSubject: Wordml intelligence
Author: Karthik S
Date: 27 May 2008 04:25 AM
Does stylus studio xsl editor provide wordml intelligence for code completion. For example if we type <w: will it is list the following,

<w:b>
<w:p>
<w:tbl>
etc.

similar to xsl intelligence. Does any of your tool has the wordml intelligence.

Postnext
Alberto MassariSubject: Wordml intelligence
Author: Alberto Massari
Date: 27 May 2008 06:31 AM
Hi Karthik,
the XSL editor has a configuration file, languages.xml, located in <stylus dir>\bin\Plugins\Configuration Files that defines the element names and content of several XSL-related languages (XSLT, XSL-FO, XSLT2, proprietary extensions to the XSLT language). You can edit it to add the element names of the WordML markup language, whose schema can be retrieved from http://www.microsoft.com/downloads/details.aspx?familyid=fe118952-3547-420a-a412-00a2662442d9&displaylang=en

Hope this helps,
Alberto

Postnext
Karthik SSubject: Wordml intelligence
Author: Karthik S
Date: 27 May 2008 09:03 AM
Thanks a lot Alberto.

I added the below piece of code in languages.xml and was able to get <w:p> for code completion,

<language name="wordml">
<tag name="w:p"/>
</language>

Can you please explain the significance of using the schema from the mentioned path. I got the result just by adding the above piece of code in languages.xml.

Please explain the significance and steps to be carried out for the schema files, so that I can implement it in the rightway.

Postnext
Alberto MassariSubject: Wordml intelligence
Author: Alberto Massari
Date: 27 May 2008 10:12 AM
Your change is fine, but it just lists one tag; I was suggesting you to read the wordnet.xsd schema to gather the complete list of tags that the WordML schema allows. If you are not interested in the complete set of elements and attributes, just edit the languages.xml file with the ones you need.

Alberto

Postnext
Karthik SSubject: Wordml intelligence
Author: Karthik S
Date: 28 May 2008 06:06 AM
Thanks Alberto.

Please clarify the following for the better understanding of tags in languages.xml

For example,

<tag name="xsl:if">
<attribute-set>
<attribute name="test" required="yes"/>
<attribute name="xml:space" enum="preserve|default"/>
</attribute-set>
</tag>

In the editor if type <xsl:i it is listing <xsl:if and after selecting it if I give a space it lists the following,

a=test
a=xml:space

after selecting xml:space it lists the values "preserve" and "defualt". I selected one of the values and closed the tag.

My doubt is although "test" attribute is marked as required the editor does not mandate me or indicate me to choose this attribute. So please let us know the significance of setting required = "yes" for the attributes with the respect to the editor.

Posttop
Alberto MassariSubject: Wordml intelligence
Author: Alberto Massari
Date: 28 May 2008 01:09 PM
Hi Karthik,
the "required" attribute is not used by the Sense:X module, so, given your scenario, you can avoid filling it.

Alberto

 
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.