Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Declaring namespace prefix in result of transformation

From: "Alex Yackimoff" <yackimoff@------------.--->
To: NULL
Date: 2/12/2009 6:38:00 PM
Hi,

I need to extract the list of complex types from (any) XML schema and save 
it in an appopriate XML with this structure (fragment represents a single 
item of the list):

  <Property name="ParameterItemDef">
    <Value xsi:type="xs:QName">tns:ParameterItemDef</Value>
  </Property>

where ParameterItemDef is the name of the complex type in schema. What I 
can't figure out is how to bind "tns" prefix to the targetNamespace of the 
input schema (how to dynamically create xmlns attribute).

XSLT 1.0 is preferred. However, XSLT 2 way would also be welcome.

-- 
Alex Yackimoff 




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