Perhaps i miss understand how to link the xml and the generated xsl. I am using xml/xsl module.
xml is linked to exterior url. http://members.whitpres.org/DesktopMo... using UTF 8.. no passed parameters
Xsl is saved in the generated folder xslstylesheets. When i cold turkey, (no modifications) create that xsl with forms and list module.. it looks like this
i get this error
System.Xml.XmlException
Root element is missing. |
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
xsl:output
method
=
"xml"
indent
=
"yes"
omit-xml-declaration
=
"yes"
/>
<!--
This prefix is used to generate module specific query strings
Each querystring or form value that starts with udt_{ModuleId}_param
will be added as parameter starting with param
-->
<
xsl:variable
name
=
"prefix_param"
>udt_<
xsl:value-of
select
=
"//udt:Context/udt:ModuleId"
/>_param</
xsl:variable
>
<
xsl:template
match
=
"udt:Data"
mode
=
"list"
>
<
tr
>
<
td
>
<
a
href
=
"{udt:Link_UDT_Url}"
>
<
xsl:value-of
select
=
"udt:Menu_IMG"
disable-output-escaping
=
"yes"
/>
</
a
>
</
td
>
</
tr
>
<
tr
height
=
"7px"
>
<
td
> </
td
>
</
tr
>
</
xsl:template
>
<
xsl:template
match
=
"/udt:UserDefinedTable"
>
<
xsl:variable
name
=
"currentData"
select
=
"udt:Data"
/>
<
xsl:if
test
=
"$currentData"
>
<
table
>
<
xsl:apply-templates
select
=
"$currentData"
mode
=
"list"
>
</
xsl:apply-templates
>
</
table
>
</
xsl:if
>
</
xsl:template
>
<
xsl:template
name
=
"EditLink"
>
<
xsl:if
test
=
"udt:EditLink"
>
<
a
href
=
"{udt:EditLink}"
>
<
img
border
=
"0"
alt
=
"edit"
src
=
"{//udt:Context/udt:ApplicationPath}/images/edit.gif"
/>
</
a
>
</
xsl:if
>
</
xsl:template
>
<
udt:template
listType
=
"table"
delimiter
=
";"
listView="<tr> <
td
><
a
href="[Link_UDT_Url]">[Menu_IMG]</
a
></
td
> </
tr
> <
tr
height="7px"> <
td
>[ ]</
td
> </
tr
>" headerView="" detailView="[UDT:ListView][UDT:EditLink] <
table
> <
tr
> <
td
class="normalBold">Title</
td
> <
td
class="Normal">[Title]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Menu_IMG</
td
> <
td
class="Normal">[Menu_IMG]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Thumbnail_IMG</
td
> <
td
class="Normal">[Thumbnail_IMG]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Vertical_IMG</
td
> <
td
class="Normal">[Vertical_IMG]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Horizontal_IMG</
td
> <
td
class="Normal">[Horizontal_IMG]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Ministry_Area</
td
> <
td
class="Normal">[Ministry_Area]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Link</
td
> <
td
class="Normal">[Link]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Mini_Text</
td
> <
td
class="Normal">[Mini_Text]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Main_Text</
td
> <
td
class="Normal">[Main_Text]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Sort_Order</
td
> <
td
class="Normal">[Sort_Order]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Expires</
td
> <
td
class="Normal">[Expires_UDT_Value]</
td
> </
tr
> <
tr
> <
td
class="normalBold">IsWorship</
td
> <
td
class="Normal">[IsWorship]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Created by</
td
> <
td
class="Normal">[Created by]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Created at</
td
> <
td
class="Normal">[Created at_UDT_Value]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Changed by</
td
> <
td
class="Normal">[Changed by]</
td
> </
tr
> <
tr
> <
td
class="normalBold">Changed at</
td
> <
td
class="Normal">[Changed at_UDT_Value]</
td
> </
tr
> </
table
>" trackingEmail="" />
</
xsl:stylesheet
>