[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

namespace problems???

Subject: namespace problems???
From: "SAL ROSALES Jr." <salrosales@xxxxxxxxxxx>
Date: Tue, 12 Nov 2002 08:59:02 -0800 (PST)
xsl xmlns
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/dav:getlastmodified"/></xsl:variable>
<xsl:variable name="g_creation"><xsl:value-of
select="/dav:multistatus/dav:response/dav:propstat/dav:prop/dav: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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.