Hi Solprovider,
Thanks for the advice and thanks for the lenya site, its been a good
resource so far.
I was actually working with a sample of yours i found on this list.
My issue is that im trying to create an index page to list all the
articles in the section with article date and perhaps an article
abstract. I figured that as all this type of info is stored in the
metadata for the standard document type i could use that for my
articles and then use the xpathdirectory generator to create an xml
representation of all the articles with the metadata and use that xml
to create the article list page. Heres what i had so far...
in parameter-doctype.xmap
<map:pipeline>
<map:match pattern="*/pressreleases*.html">
<map:generate type="serverpages" src="../../config/
parameters/default.xsp">
<map:parameter name="value" value="articlelist"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
in doctypes.xmap
<map:match pattern="*/*/articlelist/**.xml">
<map:generate type="xpathdirectory" src="content/authoring/tutorial/
pressreleases">
<map:parameter name="xpath" value="/*[local-name()='html']/*[local-
name()='meta']/*[local-name()='title']|/*[local-name()='html']/*
[local-name()='meta']/*[local-name()='subject']|/*[local-name()
='html']/*[local-name()='meta']/*[local-name()='description']|/*
[local-name()='html']/*[local-name()='meta']/*[local-name()='date']"/>
<map:parameter name="xmlFiles" value="\.xml$" />
<map:parameter name="depth" value="2"/>
</map:generate>
<!-- preprep.xsl just takes the data i need and makes a more
sensible xml file -->
<map:transform src="lenya/xslt/navigation/prprep.xsl">
</map:transform>
<!-- articlelist.xsl creates the html i need to list all the
articles -->
<map:transform src="lenya/xslt/navigation/articlelist.xsl">
</map:transform>
<map:transform src="xslt/articlelist2xhtml.xsl">
<map:parameter name="rendertype" value="{1}"/>
<map:parameter name="nodeid" value="{page-
envelope:document-node-id}"/>
<map:parameter name="language" value="{page-
envelope:document-language}"/>
</map:transform>
<map:serialize type="xml" />
</map:match>
could i still achieve the same end result with the multiple
stylesheets example?
Nick
On 13 Nov 2005, at 15:45, [EMAIL PROTECTED] wrote:
On 11/13/05, Nick Aliwell <[EMAIL PROTECTED]> wrote:
Is parameter-doctype.xmap cached somewhere. Any changes i make to it
dont seem to be picked up?
If it is, how can i clear it or temporarily turn caching off?
Yes, it is, which is annoying for new developers believing thay can
control layout by overriding doctype. The functionality you want can
probably be handled with the code from:
"Using Multiple Stylesheets for the Same Content"
http://solprovider.com/lenya/multiple
solprovider
---------------------------------------------------------------------
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]