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
manjunath AngadiSubject: How to convert the xml String into the Node set
Author: manjunath Angadi
Date: 20 Sep 2006 09:17 AM
Originally Posted: 20 Sep 2006 02:05 AM
Hi,

Please help me in this regard.

I am calling a java method from an xsl. That java method returns a string. The java method is called as,

<xsl:value-of select="java:applyXSL.applyGetXpathValueXSL('generateHDR.xsl')"/>

This java method applies the 'generateHDR' xsl and returns a string. that string is nothing but the xml file.

The displayed string is considered as value and it is getting displayed as,

&lt;header&gt;&#13;
&lt;interfaceid&gt;String&lt;/interfaceid&gt;&#13;
&lt;messagetype&gt;String&lt;/messagetype&gt;&#13;
&lt;senderid&gt;String&lt;/senderid&gt;&#13;
&lt;receiverid&gt;String&lt;/receiverid&gt;&#13;
&lt;ordertype&gt;String&lt;/ordertype&gt;&#13;
&lt;asogversion&gt;St&lt;/asogversion&gt;&#13;
&lt;/header&gt;&#13;
&lt;HDR&gt;&#13;
&lt;MESSAGE_ID&gt;Manjunath&lt;/MESSAGE_ID&gt;&#13;
&lt;CCNA&gt;Str&lt;/CCNA&gt;&#13;
&lt;MSG_TIMESTAMP&gt;2001-12-17T09:30:47-05:00&lt;/MSG_TIMESTAMP&gt;&#13;
&lt;ICSC&gt;Stri&lt;/ICSC&gt;&#13;
&lt;ASOG_VER&gt;32&lt;/ASOG_VER&gt;&#13;
&lt;/HDR&gt;&#13;
&lt;ASRNO&gt;String&lt;/ASRNO&gt;&#13;
&lt;PON&gt;String&lt;/PON&gt;&#13;
&lt;REQTYP&gt;St&lt;/REQTYP&gt;&#13;
&lt;VER&gt;St&lt;/VER&gt;&#13;

instead of,

<header>
<interfaceid>String</interfaceid>
<messagetype>String</messagetype>
<senderid>String</senderid>
<receiverid>String</receiverid>
<ordertype>String</ordertype>
<asogversion>St</asogversion>
</header>
<HDR>
<MESSAGE_ID>Manjunath</MESSAGE_ID>
<CCNA>Str</CCNA>
<MSG_TIMESTAMP>2001-12-17T09:30:47-05:00</MSG_TIMESTAMP>
<ICSC>Stri</ICSC>
<ASOG_VER>32</ASOG_VER>
</HDR>
<ASRNO>String</ASRNO>
<PON>String</PON>
<REQTYP>St</REQTYP>
<VER>St</VER>

I mean, The String is to be converted to Node sets.
Please help me to display the output as above with indent.

Thanks,
Manjunath

Postnext
Tony LavinioSubject: How to convert the xml String into the Node set
Author: Tony Lavinio
Date: 20 Sep 2006 09:27 AM
Which version of Stylus Studio are you using?
Depending on your XSLT processor, there are different
ways to handle this.

Postnext
manjunath AngadiSubject: How to convert the xml String into the Node set
Author: manjunath Angadi
Date: 20 Sep 2006 10:09 AM
Hi,

I don't know the version, I am attatching the xalan.jar and xercesImpl.jar files which i am using.

Please I request you to help me in this regard.


Unknownxalan.jar
xalan.jar file

UnknownxercesImpl.jar

Posttop
Tony LavinioSubject: How to convert the xml String into the Node set
Author: Tony Lavinio
Date: 20 Sep 2006 12:10 PM
This is a support forum for users of the Stylus Studio
product, not for generic XSLT questions. You should post
on the list appropriate to your product.

If you are using Stylus Studio, you can get the version
by going to Help -> About.

   
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.