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

Re: commenting an XML element [XSLT 1.0][xsltproc]

Subject: Re: commenting an XML element [XSLT 1.0][xsltproc]
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 18 Aug 2010 14:41:01 +0200
Re:  commenting an XML element [XSLT 1.0][xsltproc]
pankaj.c@xxxxxxxxxxxxxxxxxx wrote:
Thanks everybody for your thoughts.
Martin, just for the brevity below is the snippet of my sample xml, which is a table and <spec/> is actually is <colspec/> (copy pasted from the wrong snippet earlier)


<?xml version="1.0" encoding="UTF-8"?>
<!-- New document created with EditiX at Wed Aug 18 17:37:11 IST 2010 -->
<table id="t0010" frame="topbot" rowsep="0" colsep="0">
<label>Table 3-1</label>
<caption>
<simple-para id="sp0200" role="title">This is a dummy title.</simple-para>
<simple-para id="sp0210">Ranjan</simple-para>
</caption>
<source>Source if present.</source>
<tgroup cols="2">
<colspec colname="col1"/>
<colspec colname="col2"/>
<thead valign="top">
<row>
<entry rowsep="1" align="left">Abbreviation</entry>
<entry rowsep="1" align="left">Dosage Interval</entry>
</row>
</thead>
<!-- More code here -->
</tgroup>
</table>


Stylesheet snippet is same as posted earlier and I just tried using "XALAN" in editix2010sp1 and got the following error.

Error:
==================================
No character data is allowed between top-level elements
No character data is allowed between top-level elements
No character data is allowed between top-level elements
No character data is allowed between top-level elements

Failed to compile stylesheet. 4 errors detected.

If I select the first error it highlights line
<entry rowsep="1" align="left">Dosage Interval</entry>

I don't know that tool but if it failed to compile the stylesheet then it is rather odd that the error should occur in the source document, there seem to be problems with the stylesheet itself, namely character data other than white space between top level elements (i.e. between xsl:template elements or other elements like xsl:output).






--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.