Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
Is it possible to have a xpath code to list all the properties of the specific document type??
e.g.
If doctype "Home" has 3 propeties title,content, logo. Then I want to get all these 3 properties on xpath expression.
Hi praveity,
The properties are stored as childnodes of the Document Type, so you can just select all childnodes and filter out any child Document Types (if the page has subpages):
<xsl:for-each select="$currentPage/*[not(@isDoc)]"> <p><xsl:value-of select="name(.)" />: <xsl:value-of select="." /></p> </xsl:for-each>
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Xpath query to list all the properties of the doctype
Hi
Is it possible to have a xpath code to list all the properties of the specific document type??
e.g.
If doctype "Home" has 3 propeties title,content, logo. Then I want to get all these 3 properties on xpath expression.
Hi praveity,
The properties are stored as childnodes of the Document Type, so you can just select all childnodes and filter out any child Document Types (if the page has subpages):
<xsl:for-each select="$currentPage/*[not(@isDoc)]"> <p><xsl:value-of select="name(.)" />: <xsl:value-of select="." /></p> </xsl:for-each>
/Chriztian
is working on a reply...