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

Doctype and namespaces in source/generated files

Subject: Doctype and namespaces in source/generated files
From: Mayo <mayo@xxxxxxx>
Date: Fri, 28 May 2004 14:34:11 -0700
xsl doctype html
Hello,

I'm trying to process and output xhtml documents, but I'm having some problems with namespaces. Each source document has extra namespace(s) (other than the xhtml one) for custom tags (the ones that the xslt stylesheet will be processing).

The xslt I'm using matches elements in undefined namespaces, and copies those into the output, and processes the elements in my custom namespaces. (In other words I want to copy everything other than my custom namespaces, and process what's not copied)

the match rule i'm using is:
<xsl:template match="*[not(namespace-uri())]">
than I simply xsl:copy, and apply templates. This prevents me to specify DOCTYPE or namespaces for xhtml in the source documents, as as soon as I specify them (in the source documents) the match rule will stop working, and strips all my xhtml out.


My quesiton is, is there a better way to do this, or is there any easy way that I can manipulate what namespaces/doctypes the output files will have? (I want to strip out my custom namespaces, preserve any other ones, add the xhtml one, as well as add a doctype to the generated document).

Ideally, I would like to specify doctype and all the proper namespaces in the source files.

I've been looking over the "XHTML to XHTML transform" (http://www.biglist.com/lists/xsl-list/archives/200404/ threads.html#00067) thread from few months ago, but I can't seem to figure out how the input/output namespaces (and doctype) were handled there.

thanks,
Mayo Jordanov

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.