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)
-> + XML Publisher Generation of XS... (3)
-> + SS Error: Segment UNB: Segment... (6)
-> + SS Enterprise 2007 R2 does not... (2)
-> + Generating XSD from XML - glob... (3)
-> + SS Enterprise 2007 R2 does not... (2)
-> + SS dies on xsl files loads (7)
-> + EDIFACT UNA section ? (3)
-> + SS closes when I attempt to sa... (2)
-> + Support for SPEC 2000 & genera... (6)
-> + Uninstall failure (10)
-> + WSDL to JAVA code (2)
-> + Can't Connect to DB - SQL 2005... (3)
-> + Java editor (3)
-> + Trouble getting my xsl scenari... (6)
-> + Activation Key Not Compatible.... (2)
-> + Stylus Studio 2007 R2 and Regi... (3)
-> - XSD file displayed in Excel an... (1)
-> + What Is This vmm File? (5)
-> + Another in Release 2 (3)
-> + Error on Release 2 (3)
-> + Query DB and convert output to... (11)
-> + import static HTML into XML Pu... (2)
-> + saxon 8.9 include path resolut... (10)
-> + Can't drag field delimiter (2)
-> + Enterprise Edition Relase 2 up... (4)
-> + Upgrade to Enterprise Release ... (2)
-> + HTML to XSLT wizard missing in... (7)
-> + sqlxml.dll error after update ... (4)
-> + Printing the tree or the grid ... (2)
-> + Sorting problem with xsl[decim... (2)
-> + 2007 R2 Saxon: missing Convert... (4)
-> + EDIFACT D96A INVRPT into a SQL... (2)
-> + any addon Feature or tool that... (2)
-> + Catalog Assistance - (3)
-> + WYSIWYG does not show (3)
-> + HL7 support in Stylus (2)
-> + Xerces parser missing from Sty... (4)
-> - automatic DTD verification bef... (1)
-> + Try this (2)
-> - 2007 R2 java code generation -... (1)
-> + 2007 R2 Java built-in XSLT (4)
-> + 2007 R2 saxon 8.9 debug proble... (2)
-> + Stylus Studio Schema Validatio... (3)
-> + Bug: losing items when editing... (2)
-> + 2007 R2 Java built-in XSLT (2)
-> + XML->EDI: inconsistent treatme... (13)
-> + 2007 R2 global java classpath (2)
-> + New Web Service Call Failing (6)
-> + Grid view for nested tables (2)
-> - Revisit Old Problem from last ... (1)
-> + Install Question (3)
-> + hex value problem (5)
-> + WSDL Overview Diagram? (2)
-> + Outputing HTML from an XSLT 2.... (2)
-> + Stylus Studio Schema Publicati... (2)
-> + Re-usable XML Schema (3)
-> + .net xslt extension objects (6)
-> + InstallShield problem (2)
-> + Changing default XSLT processo... (2)
-> - SS incorrectly handles paramet... (1)
-> + Can't add file to project (7)
-> + Stylus invoking when i login i... (2)
-> + How to utilize Saxon (custom) ... (3)
-> + xsl:decimal-format (5)
-> + Hidden Costs of SS? (2)
-> + Eclipse Plugin available? (4)
-> + Having trouble with xpath quer... (2)
-> + Specifying processor to use wi... (3)
-> + MySQL or Generic JDBC Data Sup... (8)
-> + JAXB java generation doesn't s... (3)
-> - Eclipse (1)
-> + XSTL Debugger not working for ... (6)
-> + SS w/ Visual Studio and VSS (2)
-> + SS crashes on load (2)
-> + Can't find file ... then does,... (2)
-> + Diff folders not working (4)
-> + last node in preceding-sibling (3)
-> + SQLXML and Subquery (2)
-> + Xquery - No ReleationalDB opti... (3)
-> + Is a default adapter - not Tid... (8)
-> + Need actual (18)
-> + include path for external enti... (2)
-> + xpath query in SQL server (4)
-> + XPATH Query that works in 2006... (4)
-> + Need help with XML Assignment (3)
-> + Java Compiler in Windows Vista... (6)
-> + Sense:X Only Shows One Enumera... (3)
-> + adding tables and relationship... (6)
-> + preview automatically starts a... (12)
-> + French date in excel 97 using ... (2)
-> + How to maintain large XSL (2)
-> + French date in excel 97 using ... (2)
-> + How to pass EDIFACT as paramet... (3)
-> + C# Generation from XSD (5)
-> + Oracle RDBMS <-> .XSD (2)
-> + Support for Berkeley DB XML 2.... (2)
-> + conrext lost with xslt 2.0 for... (4)
-> + BizTalk schema problem (4)
-> + MSXML 6 properties resolveExte... (3)
-> + Deployment adapters and lookup... (2)
-- Previous [1621-1640] [1641-1660] [1661-1680] 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
Peter JaffeSubject: format-number in 3.1.59a
Author: Peter Jaffe
Date: 07 Sep 2001 02:29 PM
It seems that the XSLT function format-number requires a 1.2.2 or above JRE?

Since this isn't an extension functions, I would hope there would be no dependencies on an external JRE.

I am including an example XSL, XML, and screen shot of the error message.

NOTE: There is more in the XML than necessary to create this problem, but I wanted to confirm that function-available() returned true for this. As a result, I was a bit curious that the node testing functions (e.g. current(), node(), ...) claimed to not be available?

One additional point: a nice addition would be to be able to create a scenario for an XML that isn't saved to disk. The option to identify a Project File almost seems to work, but when you open the file filter, you see an icon (no file name) that represents the unsaved XML but selecting it doesn't work. This would be a nice feature to allow for non-invasive proof-of-concept or testing. Although the work around is trivial :)


