Yes, the browser's stylesheet in IE is the collapsible tree. The colors are all applied via a default stylesheet that resides on the OS.
If you spit out a XML document directly to a xml-accepting browser, it will automatically apply the default stylesheet. I'd like to be able to specify a variable into my JSP page that tells "don't transform" and then nothing is applied. I guess I could put scriplet logic around my <x:transform> tags, but I was hoping for a cleaner way. I'd also like to be able to use the x:transform tag in the same way the <?xml-stylesheet?> declaration is used. It allows you to specify the media="wap" for instance, and will apply this stylesheet for a wap device. <?xml-stylesheet href="html.xsl" type="text/xsl" media="html"?> <?xml-stylesheet href="wap.xsl" type="text/xsl" media="wap"?> What I'd like to do is mimic the above behavior using the x:transform tag. I tried to come up with examples, but couldn't figure out a way to do it. The main problem is that x:transform has to wrap the xml document - unless I was to have separate documents that did the transformation. Then I could have: <c:import url="/pages/jspWithXML.jsp" var="xml"/> <c:import url="/styles/html.xsl" var="html"/> <c:import url="/styles/wap.xsl" var="wap"/> <x:transform source="$xml" media="$html"/> <x:transform source="$xml" media="$wap"/> ????? I don't know, I have a client that wants to use XML and XSL to render the client - so we can plug a WAP interface on later by defining a new stylesheet. I guess what I'm trying to say is that if I wrap my xml-emitting JSP's with the <x:transform> tag - I still feel like I'm locked into one XSL stylesheet. Any ideas? On 1/28/02 3:41 PM, "Chen, Gin" <[EMAIL PROTECTED]> wrote: > Shawn and Matt, > Pardon my ignorance, what is the browser's style sheet? > You mean that collapsible tree that u see in IE? > -Tim > > -----Original Message----- > From: Shawn Bayern [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 28, 2002 5:30 PM > To: Tag Libraries Users List > Subject: Re: x:tranform and no stylesheet > > > On Mon, 28 Jan 2002, Matt Raible wrote: > >> Is it possible to not specify a stylesheet for the x:transform tag - >> so it renders with the browsers default stylesheet? > > Hi Matt. I might be misunderstanding the question, but if you want the > browser to render a document, why transform it on the server with > <x:transform>? And if you're going to transform it with <x:transform>, > what mechanism is in place for the server to learn of the browser's > stylesheet? Sent using the Entourage X Test Drive. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
