Hi all,
I'm a beginner with XML/XSLT. I'm supporting an application that grabs data out of a database (backend of an application) and imports it into a .net web app using xml/xslt. Part of the xslt script grabs content from columns in the database - the data is in english. I would like the xslt to transform these into the norwegian equivalents (this can be hard coded as the value in the column will only ever be yes or no - so ja/nei).
Here's an example of the part of the xslt script that picks up the column names in the database (look at the field list - the custom(norway) column):
<xsl:variable name="RegisterInfo">
<LAYOUT_INFO>
<TITLE>Project Summary Analysis - Norway</TITLE>
<DESCRIPTION>Project Summary Analysis</DESCRIPTION>
<FIELDLIST>tm_project.ROI, tm_project.cost, tm_project.summary, tm_project.actissuedate, CUSTOM(Norway)=CUSTOM_Norway, CUSTOM(Travel Required)=CUSTOM_Travel </FIELDLIST>
<DATATYPE>2</DATATYPE>
</LAYOUT_INFO>
</xsl:variable>
How do i access the actual data pulled up from the database, so for every yes value in custom(norway) column, it outputs it as "ja" and no as "nei"??
As you can probably tell i'm a COMPLETE beginner, but please point me in teh right direction if you can. Thanks.
Divinyl
I'm a beginner with XML/XSLT. I'm supporting an application that grabs data out of a database (backend of an application) and imports it into a .net web app using xml/xslt. Part of the xslt script grabs content from columns in the database - the data is in english. I would like the xslt to transform these into the norwegian equivalents (this can be hard coded as the value in the column will only ever be yes or no - so ja/nei).
Here's an example of the part of the xslt script that picks up the column names in the database (look at the field list - the custom(norway) column):
<xsl:variable name="RegisterInfo">
<LAYOUT_INFO>
<TITLE>Project Summary Analysis - Norway</TITLE>
<DESCRIPTION>Project Summary Analysis</DESCRIPTION>
<FIELDLIST>tm_project.ROI, tm_project.cost, tm_project.summary, tm_project.actissuedate, CUSTOM(Norway)=CUSTOM_Norway, CUSTOM(Travel Required)=CUSTOM_Travel </FIELDLIST>
<DATATYPE>2</DATATYPE>
</LAYOUT_INFO>
</xsl:variable>
How do i access the actual data pulled up from the database, so for every yes value in custom(norway) column, it outputs it as "ja" and no as "nei"??
As you can probably tell i'm a COMPLETE beginner, but please point me in teh right direction if you can. Thanks.
Divinyl