 |
 |
 |
Hi David
What the tools allow is to create an XSLT version of the mapping.
This is handy because you can then hand-edit the XSLT and learn
some XSLT in the process.
I don't have your database schema (and best to take such detail
off-list) but the XSLT I get looks like this when you just map the
instance to itself
...
<xsl:for-each select="attributes">
...
<xsl:for-each select="attribute">
...
<xsl:for-each select="attribute-name">
...
Without getting into detail it seems, superficially, you need to duplicate
the XSLT related to 'attribute' and then specialise the XPath of each to
refer in one case to the 'attribute' element with a child 'attribute-name'
equal to 'CountryName' and in the other case to the 'attribute' element
(how I hate this giving an element the name 'attribute :-) with a child
'attribute-name' equal to 'CountryCode'. Hopefully that should do it but
it needs some care and there may be a few other things like this you'll
want to do too.
By the way, I notice the tool warns you that changes like this will be
lost on regeneration of the XSLT but personally I'd just choose the
pragmatic approach and accept that you'll have to do the changes
again if you regenerate the XSLT (which maybe you won't have to do
once you learn to write it manually with the tool's help).
All the best
Stephen Green
Partner
SystML, http://www.systml.co.uk
Tel: +44 (0) 117 9541606
http://www.biblegateway.com/passage/?search=matthew+22:37 .. and voice
|
 | 

|  |
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.
|  |
| |
 |
 |
 |