472,995 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,995 software developers and data experts.

XSLT and browser differences...(Mozzie err. and they dunno)

Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript" SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town
Jul 27 '06 #1
6 1531
Change your StyleSheet element to the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town

Jul 27 '06 #2
Hi
but My StyleSheet element is already

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

Tx
neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
Change your StyleSheet element to the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town


Jul 27 '06 #3
Sorry Neal, I must have copied the wrong one:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
Hi
but My StyleSheet element is already

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

Tx
neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
>Change your StyleSheet element to the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>>
--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:C1**********************************@microso ft.com...
Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum
and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town



Jul 27 '06 #4
Thought it must have been something like that, some finger trouble or such
like.
Thanks Kevin.

ps ,Have to ask, .. what on earth is a professional Chicken Magician ?
kinda blows my mind, .. local or stateside colloquialism which has not been
made publicly available via the Hollwwood machine to the rest of the world
yet?
(Actually I gotta be careful, your side of the village, has a very different
take on the word blow as well.. just rather not go there)

cheers
Neal

--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
Sorry Neal, I must have copied the wrong one:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
Hi
but My StyleSheet element is already

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

Tx
neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
Change your StyleSheet element to the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum
and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town


Jul 28 '06 #5
My pleasure, Neal, and sorry for the erroneous paste.

Your confusion is understandable. I like satisfy my creative urges by
creating various proverbs and job titles for myself that are a bit on the
esoterically humorous side, by playing with the English language, and
(mostly) popular English expressions. "Chicken Magician" is a title I
created as a replacement for "Chicken Salad Alchemist," which was my most
recent self-appellation. "Chicken Salad Alchemist" comes from the expression
"making chicken salad out of chicken s**t" - an expression used especially
in the vocation of carpentry, but other "building-related" occupations, and
is a humorous way of talking about creating something excellent when given
poor resources, conditions, or requirements. As you are probably aware,
alchemists were medieval scientists (of sorts) whose ultimate ambition was
to make gold out of lead. They never succeeded, but did manage to learn and
pass on quite a lot of chemistry knowledge.

