How to set up profiling in customization layer?

View: New views
6 Messages — Rating Filter:   Alert me  

How to set up profiling in customization layer?

by Bergfrid Skaara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm trying to introduce profiling to the following scenario, so far without success:
 
DocBook 5, modular with xincludes and olinks. Have unique xml:id and profiling attributes set
XSL customization layer which imports fo/profile-docbook.xsl
oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets 1.75.1
 
problem:
I have <section audience="All">... and add <xsl:param name="profile.audience" select="None"></xsl:param> to my cust.layer and the generated PDF is not filtered (everything is included). Both validation and transformation are successfull and fo/profile-docbook.xsl is read at processing. It seems like the profile param is ignored.
 
I believe I've followed the instructions in the book to the letter, but clearly I must be missing something. Suggestions?
 
Best regards,
Bergfrid Skaara

Re: How to set up profiling in customization layer?

by Camille Bégnis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

<xsl:param name="profile.audience" select="None"/>

Will try to select a "None" element. Try this instead:

<xsl:param name="profile.audience" select="'None'"/>

With the word 'None' into simple quotes so it's taken as a string.... I
was caught a number of times on this :-)

Camille.

Bergfrid Skaara wrote:

> Hi,
> I'm trying to introduce profiling to the following scenario, so far
> without success:
>  
> DocBook 5, modular with xincludes and olinks. Have unique xml:id and
> profiling attributes set
> XSL customization layer which imports fo/profile-docbook.xsl
> oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets 1.75.1
>  
> problem:
> I have <section audience="All">... and add <xsl:param
> name="profile.audience" select="None"></xsl:param> to my cust.layer
> and the generated PDF is not filtered (everything is included). Both
> validation and transformation are successfull and
> fo/profile-docbook.xsl is read at processing. It seems like the
> profile param is ignored.
>  
> I believe I've followed the instructions in the book to the letter,
> but clearly I must be missing something. Suggestions?
>  
> Best regards,
> Bergfrid Skaara

[camille.vcf]

begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;5 rue de la Touloubre;Venelles;;13770;France
email;internet:camille@...
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...

Re: How to set up profiling in customization layer?

by Bergfrid Skaara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ofcourse... I should have thought of that. But no, adding inner quotes did not do any difference
 
Best Regards,
Bergfrid Skaara

On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis <camille@...> wrote:
Hello,

<xsl:param name="profile.audience" select="None"/>

Will try to select a "None" element. Try this instead:

<xsl:param name="profile.audience" select="'None'"/>

With the word 'None' into simple quotes so it's taken as a string.... I
was caught a number of times on this :-)

Camille.

Bergfrid Skaara wrote:
> Hi,
> I'm trying to introduce profiling to the following scenario, so far
> without success:
>
> DocBook 5, modular with xincludes and olinks. Have unique xml:id and
> profiling attributes set
> XSL customization layer which imports fo/profile-docbook.xsl
> oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets 1.75.1
>
> problem:
> I have <section audience="All">... and add <xsl:param
> name="profile.audience" select="None"></xsl:param> to my cust.layer
> and the generated PDF is not filtered (everything is included). Both
> validation and transformation are successfull and
> fo/profile-docbook.xsl is read at processing. It seems like the
> profile param is ignored.
>
> I believe I've followed the instructions in the book to the letter,
> but clearly I must be missing something. Suggestions?
>
> Best regards,
> Bergfrid Skaara


Re: How to set up profiling in customization layer?

by Camille Bégnis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah well, could you provide a minimal (XML+XSL) sample (on
http://docbook.pastebin.ca/ for example) that shows the issue?

Camille.

Bergfrid Skaara wrote:

> ofcourse... I should have thought of that. But no, adding inner quotes
> did not do any difference
>  
> Best Regards,
> Bergfrid Skaara
>
> On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis <camille@...
> <mailto:camille@...>> wrote:
>
>     Hello,
>
>     <xsl:param name="profile.audience" select="None"/>
>
>     Will try to select a "None" element. Try this instead:
>
>     <xsl:param name="profile.audience" select="'None'"/>
>
>     With the word 'None' into simple quotes so it's taken as a
>     string.... I
>     was caught a number of times on this :-)
>
>     Camille.
>
>     Bergfrid Skaara wrote:
>     > Hi,
>     > I'm trying to introduce profiling to the following scenario, so far
>     > without success:
>     >
>     > DocBook 5, modular with xincludes and olinks. Have unique xml:id and
>     > profiling attributes set
>     > XSL customization layer which imports fo/profile-docbook.xsl
>     > oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets
>     1.75.1
>     >
>     > problem:
>     > I have <section audience="All">... and add <xsl:param
>     > name="profile.audience" select="None"></xsl:param> to my cust.layer
>     > and the generated PDF is not filtered (everything is included). Both
>     > validation and transformation are successfull and
>     > fo/profile-docbook.xsl is read at processing. It seems like the
>     > profile param is ignored.
>     >
>     > I believe I've followed the instructions in the book to the letter,
>     > but clearly I must be missing something. Suggestions?
>     >
>     > Best regards,
>     > Bergfrid Skaara
>
>

