OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Safari and rendering XML with XSL

[ Lists Home | Date Index | Thread Index ]


Safari derives from KHTML and has no XSLT processing abilities AFAIK.

hth,

Manos

shri kanekal wrote:

> Jim,
>     thanks - it was my cut & paste errors. I tried the
> 
> new style sheet declaration as well - to no avail. I 
> also tried the "<?xml" with and without document
> encoding (both UTF and ISO). I also validated both XML
> and the XSl style sheets - both passed. I think
> "text/xsl" is valid.
> - shri
>     
> --- "J.Pietschmann" <j3322ptm@yahoo.de> wrote:
> 
>>shri kanekal wrote:
>>
>>
>>>I am trying to render simple XML using XSL 
>>>on Safari ( see xml and XSL code below) browser
>>>on a MAC (OSX panther). The XML is displayed
>>>without the "table" format simply as 
>>>John G Doe
>>>but the XSl shows up fine as an empty table.
>>>Any ideas as tyo what's going on ?
>>
>>Depending on how well you copied the code, quite a
>>bit:
>>
>>><?xml version="1.0" encoding="UTF-8"?> 
>>><?xml-stylesheet type="text/xsl" href="name.xsl"?>
>>>
>>><!DOCTYPE Names [
>>><!ELEMENT Names (name)*>
>>><!ELEMENT Name (first,middle,last)>
>>><!ELEMENT first (#PCDATA)>
>>><!ELEMENT middle (#PCDATA)>
>>><!ELEMENT last (#PCDATA)>
>>>]>
>>><Names>
>>><Name>
>>
>>If the parser validated your XML, it would fail. XML
>>element
>>names are case sensitive. "Name" is different from
>>"name".
>>Fortunately for you, the parser probably didn't
>>stumble about
>>this.
>>
>>
>>> <first>John</first>
>>> <middle>G</middle>
>>> <last>Doe</last>
>>></Name>
>>>*******************************
>>
>>This one is more serious: the closing tag for
>><Names> is missing.
>>I'll assume this is an artefact from copy+pasting
>>the source.
>>
>>
>>><?xml version="1.0" ?> 
>>><xsl:stylesheet version="1.1"
>>>xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
>>><!-- 
>>>     ****************************
>>>     The above line works for IE5
>>>     **************************** 
>>>-->
>>><!--
>>><xsl:stylesheet version="1.1"
>>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>>>-->
>>><!-- 
>>>     *********************************
>>>     The above line works for Mozilla
>>>     ********************************* 
>>>-->
>>
>>Yuou are running Safari, which is a Mozilla deriate.
>>However,
>>you left the deprecated stylesheet declaration valid
>>only for
>>old IEx installations in your stylesheet, while the
>>correct one
>>was commented out. All in all, the XSLT is a no-op.
>>
>>BTW
>> > <?xml-stylesheet type="text/xsl"
>>href="name.xsl"?>
>>
>>THere is no officially registered MIME type
>>"text/xsl". The correct
>>MIME type is "text/xml", unfortunately IEx wont
>>understand this.
>>Mozilla and probably Safari should understand both
>>"text/xsl" and
>>  "text/xml".
>>
>>J.Pietschmann
>>
>>
> 
> -----------------------------------------------------------------
> 
>>The xml-dev list is sponsored by XML.org
>><http://www.xml.org>, an
>>initiative of OASIS <http://www.oasis-open.org>
>>
>>The list archives are at
>>http://lists.xml.org/archives/xml-dev/
>>
>>To subscribe or unsubscribe from this list use the
>>subscription
>>manager: <http://lists.xml.org/ob/adm.pl>
>>
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS