cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: SVG - Including External CSS files
Date Fri, 19 Apr 2002 12:08:35 GMT
K,

you should use the proper <xsl:processing-instruction> element to handle
PIs, like in:

<xsl:processing-instruction name="xml-stylesheet">
	href="trafficsvg.css"
	type="text/css"
</xsl:processing-instruction>

Best regards,

P.S.
Nice map, BTW :)

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Kirwan, K. [mailto:K.Kirwan@CiTG.TUDelft.NL]
> Sent: Friday, April 19, 2002 12:59 PM
> To: 'cocoon-users@xml.apache.org'
> Subject: SVG - Including External CSS files
>
>
> I am trying to implement a SVG-based traffic-data system.
> I have an example site at
> http://130.161.12.237:8080/cocoon/traffic/traf-docs
>
> You should see my problems under the heading 'Cocoon Questions'
> The first of these examples takes
>  - a XML file and adds SVG elements via the XSL (without
> inline-formatting)
> These files are shown below the examples (events.xml/basemap1.xsl)
>
> The second has an SVG with styles provided by an external CSS file.
> The crucial difference here is that the SVG file has the
> following lines -
> ------------------------------------------------------------------
> ----------
> -----------------------------------
> <?xml version="1.0" encoding="iso-8859-1"?>
> <?xml-stylesheet href="trafficsvg.css" type="text/css"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
> "http://www.w3.org/2000/svg10-20000303-stylable">
> <svg id="regiodelft" width="600" height="660" viewBox="0 0 300000 330000">
> ..........
>
>
> How do i get the
> 	<?xml-stylesheet href="trafficsvg.css" type="text/css"?>
> tag into BASEMAP1.XSL
>
>
> Thanking you,
> Kieran Kirwan
> Researcher,
> Transportation and Traffic Engineering Section,
> Civiele Techniek,  TU Delft,
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message