xsl-list
[Top] [All Lists]

RE: [xsl] XSLT 1: template inside of template?

2006-10-30 12:16:01
Yeah, as written, that stylesheet is not legal.

Perhaps it was a "test", see how you coped with confrontation or
something...

OT, but any company that would play such mind games during the interview
deserves to go out of business.

b.

-----Original Message-----
From: Joe Fawcett [mailto:joefawcett(_at_)hotmail(_dot_)com]
Sent: Monday, October 30, 2006 12:04 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] XSLT 1: template inside of template?

You're correct, sounds like they seriously need an XSLT expert.
Perhaps it was a "test", see how you coped with confrontation or
something...

Joe


From: "Chris Loschen" <christopher(_dot_)loschen(_at_)oracle(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: "xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com"
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] XSLT 1: template inside of template?
Date: Mon, 30 Oct 2006 13:58:08 -0500

Hi all,

I don't have my reference book in front of me. I just wanted a quick
sanity
check.

I just got out of an interview and one of the questions was about
XSLT
1.0.
The sample code looked like this:

<xsl:template .>
<tag1.>
<!-- various stuff -->
<xsl:template .>
<!-- more stuff -->
</xsl:template>
</tag1>
<!-- more stuff -->
</xsl:template>

I pointed out to the interviewer that this wasn't legal: you can't
have
an
xsl:template inside another xsl:template. She said that it was copied
from
a working stylesheet, so it had to be legal, but I think there had to
be
a
copy-and-paste error or something in there.

Am I crazy? (Well, let's leave that one aside. am I crazy about
this?)
XSLT
doesn't allow an xsl:template inside of another xsl:template, right?

Thanks.

Chris Loschen


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--