Is possiple to apply xsl style on string

Z

zbiszko

Is possiple to apply xsl style on string?

I have for example string (i get it from some function).:
"bla bla bla <gd> bla2 bla2</gd> <br/> dsdsd<aa>dsds sd</aa> sds "
i would add header and main element, after that i would like to use
function string-join
and get such string:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
bla bla bla <gd> bla2 bla2</gd> <br> dsdsd<aa>dsds sd</aa> sds
</doc>

and now (this is my question:) i would like to use xsl style on this
string, it is possible??
 
M

Martin Honnen

zbiszko said:
Is possiple to apply xsl style on string?

It depends on the XSLT processor, its API respectively the other APIs
provided in the framework (e.g. Java JDK or .NET) the XSLT processor is
used in. In Java or .NET for instance it is certainly possible to parse
a string as XML and pass the proper input to an XSLT processor.
So you need to tell us which XSLT processor you use, which programming
language, and then it is possible to tell you how to parse the string
with the XML markup and pass it on as input to the processor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top