Re: convert string to node-set

Mike Brown <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
On 16 March 2006, Luis Collado wrote:
> I wish to know whether the following problem were solved:
>  
> Vadim Kalion wrote:
> > Is there any method to convert xml-string to node-set in xsl file.
> > I need it because I want to pass xml-string into xsl:param and then
> > output it string in drop-down list. Thank you very much.
>  
> Since, I have a similar problem.

It's not clear what you are asking for.

Are you saying you have, in XSLT, an XPath string object that contains XML
markup, like "<doc>some&#20;text</doc>"?

And are you saying you want to parse that XML so that you have a node-set,
such as element node 'doc' with child text node 'some text'?

It is possible to write a custom extension element or function to do this. It
would be specific to your XSLT processor -- XSLT 1.0, XSLT 2.0, and EXSLT 1.0
do not offer a standard extension for you. It would also be a bad idea to try
to write an XML parser in pure XSLT.

The mailing list that you posted to (the exslt list) is for discussion of
the development and use of EXSLT extensions to XSLT. If you have general 
questions about how to accomplish things in XSLT, you should write to 
xsl-list. Info about xsl-list is at http://www.mulberrytech.com/xsl/xsl-list/

Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.