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)
-> + startup fault (2)
-> + xsd sequence question (5)
-> + Licence authentication failed ... (3)
-> + .NET API for the X12 To XML Ad... (6)
-> + data in tabular format (2)
-> - How to convert the xml String ... (4)
-> ->How to convert the xml St...
-> ->How to convert the xml St...
-> ->How to convert the xml St...
-> + SS Schema Validation misses an... (2)
-> + Problem in converting EDI file... (2)
-> + Generating image from XML and ... (2)
-> + Auto Schema builder is not cre... (3)
-> + XML/SQL update more tables (2)
-> + Default toolbar blocked (3)
-> + Stylus vs Altova Mapforce - St... (4)
-> + Problem with namespace while v... (3)
-> + Web Service Call - "unqualifie... (3)
-> + XML to SQL Server 2005 (2)
-> + XHTML with multiple schemas (2)
-> + Compare Stylus Studio with OBO... (2)
-> + Deploying java app using deplo... (3)
-> + Validating XML through Schema (3)
-- Previous [1981-2000] [2001-2020] [2021-2040] 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.