You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jürgen Ragaller <ra...@null-oder-eins.ch> on 2006/02/09 16:44:25 UTC
external data howto
Hi all!
I am trying (hard) to get the external data howto working (lenya
1.2.4) as described in the second solution under
http://lenya.apache.org/1_2_x/how-to/external_data.html
or
http://solprovider.com/lenya/external
I have problems, writing people2xhtml.xsl .
For a starting point I copied page2xhtml.xsl and tried to access the
xml data from http://www.xmlhack.com/cdf.cdf (the external uri) writing:
.... lenya xmlns, parameters
<xsl:template match="cmsbody">
<html>
<head>
... lenya head code
</head>
<body>
... lenya body code
<xsl:apply-templates select="TITLE" />
</body>
</html>
</xsl:template>
<xsl:template match="TITLE">
<xsl:value-of select="." />
<xsl:template>
...other lenya xsl code
Have fun... Probably this is plain wrong ;;;-)
Thank You for help - If someone can provide an example
people2xhtml.xsl from a successful external data howto try, I would
be very interested in having a look at the code - it would make the
example complete.
Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by so...@apache.org.
On 2/9/06, Derek Harmel <dh...@kci.com> wrote:
> Just gave this a try and still no luck. Instead of getting a Cocoon
> error, I now get the standard Lenya 404 page, saying "The requested
> document '' with document-id '' does not exist."
>
> Which, again, I do not understand as there is a pipeline that matches,
> transforms, and serializes. As I've complained about in a different
> thread, I don't understand why I'm entering into the main entry
> pipeline in publication-sitemap.xmap if I'm catching the URL in a
> pipeline above it and serializing. Too many xmaps for a newbie to
> decipher...and follow.
I documented this problem on my "Nesting" page. For best results,
make certain there is one and only one pipeline for a given request in
an XMAP. Usually this means:
<map:match pattern="**">
<map:match pattern="**.html">
<map:match pattern="*/something/*.html">
<!-- Special Case -->
</map:match>
<!-- Default HTML -->
</map:match>
<!-- Default (Not HTML) -->
</map:match>
The results are unpredictable if you have (in any order):
<map:match pattern="*/something/*.html">
</map:match>
<map:match pattern="**.html">
</map:match>
Sometimes it runs both; sometimes it runs the wrong one. It never
seems to run the one you want.
An alternative to nesting is to avoid the "**.html" match, either by
- using a different match (usually by changing the extension),
- using a Usecase to completely avoid publication-sitemap.xmap. (Good
for clean code)
- both use a different match and keep the code clean:
<map:match pattern="**.myextension">
<map:mount uri-prefix="" src="myxmap.xmap"/>
</map:match>
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by Derek Harmel <dh...@kci.com>.
Just gave this a try and still no luck. Instead of getting a Cocoon
error, I now get the standard Lenya 404 page, saying "The requested
document '' with document-id '' does not exist."
Which, again, I do not understand as there is a pipeline that matches,
transforms, and serializes. As I've complained about in a different
thread, I don't understand why I'm entering into the main entry
pipeline in publication-sitemap.xmap if I'm catching the URL in a
pipeline above it and serializing. Too many xmaps for a newbie to
decipher...and follow.
On 2/9/06, Andreas Hartmann <an...@apache.org> wrote:
> Derek Harmel wrote:
> > I have nothing to add other than I have been completely unsuccessful
> > in trying to get Lenya to allow URLs for documents that don't exist in
> > the sitetree.
>
> If the document doesn't exist in the sitetree, the LanguageExistsAction
> complains:
>
> <map:act type="language-exists">
>
> Did you try to disable that?
>
> -- Andreas
>
>
>
> --
> Andreas Hartmann
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://www.wyona.com http://lenya.apache.org
> andreas.hartmann@wyona.com andreas@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
--
Derek Harmel
:: Web Programmer
:: KCI Technologies
:: (410) 891-1746
:: derek@kci.com
Re: external data howto
Posted by Andreas Hartmann <an...@apache.org>.
Derek Harmel wrote:
> I have nothing to add other than I have been completely unsuccessful
> in trying to get Lenya to allow URLs for documents that don't exist in
> the sitetree.
If the document doesn't exist in the sitetree, the LanguageExistsAction
complains:
<map:act type="language-exists">
Did you try to disable that?
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Hi Derek
... not sound so encouraging ;-) - It seems to me, that - after
following solproviders howto, lenya is accessing the xml from the
external server (changing the uri to a not existing one results in a
error message) - in my case I don't understand how to write the xslt
for the output.
best regards and don't give up.
Jürgen
Am Feb 9, 2006 um 17:54 schrieb Derek Harmel:
> I have nothing to add other than I have been completely unsuccessful
> in trying to get Lenya to allow URLs for documents that don't exist in
> the sitetree. For whatever reason that I cannot figure out, I always
> get some annoying error about the document not existing though I
> clearly have a pipeline set up to process and serialize the URL. I
> don't get it, I'm about to give up on Lenya and Cocoon.
>
> On 2/9/06, Jürgen Ragaller <ra...@null-oder-eins.ch> wrote:
>> Hi all!
>>
>> I am trying (hard) to get the external data howto working (lenya
>> 1.2.4) as described in the second solution under
>>
>> http://lenya.apache.org/1_2_x/how-to/external_data.html
>> or
>> http://solprovider.com/lenya/external
>>
>> I have problems, writing people2xhtml.xsl .
>>
>> For a starting point I copied page2xhtml.xsl and tried to access the
>> xml data from http://www.xmlhack.com/cdf.cdf (the external uri)
>> writing:
>>
>>
>> .... lenya xmlns, parameters
>> <xsl:template match="cmsbody">
>> <html>
>> <head>
>> ... lenya head code
>> </head>
>> <body>
>> ... lenya body code
>>
>> <xsl:apply-templates select="TITLE" />
>>
>> </body>
>> </html>
>>
>> </xsl:template>
>>
>> <xsl:template match="TITLE">
>> <xsl:value-of select="." />
>> <xsl:template>
>>
>> ...other lenya xsl code
>>
>> Have fun... Probably this is plain wrong ;;;-)
>>
>> Thank You for help - If someone can provide an example
>> people2xhtml.xsl from a successful external data howto try, I would
>> be very interested in having a look at the code - it would make the
>> example complete.
>>
>>
>> Jürgen
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>
>
> --
> Derek Harmel
> :: Web Programmer
> :: KCI Technologies
> :: (410) 891-1746
> :: derek@kci.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Tim, I tried Your example - it works.
I find it (more or less) similar to solproviders first solution
(http://solprovider.com/lenya/external).
The second solution (Interrupt at getting the data) seems to be
elegant (less code duplication). But in the second one I don't know
how to aggregate the data into a lenya page. In Tims example the
labeling of the feed (using element="XMLfeed") helps later to select
the xml - is there something similar for the 2nd solution?
best regards, Jürgen
Am Feb 9, 2006 um 20:50 schrieb Jürgen Ragaller:
> Thank You, Tim
>
>
> Am Feb 9, 2006 um 21:15 schrieb Tim Hannigan:
>
>> I might be a tad confused here, but are you trying to aggregate
>> the "xml data from http://www.xmlhack.com/cdf.cdf" to use in your
>> XSL stylesheet?
>>
>
> Yes - and I tried to follow the explanation from solproviders
> website - I got stuck writing the xslt aggregating the xml into the
> lenya page.
>
>
>> I'll give you an example of how I'm doing it with an rss feed from
>> zeldman's site.
>>
>> In my publication-sitemap;
>>
>>> <map:aggregate element="cmsbody">
>>> <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/
>>> {5}.xml" />
>>> <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml" />
>>> <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
>>> <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
>>> <map:part src="cocoon://navigation/{2}/{3}/sectionNav/{5}.xml"/>
>>> <map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
>>> envelope:document-path}"/>
>>>
>>
>>> <map:part src="http://www.zeldman.com/feed/zeldman.xml"
>>> element="XMLfeed" />
>>>
>>> </map:aggregate>
>>
>>
>> You'll notice that I'm labelling the element (essentially wrapping
>> it) "XMLfeed".
>>
>> Inside my XSLT, I have
>>
>>> <xsl:template match="cmsbody">
>>> <html>
>>> <body>
>>> .....
>>> .....
>>> <xsl:apply-templates select="XMLfeed"/>
>>> .....
>>> .....
>>> </body>
>>> </html>
>>> </xsl:template>
>>>
>>>
>>> <xsl:template match="XMLfeed">
>>>
>>>
>>> <xsl:for-each select="rss/channel/item">
>>> <xsl:if test="position() < 3">
>>>
>>> <div>
>>> <h3><xsl:value-of select="title"/></h3>
>>> <h4><xsl:value-of select="pubDate"/> </h4>
>>> <p>
>>> <xsl:value-of select="description" >
>>> </p>
>>> <br />
>>> <xsl:variable name="story_link" select="link" />
>>> <a href="{$story_link}">More ...</a>
>>>
>>> </div> <!-- altStory -->
>>>
>>> </xsl:if>
>>> </xsl:for-each>
>>>
>>>
>>>
>>>
>>> </xsl:template>
>>
>>
>> And voila, it's redisplaying the feed as part of my page.
>>
>> Does this help?
>
> I will try - it looks very promissing and helpful
>
> Thanx!!!
>
> Jürgen
>
>>
>> -Tim
>>
>>
>>
>>
>>
>> On 9-Feb-06, at 8:54 AM, Derek Harmel wrote:
>>
>>> I have nothing to add other than I have been completely unsuccessful
>>> in trying to get Lenya to allow URLs for documents that don't
>>> exist in
>>> the sitetree. For whatever reason that I cannot figure out, I
>>> always
>>> get some annoying error about the document not existing though I
>>> clearly have a pipeline set up to process and serialize the URL. I
>>> don't get it, I'm about to give up on Lenya and Cocoon.
>>>
>>> On 2/9/06, Jürgen Ragaller <ra...@null-oder-eins.ch> wrote:
>>>> Hi all!
>>>>
>>>> I am trying (hard) to get the external data howto working (lenya
>>>> 1.2.4) as described in the second solution under
>>>>
>>>> http://lenya.apache.org/1_2_x/how-to/external_data.html
>>>> or
>>>> http://solprovider.com/lenya/external
>>>>
>>>> I have problems, writing people2xhtml.xsl .
>>>>
>>>> For a starting point I copied page2xhtml.xsl and tried to access
>>>> the
>>>> xml data from http://www.xmlhack.com/cdf.cdf (the external uri)
>>>> writing:
>>>>
>>>>
>>>> .... lenya xmlns, parameters
>>>> <xsl:template match="cmsbody">
>>>> <html>
>>>> <head>
>>>> ... lenya head code
>>>> </head>
>>>> <body>
>>>> ... lenya body code
>>>>
>>>> <xsl:apply-templates select="TITLE" />
>>>>
>>>> </body>
>>>> </html>
>>>>
>>>> </xsl:template>
>>>>
>>>> <xsl:template match="TITLE">
>>>> <xsl:value-of select="." />
>>>> <xsl:template>
>>>>
>>>> ...other lenya xsl code
>>>>
>>>> Have fun... Probably this is plain wrong ;;;-)
>>>>
>>>> Thank You for help - If someone can provide an example
>>>> people2xhtml.xsl from a successful external data howto try, I would
>>>> be very interested in having a look at the code - it would make the
>>>> example complete.
>>>>
>>>>
>>>> Jürgen
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Derek Harmel
>>> :: Web Programmer
>>> :: KCI Technologies
>>> :: (410) 891-1746
>>> :: derek@kci.com
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
Re: external data howto
Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Thank You, Tim
Am Feb 9, 2006 um 21:15 schrieb Tim Hannigan:
> I might be a tad confused here, but are you trying to aggregate the
> "xml data from http://www.xmlhack.com/cdf.cdf" to use in your XSL
> stylesheet?
>
Yes - and I tried to follow the explanation from solproviders website
- I got stuck writing the xslt aggregating the xml into the lenya page.
> I'll give you an example of how I'm doing it with an rss feed from
> zeldman's site.
>
> In my publication-sitemap;
>
>> <map:aggregate element="cmsbody">
>> <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml" />
>> <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml" />
>> <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
>> <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
>> <map:part src="cocoon://navigation/{2}/{3}/sectionNav/{5}.xml"/>
>> <map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
>> envelope:document-path}"/>
>>
>
>> <map:part src="http://www.zeldman.com/feed/zeldman.xml"
>> element="XMLfeed" />
>>
>> </map:aggregate>
>
>
> You'll notice that I'm labelling the element (essentially wrapping
> it) "XMLfeed".
>
> Inside my XSLT, I have
>
>> <xsl:template match="cmsbody">
>> <html>
>> <body>
>> .....
>> .....
>> <xsl:apply-templates select="XMLfeed"/>
>> .....
>> .....
>> </body>
>> </html>
>> </xsl:template>
>>
>>
>> <xsl:template match="XMLfeed">
>>
>>
>> <xsl:for-each select="rss/channel/item">
>> <xsl:if test="position() < 3">
>>
>> <div>
>> <h3><xsl:value-of select="title"/></h3>
>> <h4><xsl:value-of select="pubDate"/> </h4>
>> <p>
>> <xsl:value-of select="description" >
>> </p>
>> <br />
>> <xsl:variable name="story_link" select="link" />
>> <a href="{$story_link}">More ...</a>
>>
>> </div> <!-- altStory -->
>>
>> </xsl:if>
>> </xsl:for-each>
>>
>>
>>
>>
>> </xsl:template>
>
>
> And voila, it's redisplaying the feed as part of my page.
>
> Does this help?
I will try - it looks very promissing and helpful
Thanx!!!
Jürgen
>
> -Tim
>
>
>
>
>
> On 9-Feb-06, at 8:54 AM, Derek Harmel wrote:
>
>> I have nothing to add other than I have been completely unsuccessful
>> in trying to get Lenya to allow URLs for documents that don't
>> exist in
>> the sitetree. For whatever reason that I cannot figure out, I always
>> get some annoying error about the document not existing though I
>> clearly have a pipeline set up to process and serialize the URL. I
>> don't get it, I'm about to give up on Lenya and Cocoon.
>>
>> On 2/9/06, Jürgen Ragaller <ra...@null-oder-eins.ch> wrote:
>>> Hi all!
>>>
>>> I am trying (hard) to get the external data howto working (lenya
>>> 1.2.4) as described in the second solution under
>>>
>>> http://lenya.apache.org/1_2_x/how-to/external_data.html
>>> or
>>> http://solprovider.com/lenya/external
>>>
>>> I have problems, writing people2xhtml.xsl .
>>>
>>> For a starting point I copied page2xhtml.xsl and tried to access the
>>> xml data from http://www.xmlhack.com/cdf.cdf (the external uri)
>>> writing:
>>>
>>>
>>> .... lenya xmlns, parameters
>>> <xsl:template match="cmsbody">
>>> <html>
>>> <head>
>>> ... lenya head code
>>> </head>
>>> <body>
>>> ... lenya body code
>>>
>>> <xsl:apply-templates select="TITLE" />
>>>
>>> </body>
>>> </html>
>>>
>>> </xsl:template>
>>>
>>> <xsl:template match="TITLE">
>>> <xsl:value-of select="." />
>>> <xsl:template>
>>>
>>> ...other lenya xsl code
>>>
>>> Have fun... Probably this is plain wrong ;;;-)
>>>
>>> Thank You for help - If someone can provide an example
>>> people2xhtml.xsl from a successful external data howto try, I would
>>> be very interested in having a look at the code - it would make the
>>> example complete.
>>>
>>>
>>> Jürgen
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>>
>>
>>
>> --
>> Derek Harmel
>> :: Web Programmer
>> :: KCI Technologies
>> :: (410) 891-1746
>> :: derek@kci.com
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by so...@apache.org.
On 2/15/06, sharif islam <sh...@gmail.com> wrote:
> On 2/9/06, Tim Hannigan <ti...@queensu.ca> wrote:
> > In my publication-sitemap;
> >
> > And voila, it's redisplaying the feed as part of my page.
> >
> > Does this help?
> >
> I am trying this example. I couldn't figure out what would be the URL
> for this content? How do I test it?
The URL would be:
http://lenyaServer/myPub/live/people/key.html
"people" is from the match.
"key" is passed to your external URL.
I added this to the instructions.
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by sharif islam <sh...@gmail.com>.
On 2/9/06, Tim Hannigan <ti...@queensu.ca> wrote:
> In my publication-sitemap;
>
> And voila, it's redisplaying the feed as part of my page.
>
> Does this help?
>
I am trying this example. I couldn't figure out what would be the URL
for this content? How do I test it?
--Sharif
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by Tim Hannigan <ti...@queensu.ca>.
I might be a tad confused here, but are you trying to aggregate the
"xml data from http://www.xmlhack.com/cdf.cdf" to use in your XSL
stylesheet?
I'll give you an example of how I'm doing it with an rss feed from
zeldman's site.
In my publication-sitemap;
> <map:aggregate element="cmsbody">
> <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml" />
> <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml" />
> <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
> <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
> <map:part src="cocoon://navigation/{2}/{3}/sectionNav/{5}.xml"/>
> <map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
> envelope:document-path}"/>
>
> <map:part src="http://www.zeldman.com/feed/zeldman.xml"
> element="XMLfeed" />
>
> </map:aggregate>
You'll notice that I'm labelling the element (essentially wrapping
it) "XMLfeed".
Inside my XSLT, I have
> <xsl:template match="cmsbody">
> <html>
> <body>
> .....
> .....
> <xsl:apply-templates select="XMLfeed"/>
> .....
> .....
> </body>
> </html>
> </xsl:template>
>
>
> <xsl:template match="XMLfeed">
>
>
> <xsl:for-each select="rss/channel/item">
> <xsl:if test="position() < 3">
>
> <div>
> <h3><xsl:value-of select="title"/></h3>
> <h4><xsl:value-of select="pubDate"/> </h4>
> <p>
> <xsl:value-of select="description" >
> </p>
> <br />
> <xsl:variable name="story_link" select="link" />
> <a href="{$story_link}">More ...</a>
>
> </div> <!-- altStory -->
>
> </xsl:if>
> </xsl:for-each>
>
>
>
>
> </xsl:template>
And voila, it's redisplaying the feed as part of my page.
Does this help?
-Tim
On 9-Feb-06, at 8:54 AM, Derek Harmel wrote:
> I have nothing to add other than I have been completely unsuccessful
> in trying to get Lenya to allow URLs for documents that don't exist in
> the sitetree. For whatever reason that I cannot figure out, I always
> get some annoying error about the document not existing though I
> clearly have a pipeline set up to process and serialize the URL. I
> don't get it, I'm about to give up on Lenya and Cocoon.
>
> On 2/9/06, Jürgen Ragaller <ra...@null-oder-eins.ch> wrote:
>> Hi all!
>>
>> I am trying (hard) to get the external data howto working (lenya
>> 1.2.4) as described in the second solution under
>>
>> http://lenya.apache.org/1_2_x/how-to/external_data.html
>> or
>> http://solprovider.com/lenya/external
>>
>> I have problems, writing people2xhtml.xsl .
>>
>> For a starting point I copied page2xhtml.xsl and tried to access the
>> xml data from http://www.xmlhack.com/cdf.cdf (the external uri)
>> writing:
>>
>>
>> .... lenya xmlns, parameters
>> <xsl:template match="cmsbody">
>> <html>
>> <head>
>> ... lenya head code
>> </head>
>> <body>
>> ... lenya body code
>>
>> <xsl:apply-templates select="TITLE" />
>>
>> </body>
>> </html>
>>
>> </xsl:template>
>>
>> <xsl:template match="TITLE">
>> <xsl:value-of select="." />
>> <xsl:template>
>>
>> ...other lenya xsl code
>>
>> Have fun... Probably this is plain wrong ;;;-)
>>
>> Thank You for help - If someone can provide an example
>> people2xhtml.xsl from a successful external data howto try, I would
>> be very interested in having a look at the code - it would make the
>> example complete.
>>
>>
>> Jürgen
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>
>
> --
> Derek Harmel
> :: Web Programmer
> :: KCI Technologies
> :: (410) 891-1746
> :: derek@kci.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: external data howto
Posted by Derek Harmel <dh...@kci.com>.
I have nothing to add other than I have been completely unsuccessful
in trying to get Lenya to allow URLs for documents that don't exist in
the sitetree. For whatever reason that I cannot figure out, I always
get some annoying error about the document not existing though I
clearly have a pipeline set up to process and serialize the URL. I
don't get it, I'm about to give up on Lenya and Cocoon.
On 2/9/06, Jürgen Ragaller <ra...@null-oder-eins.ch> wrote:
> Hi all!
>
> I am trying (hard) to get the external data howto working (lenya
> 1.2.4) as described in the second solution under
>
> http://lenya.apache.org/1_2_x/how-to/external_data.html
> or
> http://solprovider.com/lenya/external
>
> I have problems, writing people2xhtml.xsl .
>
> For a starting point I copied page2xhtml.xsl and tried to access the
> xml data from http://www.xmlhack.com/cdf.cdf (the external uri) writing:
>
>
> .... lenya xmlns, parameters
> <xsl:template match="cmsbody">
> <html>
> <head>
> ... lenya head code
> </head>
> <body>
> ... lenya body code
>
> <xsl:apply-templates select="TITLE" />
>
> </body>
> </html>
>
> </xsl:template>
>
> <xsl:template match="TITLE">
> <xsl:value-of select="." />
> <xsl:template>
>
> ...other lenya xsl code
>
> Have fun... Probably this is plain wrong ;;;-)
>
> Thank You for help - If someone can provide an example
> people2xhtml.xsl from a successful external data howto try, I would
> be very interested in having a look at the code - it would make the
> example complete.
>
>
> Jürgen
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
--
Derek Harmel
:: Web Programmer
:: KCI Technologies
:: (410) 891-1746
:: derek@kci.com