--- apurva zaveri <[EMAIL PROTECTED]> wrote: > I am trying to use XPointer like functionality with > CInclude. > > I have a statement like > > ********************************** > <cinclude:include > src="../../commons/contents/ATTRIBUTES.xml" > select="data/AGE/*" /> > ********************************** > > in an xml file.
opps i forget to provide the xml file : ********************************** <?xml version="1.0" encoding="UTF-8"?> <data xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:cinclude="http://apache.org/cocoon/include/1.0" > <some> <cinclude:include src="../../commons/contents/ATTRIBUTES.xml" select="data/AGE/*" /> <!-- <cinclude:include src="cocoon://commons/contents/ATTRIBUTES.xml" select="data/*"/>--> <!-- <xi:include href="../../commons/contents/ATTRIBUTES.xml#xpointer(data/typeOwnership)"/> --> here </some> <done> <!-- <cinclude:include src="cocoon:/pins.xml" select="data/PIN/*" /> --> <!-- <cinclude:include src="cocoon://commons/contents/ATTRIBUTES.xml" select="data/AGE/*" /> --> <!-- <xi:include href="/sell/search/pins.xml#xpointer(/data/PIN/*)" xml:base="cocoon:"/> --> </done> </data> ********************************** > > This is the attribute file: > > ********************************** > <?xml version="1.0" ?> > <data > xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"> > <typeOwnership> > <xf:selectOne ref="/typeOwnership"> > <xf:caption>Ownership Type</xf:caption> > <xf:item> > <xf:caption></xf:caption> > <xf:value></xf:value> > </xf:item> > <xf:item> > <xf:caption>Co-operative > Society</xf:caption> > <xf:value>Co-operative Society</xf:value> > </xf:item> > <xf:item> > <xf:caption>Home Owners > Association</xf:caption> > <xf:value>Home Owners > Association</xf:value> > </xf:item> > <xf:item> > <xf:caption>FreeHold</xf:caption> > <xf:value>FreeHold</xf:value> > </xf:item> > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > </xf:selectOne> > </typeOwnership> > > > <AGE> > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > </AGE> > > </data> > ********************************** > > > But the output i get is > > ********************************** > <?xml version="1.0" encoding="UTF-8"?> > <data > xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:cinclude="http://apache.org/cocoon/include/1.0"> > <some> > > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > > <data> > > <typeOwnership> > > <xf:selectOne ref="/typeOwnership"> > <xf:caption>Ownership Type</xf:caption> > <xf:item> > <xf:caption/> > <xf:value/> > </xf:item> > <xf:item> > <xf:caption>Co-operative > Society</xf:caption> > <xf:value>Co-operative Society</xf:value> > </xf:item> > <xf:item> > <xf:caption>Home Owners > Association</xf:caption> > <xf:value>Home Owners > Association</xf:value> > </xf:item> > <xf:item> > <xf:caption>FreeHold</xf:caption> > <xf:value>FreeHold</xf:value> > </xf:item> > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > </xf:selectOne> > </typeOwnership> > > <AGE> > > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > > > </AGE> > > </data> > > <!-- <cinclude:include > src="cocoon://commons/contents/ATTRIBUTES.xml" > select="data/*"/>--> > > <!-- <xi:include > href="../../commons/contents/ATTRIBUTES.xml#xpointer(data/typeOwnership)"/> > --> > here > > </some> > > <done> > > <!-- <cinclude:include > src="cocoon:/pins.xml" select="data/PIN/*" /> --> > <!-- <cinclude:include > src="cocoon://commons/contents/ATTRIBUTES.xml" > select="data/AGE/*" /> --> > <!-- <xi:include > href="/sell/search/pins.xml#xpointer(/data/PIN/*)" > xml:base="cocoon:"/> --> > > </done> > </data> > ********************************** > > So the output has what i want > that is > > <xf:item> > <xf:caption>LeaseHold</xf:caption> > <xf:value>LeaseHold</xf:value> > </xf:item> > > > but after that it also include the whole > attributes.xml file? > > is this a bug?? > > -Apurva > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > --------------------------------------------------------------------- > Please check that your question has not already > been answered in the > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>