Applicationformat-number.xml
test XML

Documentformat-number.xsl
test XSL

DocumenterrorMsg.jpg
Error message

Postnext
Minollo I.Subject: Re: format-number in 3.1.59a
Author: Minollo I.
Date: 07 Sep 2001 02:56 PM

>It seems that the XSLT function format-number requires a 1.2.2 or above JRE?

That's correct.

>Since this isn't an extension functions, I would hope there would be no
>dependencies on an external JRE.

Yes, format-number does depend an external JRE; the behavior of
format-number is equivalent to what you have in Java; we have chosen this
shortcut for the time being (the assumption being that in most cases users
have at least a 1.2.x JRE installed on their machines).

>I am including an example XSL, XML, and screen shot of the error message.
>
>NOTE: There is more in the XML than necessary to create this problem, but
>I wanted to confirm that function-available() returned true for this. As
>a result, I was a bit curious that the node testing functions (e.g.
>current(), node(), ...) claimed to not be available?

current() and node() do not appear as available functions because they are
not really implemented as functions, but as pieces of the XPath processor.
I think they should be returned as available, even if I'm puzzled about why
MSXML and Xalan-J are returning current() as available and node() as not
available.
Basically the only difference between what Stylus Studio reports as
available and what MSXML and Xalan-J do, is the current() function, that we
return as not available.
We'll investigate further.

>One additional point: a nice addition would be to be able to create a
>scenario for an XML that isn't saved to disk. The option to identify a
>Project File almost seems to work, but when you open the file filter, you
>see an icon (no file name) that represents the unsaved XML but selecting
>it doesn't work. This would be a nice feature to allow for non-invasive
>proof-of-concept or testing. Although the work around is trivial :)

I see what you are saying; we will remove the untitled icons from the
project area in the Open File dialog, as you are currently not supposed to
be able to use an untitled file for anything.
Changing this in the direction you would like to see is tricky, and I don't
think it will happen anytime soon.

Thanks,
Minollo

Postnext
Peter JaffeSubject: Re: format-number in 3.1.59a
Author: Peter Jaffe
Date: 07 Sep 2001 05:24 PM
On 9/7/01 2:56:40 PM, Carlo Innocenti wrote:

> Yes, format-number does depend an external JRE; the behavior of
> format-number is equivalent to what you have in Java; we
> have chosen this shortcut for the time being (the assumption
> being that in most cases users have at least a 1.2.x JRE
> installed on their machines).

I understand how implementing it this way could definitely save time (particularly when the XSLT spec defines the function as behaving like JDK1.1 DecimalFormat class). However, one of my goals is to isolate presentation layer development from application layer development, therefore installing a JRE would be an additional requirement for a "UI designer" machine.

