Storing character map of XSL in separate file
Added by Anonymous almost 14 years ago
Legacy ID: #9055804 Legacy Poster: Archana Mehta (archanamehta)
I am using XSLT 2.0 to convert one XML file into another. I need to preserve the entity references in the output XML so I am using the xsl: character-map with xsl: output. I want to store the character map in a separate file, so that the client may be able to modify or add new entities as per his requirements. The issue is that I don't understand how to call this external character map in the xsl: output use-character-maps attribute? Please help, this is very urgent. Thanks
Replies (2)
RE: Storing character map of XSL in separate file - Added by Anonymous almost 14 years ago
Legacy ID: #9055885 Legacy Poster: Michael Kay (mhkay)
You can put the xsl:character-map in a stylesheet module of its own, and use xsl:include to include that module in the usual way. If you want to provide a simpler syntax for your client to maintain the map, then it's easy enough to generate the module containing the character map in XSLT syntax from some other XML format that you find more convenient.
RE: Storing character map of XSL in separate file - Added by Anonymous almost 14 years ago
Legacy ID: #9059728 Legacy Poster: Archana Mehta (archanamehta)
Thanks mhkay, I was forgetting the use of xsl:import.
Please register to reply