Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: RDF to HTML with XSLT >Thread Next - Re: RDF to HTML with XSLT Re: RDF to HTML with XSLTTo: NULL Date: 1/7/2005 7:19:00 AM Joris, Sorry about that I did have the xsl included in the code I tried (just a typo when typing in here) sorry for the confusion. Anyway your right it works with the snipped data that I posted. Turns out that the error was occuring much later in the full xml document when encountering an é character and thats the data I was testing with. I have had this issue alot and have no idea why when encoding is set to utf-8 that this would cause a problem usually I have control of the data source and replace any extended characters like that but clearly thats not an option here any idea what to do to resolve this? BTW the Microsoft.XMLDOM blows at reporting errors when I moved it all to client side stuff and declared an xsl in the xml document I got the proper error reported server side with the object just fails and makes no error report (even though an error catch is explictly called). Anyway any help on the extended character thing would be VERRRRYYYYY helpful I guess its about time I figured out how to avoid eh??? Thanks again, Jason "Joris Gillis" wrote: > > Thanks for the reply but if you are suggesting that the rdf/document should > > contain that namespace I have no ability to make that happen and frankly not > > sure why that would even be required as I have never seen it need in an xml > > document before. > > > > If you mean my xslt then look again I have the xsl namespace on the third > > line being the first namespace declared. > > I didn't say you forgot to declare the namespace, I said you omitted the 'xsl' prefix where needed. > > > I did try the example that you > > listed before posting and it did not work. Did you manage to make it work for > > you or posted without trying it? > > Sure I did (I always do) and it worked. > Given your XML document and the following stylesheet: > > <?xml version='1.0' encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns:mq="http://musicbrainz.org/mm/mq-1.1#" > xmlns:mm="http://musicbrainz.org/mm/mm-2.1#" > xmlns:az="http://www.amazon.com/gp/aws/landing.html#" > exclude-result-prefixes="rdf dc mq mm az"> > > <xsl:output omit-xml-declaration="yes" method="html"/> > <xsl:template match="rdf:RDF"> > > <xsl:for-each select="mm:Album"> > <xsl:value-of select="dc:title"/> > </xsl:for-each> > > </xsl:template> > </xsl:stylesheet> > > The output looks like: > The Best of Leonard Cohen (disc 2) Diamonds in the Mine Field > > That's what you want isn't it? > > ( > You could also add > xmlns="http://www.w3.org/1999/XSL/Transform" (Notice the difference with 'xmlns:xsl=...') > to your original stylesheet but that's a rather unusual thing to do. > ) > > regards, > -- > Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) > "Quot capita, tot sententiae" - Terentius , Phormio 454 > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
