RE: Default stylesheet

2005-03-07 Thread Roland Neilands
Glen,

Thanks, I will just have to pass another tag through & keep using -xsl then.

Regards,
Roland

> -Original Message-
> From: Glen Mazza [mailto:[EMAIL PROTECTED]
> Sent: Friday, 4 March 2005 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Default stylesheet
> 
> 
> --- Roland Neilands <[EMAIL PROTECTED]>
> wrote:
> 
> > [ERROR] Expected XSL-FO (root, page-sequence, etc.),
> > SVG (svg, rect, etc.) or el
> > ements from another supported language.
> > 
> > I think FOP can do it, it just needs to not set the
> > -xsl flag and/or this error turned into a warning:
> > "[ERROR] XSLT file must be specified for the
> > tranform mode"
> > ie let xalan spit the error if there's no processing
> > instruction.
> > 
> 
> But the user is not necessarily using Xalan, we use
> JAXP internally, which is XSLT-processor-agnostic, and
> I'm unsure but doubtful that the xml-stylesheet
> processing instruction can be supported by JAXP.
> 
> Best option here is to just specify -xsl { filename }
> at the command line, just use the filename you have in
> the XML document.  That's what all the other
> command-line users do, whether or not they bother with
> the xml-stylesheet PI.  Apparently xml-stylesheet[1] 
> is mainly for browsers anyway.
> 
> HTH,
> Glen
> 
> [1] http://www.dpawson.co.uk/xsl/sect2/N6145.html#d7755e169
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Default stylesheet

2005-03-04 Thread Glen Mazza
--- Roland Neilands <[EMAIL PROTECTED]>
wrote:

> [ERROR] Expected XSL-FO (root, page-sequence, etc.),
> SVG (svg, rect, etc.) or el
> ements from another supported language.
> 
> I think FOP can do it, it just needs to not set the
> -xsl flag and/or this error turned into a warning:
> "[ERROR] XSLT file must be specified for the
> tranform mode"
> ie let xalan spit the error if there's no processing
> instruction.
> 

But the user is not necessarily using Xalan, we use
JAXP internally, which is XSLT-processor-agnostic, and
I'm unsure but doubtful that the xml-stylesheet
processing instruction can be supported by JAXP.

Best option here is to just specify -xsl { filename }
at the command line, just use the filename you have in
the XML document.  That's what all the other
command-line users do, whether or not they bother with
the xml-stylesheet PI.  Apparently xml-stylesheet[1] 
is mainly for browsers anyway.

HTH,
Glen

[1] http://www.dpawson.co.uk/xsl/sect2/N6145.html#d7755e169

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Default stylesheet

2005-03-03 Thread Roland Neilands
> But if his input XML is already XSL-processable
> (perhaps indicated by the fact that only a default
> stylesheet would be needed to "transform" it), I think
> FOP can do this already.  How about:
> 
> fop -fo abc.xml -pdf abc.pdf

Nope. 
[ERROR] Expected XSL-FO (root, page-sequence, etc.), SVG (svg, rect, etc.) or el
ements from another supported language.

I think FOP can do it, it just needs to not set the -xsl flag and/or this error 
turned into a warning:
"[ERROR] XSLT file must be specified for the tranform mode"
ie let xalan spit the error if there's no processing instruction.

I don't know Java, any hints on where to start with this?

Cheers,
Roland

> 
> 
> --- Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> 
> > You're welcome to write a patch for the code in CVS
> > HEAD so we have this
> > feature ready when we're ready to start releasing
> > again. Obviously, this
> > isn't implemented in FOP 0.20.5.
> > 
> > On 03.03.2005 06:55:01 Roland Neilands wrote:
> > > Hi all,
> > > 
> > > I have an interesting question:
> > > Can FOP use the XML default stylesheet instead of
> > having one specified?
> > > 
> > > eg
> > > PI in test.xml:
> > > 
> > > 
> > > >xalan -in test.xml -out test.fo
> > > >fop test.fo -pdf test.pdf
> > > >fop -xml test.xsl -pdf test.pdf
> > > 
> > > works fine, but to do it in one step:
> > > >fop -xml test.xml  -pdf test.pdf
> > > gives usage screen +:
> > > [ERROR] XSLT file must be specified for the
> > tranform mode
> > > 
> > > Obviously this works:
> > > >fop -xml test.xml -xsl test.xsl -pdf test.pdf
> > > but I would prefer to let this be specified per
> > xml file if possible.
> > > 
> > > Any comments appreciated.
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default stylesheet

2005-03-03 Thread Glen Mazza
Oh--now I see, it means a stylesheet embedded within
the XML file.

Glen

--- Glen Mazza <[EMAIL PROTECTED]> wrote:

> I don't know what a XSLT "default stylesheet" is --
> checking the XSLT Rec for "default" is not showing 
> any place where this is defined.  (I believe
> browsers
> have them, but that wouldn't be applicable for our
> discussion here.)
> 
> But if his input XML is already XSL-processable
> (perhaps indicated by the fact that only a default
> stylesheet would be needed to "transform" it), I
> think
> FOP can do this already.  How about:
> 
> fop -fo abc.xml -pdf abc.pdf
> 
> Glen
> 
> 
> --- Jeremias Maerki <[EMAIL PROTECTED]>
> wrote:
> 
> > You're welcome to write a patch for the code in
> CVS
> > HEAD so we have this
> > feature ready when we're ready to start releasing
> > again. Obviously, this
> > isn't implemented in FOP 0.20.5.
> > 
> > On 03.03.2005 06:55:01 Roland Neilands wrote:
> > > Hi all,
> > > 
> > > I have an interesting question:
> > > Can FOP use the XML default stylesheet instead
> of
> > having one specified?
> > > 
> > > eg
> > > PI in test.xml:
> > >  href="test.xsl"?>
> > > 
> > > >xalan -in test.xml -out test.fo
> > > >fop test.fo -pdf test.pdf
> > > >fop -xml test.xsl -pdf test.pdf
> > > 
> > > works fine, but to do it in one step:
> > > >fop -xml test.xml  -pdf test.pdf
> > > gives usage screen +:
> > > [ERROR] XSLT file must be specified for the
> > tranform mode
> > > 
> > > Obviously this works:
> > > >fop -xml test.xml -xsl test.xsl -pdf test.pdf
> > > but I would prefer to let this be specified per
> > xml file if possible.
> > > 
> > > Any comments appreciated.
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default stylesheet

2005-03-03 Thread Glen Mazza
I don't know what a XSLT "default stylesheet" is --
checking the XSLT Rec for "default" is not showing 
any place where this is defined.  (I believe browsers
have them, but that wouldn't be applicable for our
discussion here.)

But if his input XML is already XSL-processable
(perhaps indicated by the fact that only a default
stylesheet would be needed to "transform" it), I think
FOP can do this already.  How about:

fop -fo abc.xml -pdf abc.pdf

Glen


--- Jeremias Maerki <[EMAIL PROTECTED]> wrote:

> You're welcome to write a patch for the code in CVS
> HEAD so we have this
> feature ready when we're ready to start releasing
> again. Obviously, this
> isn't implemented in FOP 0.20.5.
> 
> On 03.03.2005 06:55:01 Roland Neilands wrote:
> > Hi all,
> > 
> > I have an interesting question:
> > Can FOP use the XML default stylesheet instead of
> having one specified?
> > 
> > eg
> > PI in test.xml:
> > 
> > 
> > >xalan -in test.xml -out test.fo
> > >fop test.fo -pdf test.pdf
> > >fop -xml test.xsl -pdf test.pdf
> > 
> > works fine, but to do it in one step:
> > >fop -xml test.xml  -pdf test.pdf
> > gives usage screen +:
> > [ERROR] XSLT file must be specified for the
> tranform mode
> > 
> > Obviously this works:
> > >fop -xml test.xml -xsl test.xsl -pdf test.pdf
> > but I would prefer to let this be specified per
> xml file if possible.
> > 
> > Any comments appreciated.
> 
> 
> Jeremias Maerki
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default stylesheet

2005-03-03 Thread Jeremias Maerki
You're welcome to write a patch for the code in CVS HEAD so we have this
feature ready when we're ready to start releasing again. Obviously, this
isn't implemented in FOP 0.20.5.

On 03.03.2005 06:55:01 Roland Neilands wrote:
> Hi all,
> 
> I have an interesting question:
> Can FOP use the XML default stylesheet instead of having one specified?
> 
> eg
> PI in test.xml:
> 
> 
> >xalan -in test.xml -out test.fo
> >fop test.fo -pdf test.pdf
> >fop -xml test.xsl -pdf test.pdf
> 
> works fine, but to do it in one step:
> >fop -xml test.xml  -pdf test.pdf
> gives usage screen +:
> [ERROR] XSLT file must be specified for the tranform mode
> 
> Obviously this works:
> >fop -xml test.xml -xsl test.xsl -pdf test.pdf
> but I would prefer to let this be specified per xml file if possible.
> 
> Any comments appreciated.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]