Subject: [xsl] Namespaces and XML From: "Nice, Kerry A. (LNG-SHEP)" <Kerry.Nice@xxxxxxxxxxxx> Date: Thu, 19 Apr 2001 12:28:44 -0600 |
Hi, I'm really confused now. I have an xml document something like: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE lnv:COURTCASE PUBLIC "-//LEXIS Publishing//DTD COURT CASE STRICT 1.000//EN" "COURTCASE-V01.dtd"> <lnv:COURTCASE cdi="11E200006B6700010008" lni="3WY3-VH40-0039-403H-00000-00" src="11E2" > </lnv:COURTCASE> The lnv: is all defined in the DTD which I have nothing to do with and can't really change anyways. But how do I get XSL to work with it. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lnv="COURTCASE-V01.dtd" version="1.0"> <xsl:output method="text"/> <xsl:template match="/"> { <xsl:call-template name="lnv:COURTCASE"/> <!-- <xsl:apply-templates/> --> } </xsl:template> <xsl:template match="lnv:COURTCASE"> Mmmbop </xsl:template> </xsl:stylesheet> If I try this XSL, which works if I strip off all the namespaces in the XSL and XML and just make everything COURTCASE instead of lnv:COURTCASE, I get two possible errors, or at least results that I don't want. If I use the template-match, it never finds the lnv:COURTCASE template. If I use call-template, I get "XSL Error: Could not find template named: COURTCASE-V01.dtd:COURTCASE". Am I missing something really basic here? Thanks, Kerry. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Porblem with Servlet Exec wit, Sagar Sharma | Thread | RE: [xsl] Namespaces and XML, sara . mitchell |
Re: [xsl] text output with some sig, Steve Renshaw | Date | Re: [xsl] text output with some sig, David Carlisle |
Month |