|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Optional namespace declaration in XML document
At 2006-02-28 16:24 +0000, Michael Kay wrote:
> Is there any way to have one XSLT 1.0 stylesheet handle > situations where the XML input has different namespace > declarations? In my customer's situation I was using stylesheet association and pointing to the stylesheet that would render my instance being edited. Only one pass is available in this situation, without having to use node-set() and having to put into memory a transformed instance to then be fed into the process again. Each copy of the read-only stylesheet library was configured by the entities for the given namespaces, so all I had to do was point to the appropriate subdirectory's copy and everything worked. Oh, and having the entity strings available for URI strings made it easy to provide the correct string to instructions like <xsl:element> when doing transformations that augmented the input instances. I'm a big fan of using entities to help with the management of my XML instances. . . . . . . . . . Ken At 2006-02-28 11:04 -0500, I wrote: Every stylesheet fragment pulls in a common set of general entity string declarations with which namespaces are declared. The parameter entity with these general entity declarations is in an ancestral directory of the stylesheet library. -- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-03-13/17 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|






