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

RE: namespace reference in xsl without being attribute

Subject: RE: namespace reference in xsl without being attribute in outputxml
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 28 Jan 2005 15:15:08 -0000
serial kay
> I want to generate an xml file, with namespace references, like: 
> 
> <?xml version="1.0" encoding="UTF-8"?> 
> <!DOCTYPE serial-issue PUBLIC "-//ES//DTD serials issue DTD 
> version 5.1.0//EN//XML" "si510.dtd"> 
> <serial-issue> 
> <issue-info> 
> <ce:pii>S9999-9994(04)X0057-X</ce:pii> 
> ... 
> </issue-info> 
> ... 
> </serial-issue> 

You mean, you want to generate XML that isn't namespace-well-formed (because
it contains undeclared prefixes)?

XSLT can't do that. 

Try generating the element names as <ce_pii> and then modifying the
serialized result with some language (e.g. Perl) that doesn't know it's
dealing with XML.

Michael Kay
http://www.saxonica.com/

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.