[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: namespace reference in xsl without being attribute
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|