Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSLT to convert to type substitution

From: Florent Georges <lists@------------>
To:
Date: 12/3/2007 1:21:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent