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

RE: Wikipedia on XML

  • From: "Michael Kay" <mike@saxonica.com>
  • To: "'Michael Ludwig'" <mlu@as-guides.com>,"'XML Developers List'" <xml-dev@l...>
  • Date: Wed, 26 Aug 2009 12:15:56 +0100

RE:  Wikipedia on XML
> 
> I'm sure there is a lot of good new stuff in XSLT 2.1 and 
> it's great to see that it is moving on. The way I understood 
> Rick, however, which may well be wrong, was that he did not 
> want to move the OOXML documents to a new namespace (which 
> your example seems to be doing), but to parametrize the XSLT 
> stylesheet to cope with the new OOXML namespace his instances 
> have already been moved into.

On the whole, I suspect that if people change the namespace, then something
else has probably changed too. So I think the pipeline approach where you
first normalize the XML into one version and then do the real processing is
often a better approach than trying to handle both versions within the same
stylesheet, even if there were the ability to parameterize the namespaces.

> 
> As the very last resort, my shameless DPH advice would be:
> 
> cp -r ooxml-xsl-v1 ooxml-xsl-v2
> perl -pi -e 's#old-ooxml-ns-uri#new-ooxml-ns-uri#g' ooxml-xsl-v2/*
> 
> That would work instantly.

But it's error prone: there might be code lurking around that rejects the
document if it's in the wrong namespace, for example.

Regards,

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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2011 All Rights Reserved.