[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: convert an attribute's value to a text node?

Subject: Re: convert an attribute's value to a text node?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 02 Dec 2002 19:22:16 +0100
convert attributes to nodes
Hello Gunther,

do you really need a node set or do you want to output the text value directly? I can see only one example for a needed node set:

<xsl:apply-templates select="saxon:node-set($string)"/>

But couldn't this be solved with a call-template and an appropriate processing at this template?

Regards,

Joerg

Gunther Schadow wrote:
Hi, I am in the process of converting my heavy uses of Saxon and it's
extensions to more standard XSLT 2.0 + XPath 2.0 and here is the one
problem I have left:

I need to convert a string to a text-node. More specifically, I need
to convert the value of an attribute to a text-node, because I have
special templates that expect text-nodes.

In the old days I used:

saxon:node-set(string(@att))

which would give me back a text-node.

Note that saxon's implementation of exsl:node-set would not allow a
string argument, but saxon:node-set would, and would do exactly what
I needed.

Now Michael has removed saxon:node-set from Saxon 7 because this
RTF-madness ;-) is basically cleared now (THANKS for THAT!) But,
my little corner-use-case seems to be unhandled unless I am missing
something (which is likely.)

Thanks for any ideas!
-Gunther


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.