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

Re: How to simplify this?

Subject: Re: How to simplify this?
From: a.m@xxxxxxxxxxx
Date: Thu, 23 Sep 2004 11:56:31 +0200
simplify m m
Hi!

>>>
> > can you post a small example?
>>>

Yes, following code:

<?xml version="1.0" standalone="yes"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
	<xsl:output method="html" encoding="UTF-8" />
	<xsl:template match="/">
	<xsl:variable name="thead_id" select="1" />
	<xsl:variable name="tbody_id" select="2" />
		<html>
			<head>
				<title>test</title>
			</head>
		</html>
		<body>
		<a href="" onclick="setArrow(
{position()-1}),'{$thead_id}' ); return sortTable(
'{$tbody_id}',{position()-1} );" > test </a>
		</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

produce this in XML-SPY from Altova:

<html>
<head><META http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>test</title></head></html><body>
<a href="" onclick="setArrow( 0),'{$thead_id}' ); return sortTable(
'{$tbody_id}',0 );"> test </a>
</body>
</html>

But if i run this short example on command line with vbscript (MSXML
4), so the output is correct.
When i run my big xsl-file, so i get vb-script error on the line. I
don't know why. Can i send you my xsl and xml direct, so you can see
the problem?


Best regards
A. Metz

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.