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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext 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.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.