Project

Profile

Help

Script node write to STDOUT + Tracker info

Added by Anonymous about 18 years ago

Legacy ID: #3722988 Legacy Poster: John_L (john_r_l)

I'm a new user, this looks to be an excellent resource! I have two questions: 1) Is there a Java method which writes to STDOUT, similar to document.writeln() available in HTML rendered by web browsers? I would be interested in invoking this from within a <saxon:script lang="java"> node. 2) Where can I get information on Tracker, the interface to the problem management system used on this website? I'd also be interested in knowing the access method used to store problem data (i.e. it it file system or database storage based). I have a similar need, if I could locate the owners so that I could copy and/or purchase Tracker. Thanks in advance for any help you may provide.


Replies (3)

Please register to reply

RE: Script node write to STDOUT + Tracker inf - Added by Anonymous about 18 years ago

Legacy ID: #3723016 Legacy Poster: Michael Kay (mhkay)

You can write to standard output from Java using System.out.println() However, if you call this from within a stylesheet, be aware that it may or may not be the same destination as the stylesheet output! It might be better to explain what you are trying to achieve. Perhaps it would be better done using xsl:message. Concerning the SourceForge software used to run this site, I believe it is all open source: Find sourceforge project alexandria-dev. I'm afraid I only use it so I can't help you with this.

RE: Script node write to STDOUT + Tracker inf - Added by Anonymous about 18 years ago

Legacy ID: #3723112 Legacy Poster: John_L (john_r_l)

The script nodes are being used to examine the persistence of JavaScript variables, as illustrated by the Style Sheet below: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" saxon:trace="yes" extension-element-prefixes="saxon"> <saxon:script lang="java" xmlns:saxon="http://saxon.sf.net."> var apple; </saxon:script> <saxon:script lang="java" xmlns:saxon="http://saxon.sf.net."> apple = "twelve"; </saxon:script> <saxon:script lang="java" xmlns:saxon="http://saxon.sf.net."> System.out.println("Apple is "+apple); </saxon:script> </xsl:stylesheet> This is a potential alternate solution for the problem described below: http://sourceforge.net/tracker/index.php?func=detail&amp;atid=397620&amp;aid=1485633&amp;group_id=29872 Thanks for the pointer on Tracker, I will see what I can find.

RE: Script node write to STDOUT + Tracker inf - Added by Anonymous about 18 years ago

Legacy ID: #3723144 Legacy Poster: Michael Kay (mhkay)

I don't know what you think <saxon:script> does, but it's nothing like this. I'm afraid I've no idea what you think this stylesheet is supposed to do, or what you are actually trying to achieve. I don't know whether saxon:script allows text content within the element, but if it does then it is ignored.

    (1-3/3)

    Please register to reply