XSLT problem

tech (archive)

Usenet Archive
Joined
Nov 23, 1999
Messages
35
Reaction score
0
Hello,

I want to transfer a XML node with a XSL stylesheet into another XML document like this:

source XML...
....
<flowText font-size="20" xml:space="preserve"
xmlns="http://xml.apache.org/batik/ext">
Hello World
</flowText>
....

xsl...
....
<xsl:template match="flowText ">
Test...
<xsl:apply-templates/>
</xsl:template>
....

result XML (I want to see this...)
Test... Hello World

(but I see nothing)

I think the processor can´t find the node because of this "xml:space="preserve" xmlns="http://xml.apache.org/batik/ext" attribute! Did anybody know a solution of my problem?

THX
 

Patrick TJ McPhee

Usenet Archive
Joined
Apr 2, 2000
Messages
269
Reaction score
0
[...]

% result XML (I want to see this...)
% ----------------------------
% Test... Hello World

In addition to the name-space issue mentioned in another reply, this is not XML. You'll need <xsl:eek:utput method='text'/> at the top of the style sheet to get this output.
 

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
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top