Your good code is XSLT, your bad code is WD-xsl.
You have discovered that XSLT and WD-xsl are two different languages,
and that XSLT is better than WD-xsl. Congratulations.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> SAL ROSALES Jr.
> Sent: 12 November 2002 16:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: namespace problems???
>
>
> Hi,
>
> I don't know if this is actually a names pace problem
> but here it is. I have a few XSL files that set
> reference variables using the xsl:param tags, then
> these variables are used to reference the location of
> style sheets, which is cool because I don't want to
> hardcode the URL locations. I tried using the
> xsl:param tags in another file but I get errors saying
> 'invalid argument'. I guess I just don't know enough
> of the syntax to copy the good document's code that is
> working into the bad one. Here is the GOOD code and
> the BAD code in respective order so you can see what
> I'm talking about.
>
>
> <!--GOOD CODE - THIS WORKS - BEGIN-->
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> xmlns:local="#local-functions"
> xmlns:xql="#xql-fucntions"
> xmlns:auto-nsl="http://www.w3.org/TR/WD-xsl"
> xmlns:dav="DAV:"
>
> xmlns:office="urn:schemas-microsoft-com:office:office"
>
> xmlns:pub="urn:schemas-microsoft-com:publishing:">
> <xsl:param name="g_dataURL"></xsl:param>
> <xsl:param name="g_workspaceURL"></xsl:param>
> <xsl:param name="g_isauthor"></xsl:param>
>
> <xsl:output method="xml" indent="yes"
> omit-xml-declaration="yes"/> <xsl:output method="html"/>
> <xsl:template match="/"> <STYLE><![CDATA[
> .link{
> cursor:hand;
> text-decoration: underline;
> font-style: normal;
> color: c50400;
> }
> ]]>
> </STYLE>
> <xsl:variable name="g_href"><xsl:value-of
> select="/dav:multistatus/dav:response/dav:href"/></xsl:variable>
> <xsl:variable name="g_lastmodified"><xsl:value-of
> select="/dav:multistatus/dav:response/dav:propstat/dav:prop/da
> v:getlastmodified"/></xsl:variable>
> <xsl:variable name="g_creation"><xsl:value-of
> select="/dav:multistatus/dav:response/dav:propstat/dav:prop/da
> v:creationdate"/></xsl:variable>
> <LINK rel="stylesheet">
> <xsl:attribute name="href"><xsl:value-of
> select="$g_workspaceURL"/>/portal/resources/fidash.css</xsl:attribute>
> </LINK>
> <LINK rel="stylesheet">
> <xsl:attribute name="href"><xsl:value-of
> select="$g_workspaceURL"/>/portal/resources/fidash.css</xsl:attribute>
> </LINK>
> .....code of course continues
> <!--GOOD CODE - THIS WORKS - END-->
>
> <!--BAD CODE - I HAVE TO HARD CODE LOCATION OF MY
> STYLE SHEETS - BEGIN-->
> <?xml version='1.0'?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/TR/WD-xsl"
> xmlns:dav="DAV:"
>
> xmlns:f="urn:schemas-microsoft-com:publishing:"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>
> xmlns:office="urn:schemas-microsoft-com:office:office">
>
> <xsl:template match="/">
> <LINK rel="stylesheet">
> <xsl:attribute
> name="href">http://myserver/workspace/portal/resources/global.
> css</xsl:attribute>
> </LINK>
> <LINK rel="stylesheet">
> <xsl:attribute
> name="href">http://myserver/workspace/portal/resources/fidash.
> css</xsl:attribute>
> </LINK>
> ...code continues.
>
> <!--BAD CODE - - END-->
>
> Thanks
>
> Sal
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|