|
Subject: RE: [xsl] XSLT Processor Detection From: "Kevin Nardi" <kevnardi@xxxxxxxxxxx> Date: Wed, 25 Jul 2001 12:28:03 -0700 |
<?xml version="1.0"?> <?xml-stylesheet href="xslProcessorCheck.xsl" type="text/xsl"?>
<html xsl:version="1.0"
xmlns:msxsl="http://www.w3.org/TR/WD-xsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/xhtml1/strict">
<head>
<title>XSLT Processor Version</title>
</head>
<body>
<script>
var version = "old";
</script>
<xsl:choose>
<xsl:when test="false()">
<msxsl:if test=".">
<script>version = "old";</script>
</msxsl:if>
</xsl:when>
<xsl:otherwise>
<msxsl:choose>
<msxsl:when test=".">
</msxsl:when>
<msxsl:otherwise>
<script>version = "new";</script>
</msxsl:otherwise>
</msxsl:choose>
</xsl:otherwise>
</xsl:choose>From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] XSLT Processor Detection Date: Wed, 25 Jul 2001 09:56:05 +0100
> I'm trying to figure out what XSLT processor a browser is > running, so I > copy/pasted the processor-version.xsl source
> <html xsl:version="1.0" > xmlns:msxsl="http://www.w3.org/TR/WD-xsl" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Mixing WD-xsl and XSLT in the same stylesheet is like mixing COBOL and FORTRAN in the same program. It doesn't work.
Mike Kay Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] XSLT Processor Detection, Michael Kay | Thread | Re: [xsl] XSLT Processor Detection, cutlass |
| Re: [xsl] Re: producing php with xs, Janning Vygen | Date | Re: [xsl] Re: producing php with xs, Rob Lugt |
| Month |