XSLT and Global Resources RRS feed

  • Question

  • User665349069 posted

    Hi All, I have searched and searched, but not found what I'm looking for.  Currently I have an application that calls the DB and returns an XML document.  I use the XslCompiledTransform to basically spit this document out to the screen.  My problem is that I have to use the XsltArgumentList to add a language parameter to the document and I have code like this all over my XSL stylesheet:

      <xsl:when test="$language='en'">

    Most  of the text I need to do this with is already defined in my Resource files.  Is there any way I can access my resource file from the stylesheet so I don't have to write these "if" structures all over it?  If we end up adding another language to the application, this file will have to be edited in a lot of places.  This works fine, but seems like a lot of extra overhead if I don't need to do it. 



    Thursday, August 9, 2007 11:08 AM

All replies