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

Re: XSLT to convert to type substitution

Subject: Re: XSLT to convert to type substitution
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Mon, 3 Dec 2007 14:20:42 +0100 (CET)
Re:  XSLT to convert to type substitution
Farrukh Najmi wrote:

  Hi

> In my case there is a pattern between the original element
> name and the type name, where elmenet name of xx:Foo will
> always map to type name of xx:FooType. I will try my limited
> XSL skills to see if I can figure out how to adapt you XSLT
> so I need not have a mapping file and instead use the pattern 
> above.

  So you'll need two things.  1/ Changing the match pattern to match
the elements that need to be changed.  That's not obvious from your
sample, but that's maybe as simple as "xx:Objects/*".  2/ To generate
the value of @xsi:type from the element name.  That's very easy to
generate the value itself, but you'll need to check carefully that your
are copying the right namespace binding to the output tree.

  Regards,

--drkm























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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.