ANZLIC The Spatial Information Council  
[Jurisdictions][Home][Contact Us][Site Map][Site Search][Glossary]  
 

 

ASDI-L Mailing List Archive

From: David Crossley ([email protected])
Date: Thu Jun 05 2003 - 13:39:26 EST


Andrew Hallam wrote:
> Hi All,
>
> I have used David's style sheet to set up a very quick example of
> client-side transformation. If you have a browser that supports
> in-browser XSL transforms you should be able to view the following
> page and see it rendered as XHTML in your browser.

Oh dear, i had hoped to encourage server-side transformation,
as the note inside the XSL mentions. Due to massive inconsistencies
with browsers, and other reasons such as efficiency, it is far better
to do this job there and the server can just send standard XHTML to
the client. Everyone should see Apache Cocoon if they are not yet
converted - http://cocoon.apache.org/

> http://www.canri.nsw.gov.au/demo/xsl/anzns0359000889.xml
>
> Notes:
>
> 1. This has only been tested in Internet Explorer 6.

Yuk :-)

> 2. This was a quick test so I have commented out the Document Type
> Declaration in the XML document to eliminate entity issues.

That is another reason that XML transformation is a server-side thing.
One cannot go around hacking the xml metadata records to remove that
declaration and to insert a relative stylesheet reference.

> 3. I edited David's stylesheet to produce a hard coded full URL back to
> the corresponding NRDD record. See "Metadata reference" at bottom of
> page.
>
> Kudos to David for putting the XSL in the public domain.

Thanks, i am glad that it encouraged some use. You never know,
Australia might wake up, start supporting true open source,
and get out of the clutches of M$ type "solutions".

--David


[#top]