Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLLanguage nameLanguage name
Previous
 
Next
New Post
6/21/2007 12:38 PM
 

Hi

I've another question for the XML/XSL module. In my portal I've magazines located in the same folder and with index based on XML file.
this works great until I've 9 different languages for the same magazine edition.....

Well what I did it up to now was to display all the magazines with the language displayed.

The new XML/XSL has one wonderful XSL parameter that's "current locale". I said myself: this is the solution, but..... in my XSL I've metadata like "English", "Italian", "German",....."  in the locale I've "en-US", "it-IT", "de-DE".....

Anyone has a suggestion how to have this language name?

I'd 2 options:
the first and I think easier (but dirty), is to alter the XMS/XSL module to add this additional information.
the second is to use another XSL file that with (I think!!) a <XSL:copy-template statement can do the transformation I need.

I've no ideas if the second option can be done, anyone has any idea or siggestion?

Thanks in advance

Best regards

Daniele

 

 
New Post
6/21/2007 2:29 PM
 

Yes, I would use a global variable:

<xsl:variable name="language">
  <xsl:choose>
    <xsl:when test ="de-DE">German</xsl:when>
    <xsl:when test ="en-US">English</xsl:when>
    <xsl:when test ="it-IT">Italian</xsl:when>
    <xsl:otherwise>Klingon</xsl:otherwise>
  </xsl:choose>
</xsl:variable>
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLLanguage nameLanguage name


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out