Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Basic question about XML and XSL in a web page [Thread Next] Re: Basic question about XML and XSL in a web pageTo: NULL Date: 2/2/2006 7:32:00 AM Do you mean by reading in via JavaScript? I had gone down that road but ran
into some difficulties, and read somewhere in a newsgroup that a
transformation was what should be done for what I'm trying to do...
I loaded the glossary.xml into a regular .html file via JS. It created an
array of terms, definitions, and ids:
for (i=0;i<theTerms[0].childNodes.length; i++){
definitionArray[i]=new Object();
definitionArray[i]["Word"]=
xmlDoc.childNodes[1].childNodes[i].childNodes[0].text;
definitionArray[i]["Definition"]=
xmlDoc.childNodes[1].childNodes[i].childNodes[1].text;
definitionArray[i]["Definition"]=
xmlDoc.childNodes[1].childNodes[i].childNodes[1].text;
}
I tried to write a mouse over function that would go into the XML
glossary's node and get the
"sl" wrote:
> If you're just focusing on display things such as tooltips, then don't
> forget that CSS alone (rather than Xslt) to render an Xml file can be very
> powerful and is supported on a number of browsers.
>
> steven :: http://stevenR2.com
>
>
> "Michael D." <MichaelD@d...> wrote in message
> news:375AE4C5-C015-4EB7-80BE-38341A42330B@m......
> > Martin,
> > Thanks for the suggestions. We are developing in a limited environment
> > (a
> > corporate training department), and don't have access to anything other
> > than
> > simple html files (and anything interesting I can do inside of such), as
> > well
> > as various Macromedia products. Can't do anything server side, our
> > courses
> > can't even directly interface with our Learning Management System (LMS)
> > yet...
> >
> > However, one advantage of the environment is that all the desktops of
> > learners are standardized on MSIE 6, so I can be pretty confident that
> > anything IE-specific that I develop will work. It is a 12,000+ employee
> > company, so I don't see any overnight change in browser standard
> > ocurring...
> > :-)
> >
> >
> >
> > "Martin Honnen" wrote:
> >
> >>
> >>
> >> Michael D. wrote:
> >>
> >> > I am just getting started with XML, trying to create a glossary.xml
> >> > file
> >> > to use in various internal e-learning courses. I've figured out how to
> >> > create a XSL transformation in my glossary.xml file, but I haven't
> >> > figured
> >> > out how to actually include my glossary.xml in a real live .html page,
> >> > and
> >> > have the transformations take effect.
> >>
> >> If you want to use XML and XSLT then consider doing that on the server
> >> (e.g. with ASP or with ASP.NET) where you can be sure you have an XSLT
> >> processor. Then you can simply build HTML documents dynamically and
> >> include anything you create as the result of an XSLT transformation.
> >>
> >> Doing XSLT client-side in the browser is pretty restricted, only IE 6
> >> with MSXML 3 comes with an XSLT 1.0 processor, then Mozilla/Firefox and
> >> recent Safari versions. But scripting XSLT transformations is different
> >> in IE 6 and Mozilla and as far as I know not possible in Safari.
> >>
> >> In terms of HTML all you can do is e.g.
> >> <iframe src="glossary.xml"></iframe>
> >> where glossary.xml then references your stylesheet e.g.
> >> <?xml-stylesheet type="text/xsl" href="glossaryStylesheet.xml"?>
> >>
> >>
> >> --
> >>
> >> Martin Honnen --- MVP XML
> >> http://JavaScript.FAQTs.com/
> >>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