"Chicken Magician" is a slight transformation of the "Alchemist" expression.
It is also a play on words for a product that was sold on American
television commercials years ago, called the "Kitchen Magician." It is
apparently, in fact, still around, and sold on the Internet (see
http://www.realcoolsavings.com/product/KTMAGIC2.html).

I enjoy being a bit on the obscure side with my humor. As my Uncle Chutney
sez, "Ambiguity has a certain quality to it." It is the things we do *not*
understand that we find the most fascinating, especially if it seems that
understanding is not too far out of reach, but might possibly be attainable.

Of course, I do have a job and a job title, but prefer to have fun with my
signature block, as I don't have any real need to advertise myself or my
skill set any more these days.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:95**********************************@microsof t.com...
Thought it must have been something like that, some finger trouble or such
like.
Thanks Kevin.

ps ,Have to ask, .. what on earth is a professional Chicken Magician ?
kinda blows my mind, .. local or stateside colloquialism which has not
been
made publicly available via the Hollwwood machine to the rest of the world
yet?
(Actually I gotta be careful, your side of the village, has a very
different
take on the word blow as well.. just rather not go there)

cheers
Neal

--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
>Sorry Neal, I must have copied the wrong one:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:67**********************************@microso ft.com...
Hi
but My StyleSheet element is already

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

Tx
neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:

Change your StyleSheet element to the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:C1**********************************@microso ft.com...
Hi All,

I wrote a TOC treeview using xml and xslt, with help from this forum
and
MSDN help(thanks)

Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "

And the Mozilla forums have no answer, so... hopefully here !

TIA
Neal

beneath is the XSLT and some of the XML (which invokes the XSLT)

The XML:

<?xml-stylesheet type='text/xsl' href='listN.xsl'?>

<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
--
Neal Rogers
University of Cape Town



Jul 28 '06 #6
obscure .. yes, particularly for non US citizens.
Makes sense though now.
Chicken Magician, Alchemist ... all terms which are synonymous with
"Programmer, Developer , AP .. etc" ..Nice!!

can relate,.. add a little "obtuse", remove a little "Obscure" and the same
like of the wonderful ambiguities in the Language, particularly us here who
have to deal with a vocab based in both UK and US English... (Creates mayhem
when playing scrabble !! or connotation games) ..and that kinda describes me,
incl mayhem.

later
Neal

--
Neal Rogers
University of Cape Town
"Neal" wrote:
Thought it must have been something like that, some finger trouble or such
like.
Thanks Kevin.

ps ,Have to ask, .. what on earth is a professional Chicken Magician ?
kinda blows my mind, .. local or stateside colloquialism which has not been
made publicly available via the Hollwwood machine to the rest of the world
yet?
(Actually I gotta be careful, your side of the village, has a very different
take on the word blow as well.. just rather not go there)

cheers
Neal

--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
Sorry Neal, I must have copied the wrong one:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Neal" <Ne**@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
Hi
but My StyleSheet element is already
>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
Tx
neal
>
>
--
Neal Rogers
University of Cape Town
>
>
"Kevin Spencer" wrote:
>
>Change your StyleSheet element to the following:
>>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>>
>--
>HTH,
>>
>Kevin Spencer
>Microsoft MVP
>Professional Chicken Magician
>>
>A man, a plan, a canal.
>a palindrome that has gone to s**t.
>>
>>
>"Neal" <Ne**@discussions.microsoft.comwrote in message
>news:C1**********************************@microso ft.com...
Hi All,
>
I wrote a TOC treeview using xml and xslt, with help from this forum
and
MSDN help(thanks)
>
Great in IE 6. (expect IE 5 as well, articles were circa 2000)
However, Mozilla FireFox (latest), gives me the following error.
" Error Loading Stylesheet: Parsing an XSLT stylesheet failed "
>
And the Mozilla forums have no answer, so... hopefully here !
>
TIA
Neal
>
>
>
beneath is the XSLT and some of the XML (which invokes the XSLT)
>
The XML:
>
<?xml-stylesheet type='text/xsl' href='listN.xsl'?>
>
<CategoriesList>
<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryId>1</CategoryId>
<SubCategories>
<SubCatDescr>OnRoad</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategories>
<SubSubCatDescr>2ndHand</SubSubCatDescr>
<SubSubCatId>1</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
</SubSubCategories>
<SubSubCategories>
<SubSubCatDescr>New</SubSubCatDescr>
<SubSubCatId>2</SubSubCatId>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
</SubSubCategories>
</SubCategories>
<SubCategories>
<SubCatDescr>ATV</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.aspx?Vehicles?ATV</URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr>Books</CategoryDescr>
<CategoryId>2</CategoryId>
<SubCategories>
<SubCatDescr>StudentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategories>
<SubSubCatDescr>CourseAndYear</SubSubCatDescr>
<SubSubCatId>11</SubSubCatId>
<URL>MainAds.aspx?Books?StudentTexts?CourseAndYear </URL>
</SubSubCategories>
</SubCategories>
</Categories>
</CategoriesList>
>
XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
<xsl:template match="/">
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>
>
<H1><xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<!--- <UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>
>
<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
>
>
<xsl:if test="SubCategories">
<UL>
<xsl:for-each select="SubCategories">
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubCatDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>
>
</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
>
>
--
Neal Rogers
University of Cape Town
>>
>>
>>
Jul 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
12
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation...
5
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
4
by: wtsnet | last post by:
I've got a usercontrol created on the fly using XSLT: <%@ Control Language='vb' AutoEventWireup='false' Codebehind='DynamicContent.ascx.vb' Inherits='System.Web.UI.UserControl'...
2
by: bravegag | last post by:
Hi all, I developed a transformation process that works beautifully when tested using MS Internet Explorer i.e. adding the <?xml-stylesheet type="text/xsl" href="../xslt/xmldiffs.xsl"?> on top...
4
by: RC | last post by:
Let's say: if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { // Now I got an XML object here var xmlDocument = XMLHttpRequestObject.responseXML; // next I have...
3
by: super.raddish | last post by:
Greetings, I am relatively new to, what I would call, advanced XSLT/XPath and I am after some advice from those in the know. I am attempting to figure out a mechanism within XSLT to compare the...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.