Given 4 machines in our office, all of which have 1+ JDK/JRE installed on them (at least one of which is 1.2.2 or higher), only on 2 of them were configured such that Stylus Studio was able to automatically identified a compatible JRE (one picked up an Oracle 1.1.7, and I'm not sure what the other found).

It seems that the necessary requirements are:
1. Having a JRE bin directory in your system PATH
2. Having "Tools>Options>Application Settings>Java Virtual Machine" properly configured (which it attempts to auto-detect)

Requirement 1 is what disturbs me the most, followed closely by item 2.

I don't know what your timeline is for internalizing format-number(), but I personally cringe when a shrink wrapped product has a core function that requires "proper" installation of another toolkit. Has that been a common design pattern, and I have just uncovered the first of a few/many?

Thanks.

Pete

Postnext
Ivan PedruzziSubject: RE: format-number in 3.1.59a
Author: Ivan Pedruzzi
Date: 07 Sep 2001 05:50 PM
Hi Peter,

having the JRE bin in the PATH is *not* a requirement, Studio use the
registry to perform the JVM auto detect. Take a look under

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
Environment\CurrentVersion

Stylus Studio requires a compatible 1.2 JVM.

Hope this help


Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com



> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager]
> Sent: Friday, September 07, 2001 5:31 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: Re: format-number in 3.1.59a
>
>
> From: "Peter Jaffe"
>
> On 9/7/01 2:56:40 PM, Carlo Innocenti wrote:
>
> > Yes, format-number does depend an external JRE; the behavior of
> > format-number is equivalent to what you have in Java; we
> have chosen
> > this shortcut for the time being (the assumption being that in most
> > cases users have at least a 1.2.x JRE installed on their machines).
>
> I understand how implementing it this way could definitely
> save time (particularly when the XSLT spec defines the
> function as behaving like JDK1.1 DecimalFormat class).
> However, one of my goals is to isolate presentation layer
> development from application layer development, therefore
> installing a JRE would be an additional requirement for a "UI
> designer" machine.
>
> Given 4 machines in our office, all of which have 1+ JDK/JRE
> installed on them (at least one of which is 1.2.2 or higher),
> only on 2 of them were configured such that Stylus Studio was
> able to automatically identified a compatible JRE (one picked
> up an Oracle 1.1.7, and I'm not sure what the other found).
>
> It seems that the necessary requirements are:
> 1. Having a JRE bin directory in your system PATH
> 2. Having "Tools>Options>Application Settings>Java
> Virtual Machine" properly configured (which it attempts to
> auto-detect)
>
> Requirement 1 is what disturbs me the most, followed closely
> by item 2.
>
> I don't know what your timeline is for internalizing
> format-number(), but I personally cringe when a shrink
> wrapped product has a core function that requires "proper"
> installation of another toolkit. Has that been a common
> design pattern, and I have just uncovered the first of a few/many?
>
> Thanks.
>
> Pete
>
>
>
> To reply: mailto:stylus-studio-tech.3633@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-tech@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
Peter JaffeSubject: RE: format-number in 3.1.59a
Author: Peter Jaffe
Date: 07 Sep 2001 06:05 PM
Got it.

It would still be nice to see that external dependency severed for core XSLT functionality, but since it isn't a show stopper, I'll quit complaining...

Pete

Postnext
Minollo I.Subject: Re: format-number in 3.1.59a
Author: Minollo I.
Date: 07 Sep 2001 05:55 PM

>...
>I don't know what your timeline is for internalizing format-number(), but
>I personally cringe when a shrink wrapped product has a core function that
>requires "proper" installation of another toolkit. Has that been a common
>design pattern, and I have just uncovered the first of a few/many?

I'm leaving to Ivan the discussion about the Java requirement issues.

About requiring "proper" installation other toolkits: Stylus Studio
requires that a JRE is properly installed on the machine where it is
running only for three particular functionality:
- format-number
- user-defined Java extension functions
- advanced Java editing, compiling and execution
If you want to debug Java extension functions (or Java applications in
general), the requirement is extended to JDK.

Stylus Studio, as any other application, relies on a "proper" installation
of several components; as we are using Microsoft technology for all the
non-internal functionality other than the ones mentioned above, in most
cases such "proper" installation is equivalent to a "Windows NT/2000/XP
proper installation".

As Java is not part of the extended concept of OS that Microsoft has (only
for the reasons we all know about), the Java requirement suddenly becomes
annoying.
We understand that; we'll do our best to improve the auto-detection
mechanism of a JVM installation; but, I will be frank with you, we don't
have plans at this point to port the format-number implementation to the
native application C++ world anytime soon.

Hope this helps,
Minollo

Posttop
Peter JaffeSubject: Re: format-number in 3.1.59a
Author: Peter Jaffe
Date: 07 Sep 2001 06:07 PM
Minollo,

Thanks for your detailed reply, and I definitely see your points.

Pete

   
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.