[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

My stylesheet not finding nodes

Subject: My stylesheet not finding nodes
From: John Sturman <john@xxxxxxxxxxxxxxxx>
Date: Tue, 05 Aug 2003 16:14:58 -0400
john sturman
Hello all,

I am having a problem with my stylesheet in that certain templates are not being accessed at all. I can only assume that the xpath expression I am testing for is not being matched. For the life of me, I can't see what is wrong. I am attaching the top of my xml file and also the templates I am troubleshooting.


XML (this file consists of many (~80) html elements


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE meta_xhmtl SYSTEM "c:\DF\docframe.dtd" [
	<!-- Begin Document Specific Declarations -->
	<!NOTATION gif SYSTEM "">
	<!ENTITY img1 SYSTEM "c:\DF\pubfield.gif" NDATA gif>
	<!ENTITY img2 SYSTEM ".c:\DF\static.gif" NDATA gif>
	<!ENTITY img3 SYSTEM "c:\DF\pubmethod.gif" NDATA gif>
	<!ENTITY img4 SYSTEM "c:\DF\pubproperty.gif" NDATA gif>
	<!ENTITY img5 SYSTEM "c:\DF\protmethod.gif" NDATA gif>
	<!ENTITY img6 SYSTEM "c:\DF\\protproperty.gif" NDATA gif>
	<!-- End Document Specific Declarations -->
]>
<?xml-stylesheet href="c:\BK\msdn.css" type="text/css"?>
<meta_xhmtl>
	<html dir="LTR">
		<filename type="filename">filename here</filename>
		<body id="bodyID" class="dtBODY">
			<div id="nsbanner">
				<div id="TitleRow">
					<h1 class="dtH1">Some text here</h1>

XSLT

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon">
<xsl:output method="xml" omit-xml-declaration="yes" version="1.0" encoding="UTF-8" indent="no" />


   <xsl:template match="/">
      <xsl:apply-templates />
   </xsl:template>

   <xsl:template match="node() | @*">
<!-- <xsl:message>identity template</xsl:message> -->
      <xsl:copy>
         <xsl:apply-templates select="node() | @*" />
      </xsl:copy>
   </xsl:template>

<xsl:variable name="dir">c:\temp\htmls</xsl:variable>

   <xsl:template match="/meta_xhmtl/html">
      <xsl:variable name="filename">
         <xsl:value-of select="filename" />
      </xsl:variable>

      <saxon:output href="{$dir}\{$filename}.html">
...


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.