RE: Question on xsl translation of static xml

Marco Pas <[email protected]> Wed, 1 Oct 2003 07:59:01 +0200
Newsgroups gmane.comp.web.maverick.general
Message-ID <D1D50F9C5151D2119FF000104BB3F9B705916A62@NL-ROT-MAIL02>
Jeff,

I am not using domify as the default-view type...

I just took the maverick.xml from the friendbook-jsp example, and
implemented the xsl transformation as stated
below.

<maverick version="2.0" default-view-type="document"
default-transform-type="document">
	<views>
	</views>

	<commands>
		<command type="document" name="testfile">
			<view path="data.xml">
				<transform path="xslfile.xsl"/>
			</view>
		</command>
	</commands>
</maverick>

I thought that this would work fine, but it just returned the xsl file noted
on the transform path, i guess that i am missing
something on my understanding of Maverick... Could you please point me in
the right direction ?

Regards,
Marco

-----Original Message-----
From: Schnitzer, Jeff [mailto:[email protected]]
Sent: dinsdag 30 september 2003 20:38
To: [email protected]
Subject: RE: [Mav-user] Question on xsl translation of static xml


> From: Marco Pas [mailto:[email protected]]
> 
> i want to do a xml translation on a specific file and am using the
> following
> in my maverick.xml:
> 
> 
> <command name="testfile">
> 	<view path="data.xml">
> 		<transform path="xslfile.xsl"/>
> 	</view>
> </command>
> 
> The problem is that i receive my xsl file and not the transformation..
> Any hints on how to accomplish this ?

This works fine, friendbook-domify has an example.

A guess:  Are you using "domify" as the default-view-type?  If so, you
need to explicitly set the view type to "document" if you want a
document source.

<view type="document" path="data.xml">
	<transform path="xslfile.xsl"/>
</view>

Jeff Schnitzer
[email protected]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]