[camille.vcf]

begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;5 rue de la Touloubre;Venelles;;13770;France
email;internet:camille@...
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...

Re: How to set up profiling in customization layer?

by Bergfrid Skaara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm sorry but I cant. Our documentation is classified and subject to NDA (nondisclosure agreement).
 
Bergfrid Skaara

On Wed, Sep 30, 2009 at 10:07 AM, Camille Bégnis <camille@...> wrote:
Ah well, could you provide a minimal (XML+XSL) sample (on
http://docbook.pastebin.ca/ for example) that shows the issue?

Camille.

Bergfrid Skaara wrote:
> ofcourse... I should have thought of that. But no, adding inner quotes
> did not do any difference
>
> Best Regards,
> Bergfrid Skaara
>
> On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis <camille@...
> <mailto:camille@...>> wrote:
>
>     Hello,
>
>     <xsl:param name="profile.audience" select="None"/>
>
>     Will try to select a "None" element. Try this instead:
>
>     <xsl:param name="profile.audience" select="'None'"/>
>
>     With the word 'None' into simple quotes so it's taken as a
>     string.... I
>     was caught a number of times on this :-)
>
>     Camille.
>
>     Bergfrid Skaara wrote:
>     > Hi,
>     > I'm trying to introduce profiling to the following scenario, so far
>     > without success:
>     >
>     > DocBook 5, modular with xincludes and olinks. Have unique xml:id and
>     > profiling attributes set
>     > XSL customization layer which imports fo/profile-docbook.xsl
>     > oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets
>     1.75.1
>     >
>     > problem:
>     > I have <section audience="All">... and add <xsl:param
>     > name="profile.audience" select="None"></xsl:param> to my cust.layer
>     > and the generated PDF is not filtered (everything is included). Both
>     > validation and transformation are successfull and
>     > fo/profile-docbook.xsl is read at processing. It seems like the
>     > profile param is ignored.
>     >
>     > I believe I've followed the instructions in the book to the letter,
>     > but clearly I must be missing something. Suggestions?
>     >
>     > Best regards,
>     > Bergfrid Skaara
>
>


Re: How to set up profiling in customization layer?

by Bergfrid Skaara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've troubleshooted this a bit further and found an error in our XML catalog file, which resolved to an old version of the stylesheet. Fixing this and restarting oXygen solved the initial problems.
 
Now, I have another question:
I understand that you must have attribute values on the form value1;value2 if an element is to be selected both when the condition is value1 and when it is value2.We use controlled vocabulary for our attributes, and have customized the rng schema to enforce this.
 
Currently this looks something like this:
<attribute name="audience"><ref name="my.audience.choices"/></attribute>
<define name="my.audience.choices"><choice><value>value1</value><value>value2</value></choice></define>
 
How do I change this definition so that it allows value1;value2 but not value1;value1 ? We use the non-compact rng syntax.
 
Best regards,
Bergfrid Skaara

On Wed, Sep 30, 2009 at 9:18 AM, Bergfrid Skaara <bergfrid.digitaldias@...> wrote:
ofcourse... I should have thought of that. But no, adding inner quotes did not do any difference
 
Best Regards,
Bergfrid Skaara

On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis <camille@...> wrote:
Hello,

<xsl:param name="profile.audience" select="None"/>

Will try to select a "None" element. Try this instead:

<xsl:param name="profile.audience" select="'None'"/>

With the word 'None' into simple quotes so it's taken as a string.... I
was caught a number of times on this :-)

Camille.

Bergfrid Skaara wrote:
> Hi,
> I'm trying to introduce profiling to the following scenario, so far
> without success:
>
> DocBook 5, modular with xincludes and olinks. Have unique xml:id and
> profiling attributes set
> XSL customization layer which imports fo/profile-docbook.xsl
> oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets 1.75.1
>
> problem:
> I have <section audience="All">... and add <xsl:param
> name="profile.audience" select="None"></xsl:param> to my cust.layer
> and the generated PDF is not filtered (everything is included). Both
> validation and transformation are successfull and
> fo/profile-docbook.xsl is read at processing. It seems like the
> profile param is ignored.
>
> I believe I've followed the instructions in the book to the letter,
> but clearly I must be missing something. Suggestions?
>
> Best regards,
> Bergfrid Skaara