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

Re: Transform xhtml to xhtml, convert one tag to ano

Subject: Re: Transform xhtml to xhtml, convert one tag to another, while preserving rest of file
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 8 Feb 2005 17:07:11 GMT
transform xhtml to xhtml
> The XHTML documents did include 
> the doctype definition, but for as far as I know this doesn't mean that 
> all elements are in the XHTML namespace,

Bingo!

The XHTML DTD uses the ability of a DTD to default attributes and does
default a namespace declaration.

> But there's something else. Almost all of the elements in my page now 
> appear with the empty attribute xmlns, like:
> 
> <p xmlns=""></p>
> 
> for example. Why is this?

Another faq. You are generating an html element (not a tag by the way)
in the xhtml namespace and then a p element in no-namespaace. 
The easiest way to avoid that is to put teh namespace declaration for
xhtml on the xsl:stylesheet element so it is in scope for the whole
stylesheet.

> Maybe I should post the files on the web so someone (with a lot of time 
> on his/her hands and a very helpful attitude) could take a look at them.

better is to make a six line example input and minimal stylesheet that
doesn't work as you expect and paste it inline into the message.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.