Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  cannot import c...
 cannot import character maps
 
Zef
5 posts
Joined
1/18/2007

cannot import character maps
Posted: 24 Oct 07 5:09 AM (Netherlands) Modified By Zef  on 10/24/2007 5:09:59 AM)
Hi Oleg,

i've been playing with the new and very useful character mapping feature.

As long as the actual mapping is declared within the main xsl transformation, the feature works as expected. However if I move the mapping declaration to an external file that is imported by the main transformation, e.g.

<xsl:import href="xhtml1-lat1map.xsl" />

where "xhtml1-lat1map.xsl" looks like this:

<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:nxslt="http://www.xmllab.net/nxslt">

  <nxslt:character-map name="xhtml1-lat1">
    <nxslt:output-character character="á"
           string="&amp;aacute;"/>

    <!-- ... more ... -->

  </nxslt:character-map>

</xsl:stylesheet>


then nxslt apparently no longer resolves the mapping, but aborts with the following error message:

System.Xml.Xsl.XsltCompileException:
Unknown character map 'xhtml1-lat1'

What am I doing wrong here? Or is this not (yet) supported?

Zef

  XML Lab Products  nxslt  cannot import c...
Forum Home  Search