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

Re: Can someone help me understand why this isn't wor

Subject: Re: Can someone help me understand why this isn't working?
From: "Luke Shannon" <lshannon@xxxxxxxxxxxxxxx>
Date: Thu, 20 Jan 2005 10:04:21 -0500
luke shannon
Hi George;

The XSL produces an FO document as output which is in turn returned to me as
a string in java.

The present system does just what you have suggested and I use regular
expressions to replace certain tags and strip the remaining ones.

After this the string is passed to FOP to generate a PDF.

I don't like that you need to change java code to modify how certain HTML
tags are converted to FO tags. It seems I don't have any other choice
though.

Thanks,

Luke

----- Original Message ----- 
From: "George Cristian Bina" <george@xxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, January 20, 2005 4:19 AM
Subject: Re:  Can someone help me understand why this isn't working?


> You can use doe to get what you want but this is generally bad practice.
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>      <xsl:output method="html"/>
>      <xsl:template match="/">
>          <html>
>              <head>
>                  <title>Today's greeting</title>
>              </head>
>              <body>
>                  <xsl:value-of select="greeting"
> disable-output-escaping="yes"/>
>              </body>
>          </html>
>      </xsl:template>
> </xsl:stylesheet>
>
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
>
> Luke Shannon wrote:
> > Hello;
> >
> > I have a basic example I am trying to get working to convert ;&lt;P&gt;
to
> > <P>.
> >
> > Here is the XML:
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
> > <greeting>&lt;P&gt;Hello, world!&lt;/P&gt;</greeting>
> >
> > Here is the XSL:
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > <xsl:output method="html"/>
> > <xsl:template match="/">
> > <html>
> > <head>
> > <title>Today's greeting</title>
> > </head>
> > <body>
> > <xsl:apply-templates select="greeting"/>
> > </body>
> > </html>
> > </xsl:template>
> > <xsl:template match="P">
> > <em><xsl:apply-templates/></em>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> > I am guessing that the value of greeting selected in the apply-templates
> > call contains &lt;P&gt;Hello, world!&lt;/P&gt;
> >
> > I was hoping because the output type was HTML a result tree containing
> > <p>Hello, world!</p> would be created that my match="P" would process
(my
> > apologies if my terminology is not correct, still getting up to speed
with
> > this).
> >
> > Am I thinking about this the wrong way? Any advice would help.
> >
> > Thanks,
> >
> > Luke

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.