I have a problem with XSLT in VB .Net 1.1 and can't find the answer on the net.
I have used a construction in XSLT that for instance can be used for separation of text and style. There is a language setting @LG in the XML file that is the ISO code of the selected language. This value is used to create a variable, "string", in XSLT that refer to an XML file that contains the strings of the selected language.
Expand|Select|Wrap|Line Numbers
- <xsl:variable name="lang" select="string(/OPIC_IMPORT/@LG)"/>
- <xsl:variable name="strings" select="concat('strings/STRINGS_',$lang,'.xml')"/>
Expand|Select|Wrap|Line Numbers
- <xsl:value-of select="document($strings)/strings/string[@Id='TITLE']"/>
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE strings SYSTEM "STRINGS.dtd">
- <strings>
- <string Id="NOTICE_HAS_BEEN_RECEIVED">The notice/message has been received and will be published the specified day.</string>
- <string Id="NOTICE_HAS_BEEN_RETRIEVED">The notice/message has been retrieved.</string>
- <string Id="TITLE">Title</string>
- </strings>
It's one of my consultants that is the author of the VB .Net 1.1 code and I don't have all the knowledge about all "settings" used.
Regards
Mårten
and
Merry Christmas