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
Ranjan BaisakSubject: Error running the stylesheet in XALAN API though the same stylesheet runs perfectly in StylusStudio
Author: Ranjan Baisak
Date: 24 Jan 2005 06:24 AM
My stylesheet is bit complex and have lots of RTFs.
The stylesheet runs perfectly when I am running it in stylus studio with XALAN processor,
but when I am running the same stylesheet in my java program with XALAN API
it throws bunch of exception e.g.

ERROR: 'Attribute 'name' outside of element.'

javax.xml.transform.TransformerException: java.lang.RuntimeException: Attribute 'name' outside of element.

at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:644)

at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:256)


regards,
Ranjan

Postnext
Ivan PedruzziSubject: Error running the stylesheet in XALAN API though the same stylesheet runs perfectly in StylusStudio
Author: Ivan Pedruzzi
Date: 24 Jan 2005 11:02 PM
Ranjan

Most likely the error is caused by the use of xsl:attribute,
but without see the source is difficult to say.

Ivan

Postnext
Tony LavinioSubject: Error running the stylesheet in XALAN API though the same stylesheet runs perfectly in StylusStudio
Author: Tony Lavinio
Date: 25 Jan 2005 12:26 AM
Are you sure you are running things exactly the same as within
Stylus? For example, it could be a problem with the specific
Xalan/J or Xerces library version you are using. Or it could be
the way you've constructed the code. Is the problem happening
during the parsing of the input document(s), during the execution
of the stylesheet, or during the serialization of the output?
You really haven't given us much to go on.

Postnext
Ranjan BaisakSubject: Error running the stylesheet in XALAN API though the same stylesheet runs perfectly in StylusStudio
Author: Ranjan Baisak
Date: 25 Jan 2005 12:39 AM
I could able to compile the stylesheet. I could able to parse the XML document. When I am using transform() method of Transformer, then it throws error.
Let me give you the scenario. Indie the for loop of an RTF, I am using for loop on a key and the name attribute is there in both RTF and the output produced by the key.
I can see the RTF content by using xsl:message and its fine. But the moment inner for loop is getting executed(my guess), it throws error.
But again, how the same stylesheet runs perfectly with StylusStudio.
I am using org.apache.xalan.xsltc.trax.TransformerFactoryImpl() as the transformer factory.
regards,
Ranjan

Posttop
Tony LavinioSubject: Error running the stylesheet in XALAN API though the same stylesheet runs perfectly in StylusStudio
Author: Tony Lavinio
Date: 26 Jan 2005 08:41 AM
You are using the compiler version of the stylesheet engine that builds
bytecode from XSLT. In order to implement debugging, Stylus Studio
can't use that library, since it loses the one-to-one mapping between
source XSLT and runtime structure. We use a different factory,
org.apache.xalan.processor.TransformerFactoryImpl.

Your best bet with this problem would be to 1) try it with a
non-compiler version of Xalan, or 2) ask on the Xalan-J-specific
mailing lists at http://xml.apache.org.

You still haven't told us which version of Xalan-J you are using (nor
for that matter which version of Stylus), but for reference, Stylus
Studio currently uses Xalan-J 2.5.1 in both its 6r1 (build 212) and 6r2
(build 287) releases.

I hope on the Apache lists you can find the answer - and if you do,
could you please post back here to share your answer with others?
Thanks.

 
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.