This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: generating a repeatable unique id


Jeni Tennison writes:
 > Oh, it depends on how you're doing the linking. I was imagining that
 > you were creating something an index.html document with the links in,
 > containing things like:
 > 
 >   <p><a href="doc.html#chapter1.section2.div3">...</a></p>

oh, no.  no HTML files. everything gobbed out on stdout to the client.
I have a working setup for the static transform (though your methods
for that are more elegant...)

 > But perhaps you were meaning that you wanted to only display the part
 > of the document that you were linking to? Of course in the future all
 > you'd need to do is generate:
 > 
 > <p><a href="doc.xml#xpointer(/chapter[1]/section[2]/div[3])">...</a></p>
 :-}

 > But for now I guess you would generate a link that looked something
 > like:
 > 
 > <p><a href="doc.xml?xpath=/chapter[1]/section[2]/div[3]">...</a></p>

yes, *thats* what I want

 > With some magic on the server end, you'd get an $xpath parameter in
 > your stylesheet.
 > 
 > You could step through the $xpath parameter to locate and apply
 > templates to the relevant part of the document, something like:

cool. I love it. Many thanks!

sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]