473,566 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript" SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

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

<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:C1******** *************** ***********@mic rosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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:styleshe et 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:styleshe et xmlns:xsl="http ://www.w3.org/TR/WD-xsl">
<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:C1******** *************** ***********@mic rosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:67******** *************** ***********@mic rosoft.com...
Hi
but My StyleSheet element is already

<xsl:styleshe et 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:styleshee t xmlns:xsl="http ://www.w3.org/TR/WD-xsl">
<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:C1******* *************** ************@mi crosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:67******** *************** ***********@mic rosoft.com...
Hi
but My StyleSheet element is already

<xsl:styleshe et 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:styleshe et xmlns:xsl="http ://www.w3.org/TR/WD-xsl">
<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:C1******** *************** ***********@mic rosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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**@discussio ns.microsoft.co mwrote in message
news:95******** *************** ***********@mic rosoft.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:styleshee t version="1.0"
xmlns:xsl="htt p://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**@discussio ns.microsoft.co mwrote in message
news:67******* *************** ************@mi crosoft.com...
Hi
but My StyleSheet element is already

<xsl:styleshe et 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:styleshee t xmlns:xsl="http ://www.w3.org/TR/WD-xsl">
<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:C1******* *************** ************@mi crosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>

XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>

<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>

</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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:styleshe et 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**@discussio ns.microsoft.co mwrote in message
news:67******** *************** ***********@mic rosoft.com...
Hi
but My StyleSheet element is already
>
<xsl:styleshe et 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:styleshee t xmlns:xsl="http ://www.w3.org/TR/WD-xsl">
<xsl:styleshe et 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**@discussio ns.microsoft.co mwrote in message
>news:C1******* *************** ************@mi crosoft.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>
<SubCategorie s>
<SubCatDescr>On Road</SubCatDescr>
<SubCatId>1</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >2ndHand</SubSubCatDescr>
<SubSubCatId> 1</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?2ndHand</URL>
</SubSubCategorie s>
<SubSubCategori es>
<SubSubCatDescr >New</SubSubCatDescr>
<SubSubCatId> 2</SubSubCatId>
<URL>MainAds.as px?Vehicles?OnR oad?New</URL>
</SubSubCategorie s>
</SubCategories>
<SubCategorie s>
<SubCatDescr>AT V</SubCatDescr>
<SubCatId>4</SubCatId>
<URL>MainAds.as px?Vehicles?ATV </URL>
</SubCategories>
</Categories>
<Categories>
<CategoryDescr> Books</CategoryDescr>
<CategoryId>2 </CategoryId>
<SubCategorie s>
<SubCatDescr>St udentTexts</SubCatDescr>
<SubCatId>9</SubCatId>
<SubSubCategori es>
<SubSubCatDescr >CourseAndYea r</SubSubCatDescr>
<SubSubCatId>11 </SubSubCatId>
<URL>MainAds.as px?Books?Studen tTexts?CourseAn dYear</URL>
</SubSubCategorie s>
</SubCategories>
</Categories>
</CategoriesList>
>
XSLT :
<xsl:styleshe et 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="javas cript"
SRC="listN.js"> </SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAl l('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAl l('UL')">Hide All</BUTTON>
>
<H1><xsl:valu e-of select="Categor iesList/@TYPE" /></H1>
<UL><xsl:appl y-templates select="Categor iesList/Categories" /></UL>
<!--- <UL><xsl:appl y-templates
select="Categor iesList/Categories/SubCategories" /></UL-->
</BODY>
</HTML>
</xsl:template>
>
<xsl:template match="Categori es">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="Categor yDescr" />
>
>
<xsl:if test="SubCatego ries">
<UL>
<xsl:for-each select="SubCate gories">
<LI CLASS="clsHasKi ds">
<xsl:value-of select="SubCatD escr" />
<xsl:if test="SubSubCat egories">
<UL>
<xsl:for-each select="SubSubC ategories">
<LI>
<A TARGET="main">
<xsl:attribut e name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubSubC atDescr" />
</A>
</LI>
</xsl:for-each>
</UL>
</xsl:if>
>
</LI>
</xsl:for-each>
</UL>
</xsl:if>
</LI>
<xsl:if test="Categorie s">
<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
1855
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 DocBook chunk stylesheet, but it seems to me that retaining the structural markup of XML formats (i.e., the marking out of salient properties of a text...
12
3206
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 (xml->html) doen't happen! I have XSLT files for this, they work, I mean when I put the output of the app as an XML file on some server, and make it use...
5
7619
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 business components that can be consumed by WebForms, WinForms, mobile devices, etc? Is it even fair to compare the such technologies? - How about for...
12
10139
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 scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a...
17
2531
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 with a link to old information that suggests use of "navigator": http://developer.irt.org/script/43.htm
4
2518
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' TargetSchema='http://schemas.microsoft.com/intellisense/ie 5' %> <asp:Panel id="Panel_welcome" runat="server" xmlns:asp="remove"> <asp:Image id="Image_welcome"
2
1682
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 of the source XML and opening it using MS Internet Explorer. The problem is that testing it under the ultimate actual process from Ant using the...
4
1549
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 dealing with XML file tags used DOM. var options = xmlDocument.getElementsByTagNameNS(null,"myXMLTag"); doMyFunctionWithHTMLDOM(options);
3
9563
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 difference between two source documents and output node-sets which are "different" (changed or new) to new XML files using xsl:result-document To...
0
7666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.