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
Paul ZammitSubject: XSLT Editor autocomplete functionality
Author: Paul Zammit
Date: 21 Jun 2010 02:31 PM
I'm new to SS and I am simply trying to become familiar with the XSLT editor. The XML document I'm working with has multiple namespaces on the root element. When working in the editor, the auto-complete feature seems to have problems identifying elements.

Here's an example xml document:
<?xml version="1.0" encoding="ISO-8859-1"?>
<catalog xmlns="http://www.mycompany.com/abc/xml/"
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<company>CBS Records</company>

Has a default namespace and a specified namespace (def:). In the sylus studio editor, if I key in a select the root displays in the autocomplete selection window, and that's fine, but I can't see anything past root in the auto-complete window.

<xsl:apply-templates select="catalog"/> <-- catalog appears in auto assist

<xsl:apply-templates select="catalog/title"/> <-- must key in manually and does not produce a result

The generated XSLT stylesheet has no namespaces.

Once I modify the XSLT stylesheet adding namespaces, I can get it to work, but still the editor autocomplete function does not work properly.

Here is a working XSLT stylesheet:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"

<xsl:template match="/">
<xsl:for-each select="a:catalog/a:cd">
<title><xsl:value-of select="a:title"/></title>
<artist><xsl:value-of select="a:artist"/></artist>
<type><xsl:value-of select="def:genre/def:type"/></type>


Since I am new to SS, I am wondering if I'm missing something on how the XSLT editor works. I would assume that multiple namespaces are quite common, so I don't understand why the autocomplete functionality does not work the way I expected it.

Running Stylus Studio Profession Edition 2006 release 3.

Any help appreciated.


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!  

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.