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

Re: question on xml-stylesheet processing instruction

Subject: Re: question on xml-stylesheet processing instruction for browsers
From: Michael Dykman <mdykman@xxxxxxxxx>
Date: Tue, 19 May 2009 08:15:29 -0400
Re:  question on xml-stylesheet processing instruction
Your stylesheet is lacking an output tag which contains key meta-data
for the tranform

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"

<xsl:output encoding="UTF-8" indent="no" media-type="text/html" method="html"

<xsl:template ...>

I am not sure what you are doing within the stylesheet..  there
certainly is no need to match the processing instruction,; that will
be handled auto-magically..  The first template need only look like so
to match the document  root:

<xsl:template match="/">

but I have no idea what yu or trying to achieve here, so I don't know
where it goes from there

On Tue, May 19, 2009 at 6:17 AM, Hermann Stamm-Wilbrandt
<STAMMW@xxxxxxxxxx> wrote:
> Hello,
> is it possible to chain execution of stylesheets if opening eg.
> "http://..../x.xml" in a web browser?
> By the pieces below "x.xml" will execute stylesheet "x.xsl" in the browser
> and replace the processing
> instruction's 'href="x.xsl" ' by 'href="y.xsl" ' in the generated output.
> What appears in the browser is the output of execution of stylesheet
> "x.xsl" only, no execution of "y.xsl".
> If chaining stylesheet execution is possible, what is missing?
> $ cat x.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?xml-stylesheet type="text/xsl" href="x.xsl"?>
> ...
> $ cat x.xsl
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/processing-instruction('xml-stylesheet')">
>  <xsl:processing-instruction name="xml-stylesheet">
>    <xsl:value-of select="substring-before(.,'href=')"/>
> href="y.xsl"</xsl:processing-instruction>
> </xsl:template>
> ...
> Mit besten Gr|_en / Best wishes,
> Hermann Stamm-Wilbrandt
> Developer, XML Compiler
> WebSphere DataPower SOA Appliances
> ----------------------------------------------------------------------
> IBM Deutschland Research & Development GmbH
> Vorsitzender des Aufsichtsrats: Martin Jetter
> Geschdftsf|hrung: Erich Baier
> Sitz der Gesellschaft: Bvblingen
> Registergericht: Amtsgericht Stuttgart, HRB 243294

 - michael dykman
 - mdykman@xxxxxxxxx

 - All models are wrong.  Some models are useful.

Current Thread


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.
First Name
Last Name
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.