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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
(Deleted User) Subject: Running Script in Stylus
Author: (Deleted User)
Date: 31 Aug 2000 09:46 AM
I am using Stylus 2.0.17 with JRE 1.2.2 and I get an exception when running my XSLT using the native stylus processor due to the fact I have an <msxml:script> tag in my code.

It follows the example that Microsoft have in the MSXMLSDK July documentation
<br> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br> xmlns:msxsl="urn:schemas-microsoft-com:xslt"<br> xmlns:user="http://mycompany.com/mynamespace"<br> version="1.0"><br> <msxsl:script language="JScript" implements-prefix="user"><br> function xml(nodelist) {<br> return nodelist.nextNode().xml;<br> }<br> </msxsl:script><br> <br> <xsl:template match="/"><br> <xsl:value-of select="user:xml(.)"/><br> </xsl:template><br> </xsl:stylesheet><br>

Is there any way to have this work (with the Native Processor)? as I love the way it enhances the IDE with debugging, Jump-To-Code by clicking in HTML, etc...

I know I can work around by choosing the IE Processor and unchecking the 'Force Original Names, but I would love to see a more integrated solution.

Thanks,
--matt.

Postnext
(Deleted User) Subject: Running Script in Stylus
Author: (Deleted User)
Date: 31 Aug 2000 03:24 PM
You of course shouldn't be getting an exception, but Stylus's native processor does not support msxsl:script. You can write extension functions in Java, though. Stylus closely follows the LotusXsl/xalan format for doing that.

Alex Lloyd
eXcelon corp.

Postnext
(Deleted User) Subject: Running Script in Stylus
Author: (Deleted User)
Date: 01 Sep 2000 08:49 AM
Alex, thanks for the reply.

I am currently not familiar with writing the Java Extensions you mentioned, and so I will continue to do my work using the IE processor and msxl:script.

Might I perhaps request in a future release of Stylus more support for the msxml:script in your native processor? Or, a tighter integration of the msxml processor?

Thanks again,

--matt.

Posttop
(Deleted User) Subject: Running Script in Stylus
Author: (Deleted User)
Date: 01 Sep 2000 11:55 AM
Your request is noted for future product planning. If you're interested in Java extension functions, there's a mini-tutorial in Stylus's online help.

Alex Lloyd
eXcelon corp.

   
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.