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

AW: adding attribute to copy

Subject: AW: adding attribute to copy
From: Sascha Aßbach <sascha@xxxxxxxxxx>
Date: Thu, 26 Sep 2002 09:11:33 +0200
xsl add attribute xmlns

> -----Ursprüngliche Nachricht-----
> Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [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


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.