Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2008, 05:32 PM
Registered User
 
Join Date: Apr 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert attribute to node-set using xalan

Hello,

I've this XML

<MsgType TheXML="&lt;FrameworkConfig DefaultChannel=&quot;default&quot;>#xA; &lt;Channel Name=&quot;FileAdapter&quot; AdapterType=&quot;AclFileAdapter&quot;>#xA; &lt;AdapterParameter Name=&quot;OutputFolder&quot; Value=&quot;val&quot;/>#xA; &lt;AdapterParameter Name=&quot;HeaderIncluded&quot; Value=&quot;y&quot;/>#xA; &lt;RoutingEntry MessageType=&quot;FILE_ADAPTER&quot; Requestor=&quot;&quot;/>#xA; &lt;/Channel>#xA; &lt;/FrameworkConfig>" />

I'm using XSLT 2.0 and I've the following :

<xsl:variable name="frameXML">
<xsl:value-of select="@TheXML" disable-output-escaping="yes"/>
</xsl:variable>

<xsl:value-of select="exsl:node-set($frameXML)/FrameworkConfig/@DefaultChannel"></xsl:value-of>
I'm using Xalan 2.7 processor and would like to be able to parse TheXML attribute. I know I can achieve the same using saxon:parse, is it possible to do that same thing with xalan.

Thanks.

 
Old May 3rd, 2008, 06:06 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

There is a Xalan user mailing list http://xml.apache.org/xalan-j/contac...r-mailing-list where you are more likely to find expertise on Xalan.

--
  Martin Honnen
  Microsoft MVP - XML





Similar Threads
Thread Thread Starter Forum Replies Last Post
convert nodeset to a single node newbies1234 XSLT 2 August 18th, 2008 10:01 AM
Get a node value using attribute name IronStar XSLT 4 May 29th, 2008 04:28 PM
XPath: set operation with a disjoint node set rich_unger XSLT 7 May 6th, 2008 09:24 AM
to get Distinct Node depending on attribute value chaitanyaXML XML 5 March 29th, 2005 10:26 AM
How can I get the element node of an attribute cdias XSLT 2 March 15th, 2004 10:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.