xsl-list
[Top] [All Lists]

AW: adding attribute to copy

2002-09-26 00:11:33


-----Ursprüngliche Nachricht-----
Von: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com [mailto:owner-xsl-
Hi,

i need an XSL stylesheet that transforms an XML input so that
there ist
he same output
only one attribute has to be added to one element called <richtext>
it is the attribute xmlns="..."
so taht it says <richtext xmlns=""> in the output-

Think again. You're not trying to add an attribute, you're trying to
change the default namespace URI of richtext element and all it's
children
- actually you didn't specify if you wanted to change it for all
descendants or just those who have the same NS-URI as richtext
originally
had. Try something like this


i guess i have to explain a little more.
I have a process that transforms an XML file (output coming from lotus
XML toolkit / lotus notes database ) to a ".fo" document and then into a
"PDF" with FOP. The XSL Stylesheet used here uses "dxl:" namespace- and
that works fine-
There are several sub-processes controlled by a java routine (command
line) 
Dumpfiles are created for each step (merges, image-exports etc). So i
have 4 XML files in whole , 1 for each subprocess. 

So, now i need a kind of debugging area to test strating from each step
from the commandline- (not notes) - so i want to start from step 2 for
example.
(hope you understand all this ...)
AND NOW THE PROBLEM IS- the same XSL file, the same java-routine- BUT 
Different transformation. The <richtext> part and all the children are
not parsed or interpreted- anything that stands inbetween is just
outputted as plaintext - and not formatted with .fo commands-

You see? So, if i add a <richtext xmlns="http://www.lotus.com/dxl";> here
- it seems to work fine in both areas.... that's what i wanna have.

I have just 1 XSL at the moment - INPUT is a merge of 2 XML files- 
And 1 part here is the richtext element.

Anyway- why does the namespace thingy work even if i am offline? 
Why is there an URL if it isnt "needed"?

Sascha





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



<Prev in Thread] Current Thread [Next in Thread>