10/20 I need to wrap a css file with "<xml><css>" so that I can embed it
in a file and also link to it. But doing so causes the linked-to
version to ignore the first style-- any ideas as to why this
happens?
\_ Is there really a <css> tag? Your question doesn't make sense?
What are you actually trying to do?
\_ Actually, I just need the "xml" tag-- I want to be able to
embed the stylesheet in an html file created by XSL
(requires an xml tag in the referenced document) yet
still use the stylesheet via a <link href="..."> tag.
\_ Aah, so you're trying to use one style sheet file
that will work in both XML and HTML, despite them having
different syntax. If you're using Apache, make two style
sheet files. One will be for HTML syntax, without the
<xlm> tag. the other will have an opening <xml> tag
and then an SSI include of the HTML version, and then
and then an SSI include of the HTML version:
<!--#include file="yourstyle.css" -->, and then
will be included by apache when it reads it.
the closing </xml> tag. It will have ony three lines.
you only need to make changes to the first one, and it
will be included by apache when it reads it. You might
have a problem with mime types: What will be the extension
of the XML/XSL filename?
\_ That's a good idea, but it won't work for me here.
I'm using an XSLT converter that uses
<xsl:value-of select="document(mycss.css)" /> and
apache isn't part of the equation. I think I might
just have to choose one or the other. |