OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] rootid-selection does not work for me

Bob Stayton wrote:

>><xsl:param name="rootid" select="SimpleDataTypes"/>
>>but it always
>>formats the entire XML instance.
>>What's wrong here?
> The id string needs to be in single quotes when used
> in a select attribute.

Just to be more explicit: value of attributes must be also enclosed in 
XML. So you will end up with quite strange but completely correct 
doubled quotes:

<xsl:param name="rootid" select="'SimpleDataTypes'"/>


<xsl:param name="rootid">SimpleDataTypes</xsl:param>

If you don't surround string literal with ' in XPath expression you 
asking XSLT processor for selecting elements with given string as their 
name. So

<xsl:param name="rootid" select="SimpleDataTypes"/>

assigns to $rootid nodeset containing elements named SimplaDataTypes. Of 
course there are no such elements in your DocBook instance.


   Jirka Kosek  	
   e-mail: jirka@kosek.cz

S/MIME Cryptographic Signature

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]