This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: 2 problems with variables(include & frame)
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 30 Apr 2002 12:24:10 +0100
- Subject: RE: [xsl] 2 problems with variables(include & frame)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> FIRST:
> ...
> <xsl:param name="lang"/>
> <xsl:include href="/dir/myfile{@lang}.xsl"/> <!-- myfileen.xsl ,
> myfilefr.xsl , myfileit.xsl , etc -->
>
The href attribute of <xsl:include> is a URI. It doesn't allow XPath
expressions or attribute value templates.
>
>
> SECOND:
> ....
> <frame ..... src="/dir/myfile.jsp?lang={$lang}&grp={$grp}"/>
>
> --> 'lang={$lang}' works , but '&' not allowed (escape character?)
"&" in XML documents must always be escaped as "& amp;" (without a space).
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list