Re: [Hypercontent-users] JSTL import
Brought to you by:
alexvigdor
|
From: tom t. <j_l...@ya...> - 2007-09-09 23:34:02
|
Thanks,
I will proceed on that,
--- Alex Vigdor <al...@bi...> wrote:
> That should work fine! HC is very optimized for
> producing multiple
> outputs - the page XML is only parsed once, for
> example, for both
> transformations. So you should not see any
> noticeable performance
> impact.
>
> Alex
>
> On Sep 6, 2007, at 10:46 PM, tom tom wrote:
>
> > Hi Alex,
> >
> > Without making it too complicated, and also not
> having
> > many rules, I decided to have the following, Pls
> let
> > me know this leads to any unnecessary performance
> > issues when it comes to publishing.
> >
> > Basicaly one xml-doctype and having two outputs,
> >
> >
> > <xml-doctype create="manual" definition=""
> > label="Page" path="/**/*.xml" root="html">
> >
> > <output basedir="/nostrip/"
> content-type="text/html">
> > <transform
> source="/config/skins/nostrip/common.xsl">
> > <with-param name="link-base" value="/nostrip"/>
> > </transform>
> > </output>
> >
> >
> > <output basedir="/strip/"
> content-type="text/html">
> > <transform
> source="/config/skins/strip/common2.xsl">
> > <with-param name="link-base" value="/strip"/>
> > </transform>
> > </output>
> > </xml-doctype>
> >
> >
> > Thanks
> >
> >
> > --- Alex Vigdor <al...@bi...> wrote:
> >
> >> Actually it is not possible to prevent an output
> >> from getting
> >> published by omitting the basedir - it defaults
> to
> >> "/". So I would
> >> recommend something similar to what Carl is
> >> recommending, e.g.
> >>
> >> <xml-doctype definition="/dtd/common.dtd"
> >> label="Create a new page"
> >> path="/**/*.xml" root="page">
> >> <output basedir="/"
> content-type="text/html">
> >> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >> <transform
> >> source="/config/xsl/base-tempalte.xsl"/>
> >> </output>
> >> </xml-doctype>
> >>
> >> <xml-doctype definition="/dtd/common.dtd"
> >> label="Create a new page
> >> under business" path="/business/*.xml"
> root="page">
> >> <output basedir="/"
> content-type="text/html">
> >> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >> <transform
> >> source="/config/xsl/base-tempalte.xsl"/>
> >> </output>
> >> <output basedir="/stripped/"
> >> content-type="text/html">
> >> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >> <transform
> >> source="/config/xsl/business-template.xsl"/>
> >> </output>
> >> </xml-doctype>
> >>
> >>
> >> On Sep 6, 2007, at 6:38 AM, Carl P Barrow wrote:
> >>
> >>> Hi,
> >>>
> >>> If I'm off the ball here please excuse me.
> Would
> >> something like
> >>> this not work?
> >>>
> >>> <xml-doctype definition="/dtd/common.dtd"
> >> label="Create a new page"
> >>> path="/**/*.xml" root="page">
> >>> <output basedir="/"
> content-type="text/html">
> >>> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >>> <transform
> >> source="/config/xsl/base-tempalte.xsl">
> >>> <with-filedate as="filedate"/>
> >>> <with-baseurl as="baseurl"/>
> >>> </transform>
> >>> </output>
> >>> </xml-doctype>
> >>>
> >>> <xml-doctype definition="/dtd/business.dtd"
> >> label="Create a new
> >>> under business" path="/business/*.xml"
> >> root="page">
> >>> <output basedir="/"
> content-type="text/html">
> >>> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >>> <transform
> >> source="/config/xsl/business-template.xsl">
> >>> <with-filedate as="filedate"/>
> >>> <with-baseurl as="baseurl"/>
> >>> </transform>
> >>> </output>
> >>> </xml-doctype>
> >>>
> >>> The only problem I can see here is that you
> would
> >> get the stripped
> >>> out view in HyperContent for business. I haven't
> >> tried this and
> >>> Alex will probably have a view, but you might be
> >> able to add
> >>> another out put to the business doc-type without
> a
> >> basedir so it
> >>> won't actually publish it to anywhere an you
> will
> >> still get a
> >>> visual view.
> >>>
> >>> <output content-type="text/html">
> >>> <include data="yes" metadata="no"
> >> source="/sitemap.xml"/>
> >>> <transform
> >> source="/config/xsl/base-template.xsl">
> >>> <with-filedate as="filedate"/>
> >>> <with-baseurl as="baseurl"/>
> >>> </transform>
> >>> </output>
> >>>
> >>> Thanks
> >>> Carl
> >>>
> >>> *************************************
> >>>
> >>> Carl Barrow
> >>> Systems Integrator
> >>> e-Services
> >>> The University of Hull
> >>> Cottingham Road
> >>> Hull
> >>> HU6 7RX
> >>> Ext. 6838
> >>>
> >>> *************************************
> >>>
> >>>
> >>>
> >>>
> >>> -----Original Message-----
> >>> From:
> >> hyp...@li...
> on
> >> behalf of
> >>> tom tom
> >>> Sent: Thu 9/6/2007 05:31
> >>> To: Alex Vigdor; hypercontent List
> >>> Subject: Re: [Hypercontent-users] JSTL import
> >>>
> >>> Hi Alex,
> >>>
> >>> With regards to publishing extra output, Cant we
> >> have
> >>> a different output works on a different path
> >> inside
> >>> same xml-doctype instead of based on one path
> >>> attribute. For. main path is the toplevel one
> but
> >>> others overiding them.
> >>>
> >>>
> >>> I can put all the business text(not the static
> >>> content) inside a toplevel folder called
> business.
>
=== message truncated ===
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
|